How can I convert dates to strings in Google Sheets? 2

How can I convert dates to strings in Google Sheets?

To convert dates to strings in Google Sheets, you can use the TEXT function. This function allows you to format a date in a specific way and convert it to a string. You can specify the date format, such as “mm/dd/yyyy” or “dd/mm/yyyy”, and the result will be a string representation of the date. This is useful when you want to display dates in a specific format or when you need to use the date as a string for other calculations. By using the TEXT function, you can easily convert dates to strings in Google Sheets without altering the original data.

Google Sheets: Convert Dates to Strings


You can use the following formulas to convert a date to a string in Google Sheets:

Method 1: Convert Date to String 

=TEXT(A1, "mm-dd-yyyy")

Method 2: Convert Datetime to String

=TEXT(A1,"yyyy-mm-dd hh:mm:ss")

The following examples show how to use these formulas in practice.

Example 1: Convert Date to String in Google Sheets

Suppose we have the following list of dates in Google Sheets:

We can use the following formula to convert the date in cell A1 to a string:

=TEXT(A1, "mm-dd-yyyy")

We can then copy and paste this formula down to the remaining cells in column B:

All of the cells in column B are now a string.

To verify this, we can type =ISTEXT(A2) and =ISTEXT(B2) to check if the values in cells A2 and B2 are strings, respectively:

We can see that the value in cell A2 is not a string since the ISTEXT() function returned FALSE.

Example 2: Convert Datetime to String in Google Sheets

Suppose we have the following list of datetimes in Google Sheets:

We can use the following formula to convert the datetime in cell A1 to a string:

=TEXT(A1,"yyyy-mm-dd hh:mm:ss")

We can then copy and paste this formula down to the remaining cells in column B:

All of the cells in column B are now a string.

To verify this, we can type =ISTEXT(A2) and =ISTEXT(B2) to check if the values in cells A2 and B2 are strings, respectively:

We can see that the value in cell A2 is not a string since the ISTEXT() function returned FALSE.

Conversely, we can see that the value in cell B2 is a string since the ISTEXT() function returned TRUE.

Additional Resources

The following tutorials explain how to perform other common tasks in Google Sheets:

Cite this article

stats writer (2024). How can I convert dates to strings in Google Sheets?. PSYCHOLOGICAL SCALES. Retrieved from https://scales.arabpsychology.com/stats/how-can-i-convert-dates-to-strings-in-google-sheets/

stats writer. "How can I convert dates to strings in Google Sheets?." PSYCHOLOGICAL SCALES, 1 Jul. 2024, https://scales.arabpsychology.com/stats/how-can-i-convert-dates-to-strings-in-google-sheets/.

stats writer. "How can I convert dates to strings in Google Sheets?." PSYCHOLOGICAL SCALES, 2024. https://scales.arabpsychology.com/stats/how-can-i-convert-dates-to-strings-in-google-sheets/.

stats writer (2024) 'How can I convert dates to strings in Google Sheets?', PSYCHOLOGICAL SCALES. Available at: https://scales.arabpsychology.com/stats/how-can-i-convert-dates-to-strings-in-google-sheets/.

[1] stats writer, "How can I convert dates to strings in Google Sheets?," PSYCHOLOGICAL SCALES, vol. X, no. Y, ص Z-Z, July, 2024.

stats writer. How can I convert dates to strings in Google Sheets?. PSYCHOLOGICAL SCALES. 2024;vol(issue):pages.

Download Post (.PDF)
Slide Up
x
PDF
Scroll to Top