Combine date and time in Excel and Google Sheets
=TEXT(A2,"m/dd/yy ")&TEXT(A3,"hh:mm:ss")
=TEXT(A2,"m/dd/yy ")&TEXT(A3,"hh:mm:ss")
=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
=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