The TEXT function allows you to convert a date into a specific text format, which is useful for reports or combining dates with other text. This method keeps the original date intact while creating a new text-based representation.
Faça com IASelect the target cell
Click on the cell where you want the converted text to appear.
Enter the TEXT formula
Type =TEXT(A1, "yyyy-mm-dd") into the cell, replacing A1 with your date cell reference.
Apply the changes
Press Enter to see the date converted into a text string based on your specified format.
=TEXT(value, format_text)If the format code is incorrect, Excel might not recognize it as a date, or you may have accidentally used a number format code instead of a date code.