Combine date and time in Excel and Google Sheets
=TEXT(A2,"m/dd/yy ")&TEXT(A3,"hh:mm:ss")
A2 = date cell; A3 = time cell
Check below for a detailed explanation with pictures and how to use formulas in Excel and Google Sheets.Combine date and time in Excel
How to combine date and time in Excel?Combine date and time in Excel
COMBINE DATE AND TIME — EXCEL FORMULA AND EXAMPLE
COMBINE DATE AND TIME — EXCEL FORMULA AND EXAMPLE
=TEXT(A2,"m/dd/yy ")&TEXT(A3,"hh:mm:ss")
A2 = date cell, A3 = time cell
"m/dd/yy " = format – The pattern by which to format the number, enclosed in quotation marks
"hh:mm:ss" = format – The pattern by which to format the number, enclosed in quotation marks
& = combine both date and time
💡 The result will be stored as a text value
Combine date and time in Google Sheets
How to combine date and time in Google Sheets?Combine date and time in Google Sheets
COMBINE DATE AND TIME — GOOGLE SHEETS FORMULA AND EXAMPLE
COMBINE DATE AND TIME — GOOGLE SHEETS FORMULA AND EXAMPLE
=TEXT(A2,"m/dd/yy ")&TEXT(A3,"hh:mm:ss")
A2 = date cell, A3 = time cell
"m/dd/yy " = format – The pattern by which to format the number, enclosed in quotation marks
"hh:mm:ss" = format – The pattern by which to format the number, enclosed in quotation marks
& = combine both date and time
💡 The result will be stored as a text value
Other widely used Excel and Google Sheets functions explained
- Sum by month
- SUMIF cells if contains part of a text string
- Sum total sales based on quantity & price
- Convert 1-12 to month name
- Dynamic current date and time
- Count blank cell
- Count cell between two values
- Count cells that contain numbers and ignore blank
- Count cells that do not contain numbers and ignore blank
- Extract left before first space
- Extract right after first space
- Extract the nth words in a text string
- Extract domain URL from a link
- Flip the first and last name
- Transpose column to row and ignore blank
- Transpose row to column and ignore blank
- Combine date and time
- Count cell between two values
- Combine two or more cell
- SUMIF formulas and example
- SUMIFS formulas and example
- COUNTIF formulas and example
- IF formulas and example
- TEXT formulas and example
- CONVERT formulas and example
- Change the negative number to zero
- Change negative to positive numbers
- Calculate percentage changes for containing zero or negative values
- Convert date to text
- Convert time to text
- Convert weekday string to number
- Combine two or more cells with a line break
- Combine two or more cells and transpose
- Count cells over 10 characters
- Count cells that are not blank
- Count if cells contain a specific text
- Count cells that begin with a specific text
- COUNTIF based on multiple criteria