Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Google Sheets Split Time & Date: How To

· 6 min read · Home Tech

In this article
  1. Why a datetime is one number
  2. Method 1: Split text to columns (quick, but changes your data)
  3. Method 2: Formulas that keep your data intact
  4. How to choose the right method
  5. Common mistakes and how to avoid them
  6. What about splitting date and time in the same column?
  7. Alternatives: Using QUERY and ARRAYFORMULA
  8. Frequently Asked Questions

Yes, you can split a datetime value into separate date and time columns in Google Sheets, and the built-in tools handle it in seconds. You either use the Split text-to-columns feature after changing the format, or you use dedicated formulas like =INT() and =MOD(). This article walks you through both methods, explains why one works better than the other, and covers the common pitfalls like timezone shifts and wrong number formats.

in t | Finish time | min | 50 | 0
in d | Distance | km | 10 | 0
out pace | Average pace | min/km | t / d | 2
out speed | Average speed | km/h | d / (t / 60) | 2

Why a datetime is one number

In Google Sheets, a cell that shows 3/15/2024 14:30:00 is not stored as text. It is a single decimal number where the integer part is the date and the fractional part is the time. For example, the number 45366.60417 means the date is the 45,366th day since December 30, 1899 (the spreadsheet epoch), and the .60417 is the fraction of a 24-hour day that has elapsed at 14:30. Sheets only displays it as a date and time because the cell is formatted that way. To split it, you need to separate that integer and fraction into two cells, then format each cell appropriately.

Method 1: Split text to columns (quick, but changes your data)

The fastest way to split a datetime into two columns is using the built-in Split text to columns tool. It works when your datetime is already text (like 2024-03-15 14:30:00) or when you first convert the datetime to text. Here are the steps:

  1. Select the column that contains the datetime values.
  2. Go to Data → Split text to columns.
  3. In the separator dropdown, choose Space (or Custom and type a space).
  4. Sheets will split the cell into two columns: the date and the time.
  5. Format the new columns: select the date column and go to Format → Number → Date, then select the time column and go to Format → Number → Time.

This method is fast and works well for one-time splits, but it overwrites your original data and does not update if the source changes. If you need a live formula that recalculates, use Method 2.

Method 2: Formulas that keep your data intact

If you want to keep the original column and create two new columns that update automatically, use these formulas:

  • Date: =INT(A2) — this takes the integer part of the datetime, which is the date serial number.
  • Time: =MOD(A2,1) — this takes the fractional part, which is the time as a decimal fraction of a day.

Then format the date column as Date and the time column as Time. For example, if A2 contains 3/15/2024 14:30:00, then =INT(A2) returns 45366 (which displays as 3/15/2024) and =MOD(A2,1) returns 0.60417 (which displays as 14:30:00).

If your datetime is stored as text, you can first convert it with =DATEVALUE() and =TIMEVALUE(), or you can use =SPLIT(A2, " ") to get two text pieces, but the INT/MOD method is the most reliable for real datetime values.

How to choose the right method

Which method you should use depends on your situation:

  • Use Split text to columns if you have a one-time import and do not need the original column anymore.
  • Use INT/MOD formulas if you need the split to stay in sync with the original data, or if you are building a template that others will use.
  • Use =SPLIT() if your datetime is text and you want to split by a delimiter (like a space or a comma).

If you have a column of datetimes and you only want to see the date or time for filtering, you can also use the Query function with date and time extraction, but that is more advanced.

Common mistakes and how to avoid them

Three problems trip up most users when splitting datetimes:

  • Seeing a number instead of a date/time. After using =INT(), the cell might show 45366 because the number format is still General. Fix it by applying the Date or Time format from Format → Number.
  • Timezone shifts. If you import data from another timezone, the underlying number might be off by a fraction. For example, a datetime that was 14:30 in UTC might appear as 09:30 in your local timezone. The split will reflect that shift. To avoid this, make sure the source data is in the same timezone as your sheet, or convert it before splitting.
  • Using text split on a real datetime. If your cell contains a true datetime value (not text), the Split text to columns tool will not work because there is no space character in the underlying number. You must either convert it to text first (e.g., with =TEXT(A2, "yyyy-mm-dd hh:mm:ss")) or use the formula method.

What about splitting date and time in the same column?

Sometimes you want to split a datetime into two separate columns but keep the original column intact. The formula method does exactly that. But if you want to split a column of datetimes into two columns without formulas, you can use the Split text to columns tool after converting the column to text. To convert a datetime range to text, use =ARRAYFORMULA(TEXT(A2:A, "yyyy-mm-dd hh:mm:ss")) in a new column, then copy that column and paste as values, then split it. This is a two-step process but works well for one-time cleanups.

Alternatives: Using QUERY and ARRAYFORMULA

If you have a large dataset and want to extract the date or time into new columns without dragging formulas, you can use =ARRAYFORMULA(INT(A2:A)) for dates and =ARRAYFORMULA(MOD(A2:A,1)) for times. These will fill the entire column at once. For example, if your datetimes are in A2:A100, put =ARRAYFORMULA(INT(A2:A100)) in B2 and it will spill down. Similarly, =ARRAYFORMULA(MOD(A2:A100,1)) in C2 will give the times.

Another alternative is the QUERY function with date and time extraction, but that is more complex and usually unnecessary for simple splits.

Frequently Asked Questions

Why does my split show a number like 45366 instead of a date?
That is the raw date serial number. The cell is formatted as General. Select the cell, go to Format → Number → Date to display it as a date.

Can I split a datetime that is in text format like "2024-03-15 14:30:00"?
Yes. Use Data → Split text to columns with the space separator, or use =SPLIT(A2, " ") to get two text pieces. Then convert the date text to a real date with =DATEVALUE() and the time text with =TIMEVALUE() if you need to use them in calculations.

Does the INT/MOD method work with time-only values?
Yes. If a cell contains only a time (like 14:30), the integer part is 0 and the fractional part is 0.60417. =INT() returns 0 (which formats as 12:00 AM), and =MOD() returns the time. If you only need the time, use =MOD().

Will splitting change my original data?
The Split text to columns tool overwrites the original column and puts the split pieces in the adjacent columns. The formula method (INT/MOD) does not change the original data; it creates new columns that reference the original.

How do I split a datetime if I only want the date and not the time?
Use =INT(A2) and format as Date. You can also use =TO_DATE(A2) which does the same thing but is a bit more explicit.

What if my datetime is in a different timezone?
Sheets stores datetimes in UTC internally and displays them in the spreadsheet's timezone. If you split a datetime that was entered in a different timezone, the split will reflect the displayed timezone. To avoid confusion, set the spreadsheet timezone correctly under File → Settings before entering data.