Questions tagged [google-sheets-dates]

Use for questions related to how Google Sheets handle dates, times, durations.

Filter by
Sorted by
Tagged with
106 votes
14 answers
266k views

How do I calculate a time delta in my Google Spreadsheets?

I've got a Google Spreadsheet that looks roughly like this: Date | Start time | End time | Minutes ------------+-------------+-------------+----------- 1/11/2012 | 11:39 | 12:41 ...
user avatar
82 votes
6 answers
200k views

How to add days to a date

I'm using a Google Spreadsheet to perform calculations and I'd like to do some simple date math. For example, TODAY() add 7 days. I don't see any functions to do it and some quick stabs in the ...
user avatar
43 votes
4 answers
81k views

Add 3 hours to Date value (DD/MM/YYYY 00:00:00)

I have cells with dates in this format: DD/MM/YYYY 00:00:00 and I want to add 3 hours because I'm in a different GMT zone. Is possible to use dates in a formula? Something like: 30/12/2012 22:15:00 ...
user avatar
  • 541
35 votes
5 answers
59k views

Conditionally format by day of the week

How can I conditionally format cells in Google spreadsheets containing dates to have a different background according to the day of the week. For example, if a date falls on Saturday or Sunday, set ...
user avatar
34 votes
9 answers
223k views

How to Fill a Column with Sequential Dates in Google Sheets

In Excel, you can right-click drag a date downwards to fill a column with the next dates in the sequence. For example, if you enter 9/1/2014, select that cell, then right-click drag down over the ...
user avatar
  • 501
28 votes
2 answers
45k views

Change Google Sheets default date format with other locale

I would like to have the "dd/MM/yyyy" (e.g. 09/03/2017) as default date format for my Google sheets. I know how to do this for one sheet: Format > Number > More formats > More date and time ...
user avatar
  • 417
22 votes
4 answers
46k views

How to convert Unix Timestamp to human readable?

As the title says, I have Unix Timestamps on a sheet and I need to convert them to normal human-readable dates. So far I'm striking out, Google searches have turned up a few suggestions but none have ...
user avatar
  • 1,009
20 votes
2 answers
26k views

How can I change the input format for dates in Google Docs' spreadsheet?

The input string for dates in Google Docs's spreadsheet app seems to be set to en_US, which is quite unnatural to me. How can I change the input format?
user avatar
15 votes
1 answer
87k views

Compare date value to current date in Google Sheets

How can I compare the date in a row to a current date, so that if it's greater than today the next steps in my process need to be executed?
user avatar
14 votes
6 answers
25k views

Change date format [YYYYMMDD] to [MM/DD/YYYY]

I generated a report that formats date as 20160509 and my Google Sheets locale is already set to United States. I've played around with various options within Format > Number > Date Format but I can't ...
user avatar
  • 243
11 votes
2 answers
24k views

Entering mm:ss: milliseconds into Google Sheets for time duration (arithmetic)

I would like to enter times mm, seconds, milliseconds into Google Sheets and subtract times to determine duration. I use format> numbers > More formats > more dates and times > and apply mm:ss: ms. I ...
user avatar
9 votes
1 answer
6k views

Year function in Google Sheets gives unexpected results

Quick questions with Google Sheets. I'm trying to extract the year from a date using the YEAR() function. In the first column, I formatted all cells as dates, but in the second column, when I use =...
user avatar
  • 93
8 votes
4 answers
18k views

Using Google Sheets, how can I calculate the average per month based on multiple rows?

I have a spreadsheet where I enter Groceries on each row every time I visit a store. I have calculated the overall sum, but now I would like to calculate the average cost per month for the groceries. ...
user avatar
  • 181
7 votes
3 answers
32k views

Calculate days between now and a future date

I need to calculate how many days are left from today to a certain date in the future in Google Sheets. How can I do that?
user avatar
  • 585
7 votes
3 answers
4k views

Date and time format

I have lots of dates in the first column in the format output by IFTTT: August 23, 2010 at 11:01PM Is there a way to get them formatted in a way that I can then use for date and time calculations? ...
user avatar
7 votes
1 answer
3k views

What date formats does Google Sheets recognize?

I have googled this and looked across SO, haven't found anything. How can I get a list of the date formats Google Sheets recognizes? I found this - https://developers.google.com/sheets/api/guides/...
user avatar
7 votes
2 answers
17k views

How to reduce number of X axis labels?

I have a chart with dates along the X axis, but the chart displays them quite close together, producing a rather ugly graph. How might I reduce the number of visible labels to increase the readability ...
user avatar
6 votes
2 answers
2k views

Fill zeros for the dates when no data was recorded

I have a table with dates (in increasing order) and corresponding values. Some dates are missing, like 3/27 below. I'd like to insert them in Date column, and have 0 entered in the Value column for ...
user avatar
6 votes
2 answers
11k views

How to set Monday as start day of the week in Google Sheets date picker

How to set Monday as start day of the week in Google Sheets date picker? I have changed the locale, changed start day of the week in Google Calendar and can't find a way to solve this.
user avatar
  • 161
5 votes
3 answers
27k views

Convert Text String into Date/Time Value

I'm fetching data into a Google Sheet. The date column contains multiple cells with the following text string pattern: Mon Mar 11 19:05:32 +0000 2019 The pattern always repeat itself: [day] [month] ...
user avatar
5 votes
3 answers
7k views

Sorting Google spreadsheet by month and day but not year

I made a Google spreadsheet with a list of birth dates, anniversaries, etc. that I would like to sort by when they occur in the year, not when they first happened. If you sort by the date normally, it ...
user avatar
  • 1,040
5 votes
4 answers
13k views

How to convert datetime string to datetime value in Google Sheets?

Let's say cells A1 and A2 have these values: 13 Jan, 02:21 am 12 Jan, 10:15 pm And many more values like those below in that column. What formula could I use so that the B column would look like ...
user avatar
  • 612
5 votes
2 answers
5k views

Add missing dates to list of dates with values

Current Data: 9/20/2018 6 9/22/2018 3 9/23/2018 1 Desired Output: 9/20/2018 6 9/21/2018 9/22/2018 3 9/23/2018 1 I would like to have the missing dates added to Column A while the ...
user avatar
4 votes
2 answers
135 views

How to get a new date when calculating from today plus an integer

I use Google Sheets to calculate my word count & rate for daily writing sessions. I'm trying to come up with a formula that will return the estimated date of hitting a goal, based on my current ...
user avatar
4 votes
3 answers
10k views

Query or filter the data where the start time is past 3:00 pm

I've started using Google Sheets for our logbook and it's been a great help. I have data with a time component in it (start and end time) and I'd like to query or filter the data where the start time ...
user avatar
  • 41
4 votes
1 answer
1k views

Autopopulate Tuesdays, Thursdays, Saturdays starting from a fixed date

I am trying to auto-populate dates from a fixed date in Google Sheets. Essentially, I want it to auto-populate the dates for every Tuesday, Thursday and Saturday. I have found stuff on skipping ...
user avatar
4 votes
1 answer
2k views

Formatting Google Sheet Dates Inconsistent

I have a sheet where various data is entered through a form. Dates are picked on the form using the standard date picker provided by Google Forms. Some dates in a column I can change the date format ...
user avatar
3 votes
2 answers
6k views

How to increment dates by exactly one month from a given date in Google Sheets

I'm using Google Sheets and want to set a date in say E:7, then in Column B I want the first row to be the value E:7 and then all the rows below that to be incremented by exactly one month from the ...
user avatar
  • 147
3 votes
1 answer
625 views

Time tracking with Google Spreadsheets

I'm using Tasker and am trying to set up a profile that would track how many hours I spend at work. I've managed to set up the tracking part, which inserts the data in a Google Spreadsheet like this: ...
user avatar
3 votes
1 answer
361 views

Print incremental numbers in Google Sheets

Cell A1 holds a numerical value (e.g. 10), and I'd like to output the list of numbers from 1 to that number in B1: What's the formula I need for B1? It seems trivial, and I know it probably requires ...
user avatar
3 votes
2 answers
67 views

How to get a difference of "X years, Y months, Z days" between two dates?

I have two dates: 29/05/2020 and today. How can I get a date diff of these 2 dates, in a meaningful format such as "Z years, X months, Y days" separating these dates? Ideally this should ...
user avatar
3 votes
1 answer
76 views

Rolling Year Formula

I have a Google sheet where I would like a score based on a rolling year figure. I have managed to do these separately using the formulas: =query(A2:B," where A >= date '"&TEXT(today()-E1,"...
user avatar
3 votes
2 answers
12k views

Time duration formatting in Google Spreadsheets

A couple issues here: I have a formula that is trying to determine if a time duration (ex 7:51) is greater than or less than a baseline duration value. When typing the formula I have to put the ...
user avatar
3 votes
1 answer
2k views

How to parse a date and time in the format 2012-12-12T00:00:00+00:00?

I have a CSV file with dates in the following format: 2012-06-20T00:00:00+00:00 Is it possible to parse a date or date and time in this format? The goal is to turn it into a date and time that ...
user avatar
  • 447
3 votes
3 answers
420 views

Conditional formatting for columns, date & time specific?

I have uploaded 4.000+ Venmo donation data sets into Google Sheets for sorting, but the date and time is preset and looks like this: 2018-11-01T20:16:52 I have tried multiple approaches to sorting ...
user avatar
2 votes
1 answer
5k views

In Google Sheets, how do I change a string which encodes a date into a date?

I have some cells in the format 15/05/15. Here is an example. These are dates, but as I copied them into Google Spreadsheets, they are apparently treated as strings. How do I convert them into date ...
user avatar
2 votes
1 answer
2k views

Google Sheets' MONTH function on an empty cell returns 12

Is this an expected behaviour that month(ref) returns 12 when the ref is an empty cell? I would have thought that this is a serious bug. Am I correct? No mention of that behaviour in the official ...
user avatar
  • 311
2 votes
1 answer
5k views

Dynamic date range query

I'm trying to create two cells that will update my query: A >= date"A1" and A <= date "B1". My goal is to create a search page for the data, where the end user could insert a date or the =today() ...
user avatar
  • 21
2 votes
1 answer
57 views

Counting rows based on the date it has and the current end of the week

Problem to solve: Given 2 rows, containing the author's name and a date, you have to count how many rows that author has. The tricky part here is that I have to use the date row and check how many ...
user avatar
  • 23
2 votes
2 answers
37 views

LOOKUP-like behaviour adding up rows down to the found one

I have a table with dates in column A and values in column B. A B 1 2020-12-30 1 2 2020-12-31 2 3 2021-01-04 4 Given a DATE, I can LOOKUP the last value before (including) ...
user avatar
  • 739
2 votes
1 answer
7k views

Using dates as criterion for COUNTIFS in Google Sheets

So I'm currently making a recruiting data sheet for an online community. I'm trying to make it as automated as possible without actually making a bot to do it. How can I make a COUNTIF(or similar) ...
user avatar
  • 43
2 votes
1 answer
55 views

How to add every Sunday in sequential order with 3 blank cells under each date?

How to add every Sunday in sequential order with 3 blank cells under each date? For example: March 22 Blank cell Blank cell Blank cell March 29 etc etc
user avatar
2 votes
1 answer
2k views

Adding missing dates to Google Sheets

I'm pulling data from HubSpot to Google Sheets via 3rd party connector. I have a raw data set on Sheet 1 and then I'm pulling certain data from Sheet 1 to other Sheets with QUERY function. For ...
user avatar
  • 21
2 votes
3 answers
11k views

How do you get current date to be added to a cell when a check box is checked in another cell

I want to get the current date added into a cell when a tick box is checked in another cell. I currently have another formula in the date cell which changes its colour when the tick box is checked, ...
user avatar
2 votes
4 answers
5k views

How to add every Sunday in sequential order?

So I tried using the simple formula: =date(2019,3,10) =date(2019,3,10)+7 =date(2019,3,10)+14 =date(2019,3,10)+21 ... etc. But when I highlight the first top 3-4 cells to drag down and formulate ...
user avatar
2 votes
1 answer
3k views

How do I calculate average amount of days between multiple dates?

I have an ever increasing list of dates (YYYY-MM-DD format from 8601:2004) running in a column from cell B5 down. I want to add the average amount of days between all dates in A2. example: [B6] ...
user avatar
  • 23
2 votes
1 answer
287 views

Google Spreadsheet Inconsistent Datetime Format

When we push date and time values to a google spreadsheet in the format d/m/Y H:i a (eg. 25/12/2015 1:43 pm) the date and time is displayed inconsistently, see below: Any idea why the format is not ...
user avatar
  • 342
2 votes
1 answer
505 views

Using Vlookup with Dates

Here's the set up to the problem I'm having. I have a column of dates and a column of truck numbers. I'm trying to use VLOOKUP to find what truck numbers correspond to the dates. There are multiple ...
user avatar
2 votes
2 answers
384 views

Calculate Total DateDif Average Between 2 Columns (start, end) according to year expressed in days, hours, minutes

I'm having trouble getting a formula to work to calculate the total average time between times (start and end). Sheet: https://docs.google.com/spreadsheets/d/...
user avatar
2 votes
1 answer
42 views

How to autofill specific cell when any next cell is filled

+------------+---------+---------+ | Date | Col1 | Col2 | +------------+---------+---------+ | 2018-01-01 | Value 1 | Value 1 | | 2018-01-01 | Value 2 | Value 2 | | 2018-01-01 | Value 3 | ...
user avatar

1
2 3 4 5 6