Microsoft Excel does not have a built-in function named Format NOW, but you can achieve the same result by combining the TEXT function with the TODAY or NOW functions. This combination allows you to convert a date and time value into a specific text format, such as MM/DD/YYYY or DD-MMM-YY, effectively "formatting" the live date and time to look exactly how you want it to appear in the cell. This is useful for reports, dashboards, and data entry where a specific date display style is required without changing the underlying value of the cell.
What You'll Need
- A computer running Microsoft Excel (2016, 2019, 2021, or Microsoft 365).
- A spreadsheet containing a cell with a date or time value, or simply the TODAY() function to generate the current date.
- Basic knowledge of Excel functions and how to edit a formula in a cell.
Step-by-Step
- Select the Target Cell: Click on the empty cell where you want the formatted date and time to appear. This cell should be separate from any existing date values if you want to display a static representation of the current time.
- Enter the Formula: Type the equals sign (
=) to start a formula. Begin typing TEXT. You will see a tooltip suggesting the function. TypeTEXT(and press Tab to auto-complete the function name. - Select the Date Source: Click on the cell containing the date or time you want to format. If you want to show the current date and time, click on any cell and type
TODAY()orNOW()inside the parenthesis of the TEXT function. For example, if your date is in cell A1, your formula should look likeTEXT(A1, ...). - Enter the Format Code: Immediately after the closing parenthesis of the date source, type a comma (
,) to separate the value argument from the format text argument. After the comma, type the format code in double quotes. The format code determines how the date looks. Common codes include:
- For Dates Only:
"MM/DD/YYYY"(e.g., 12/25/2023) or"DD-MMM-YY"(e.g., 25-Dec-23). - For Time Only:
"HH:MM AM/PM"(e.g., 02:30 PM). - For Date and Time:
"MM/DD/YYYY HH:MM"(e.g., 12/25/2023 14:30). - For Short Time:
"h:mm AM/PM"(e.g., 2:30 PM).
- Close and Confirm: Press Enter on your keyboard. The cell will display the date and time in the specific format you entered. The underlying value in the cell is still a date serial number, but the displayed text will update automatically as the date changes.
Common Mistakes
One of the most frequent errors users make is confusing the TEXT function with the standard Excel formatting options. When you apply a date format directly from the ribbon (right-click > Format Cells > Number), the underlying value remains a date. This means you can still perform date calculations (like subtracting one date from another). However, when you use the TEXT function, the result becomes plain text.
The biggest downside to using TEXT for formatting is that the resulting data cannot be used in further calculations. For example, if you use TEXT(TODAY(), "MM/DD/YYYY") to display the date, you cannot subtract that cell from another date cell because Excel reads it as text, not a date. Always use the standard formatting method if you need to perform date math on the data.
Tips
When constructing your format code, remember that Excel is case-sensitive. While the letter M stands for month and m stands for minute, the letter AM/PM must always be in uppercase to work correctly. If you type am/pm or Am/Pm, Excel will display the numbers literally rather than as an hour indicator.
Another useful tip is to use the Format Cells dialog to find the perfect format if you cannot remember the exact code. You can select the cell with the formula, press Ctrl + 1 to open the dialog, and look at the Custom category. Here you can see existing codes and create your own, which you can then copy and paste directly into your TEXT formula.
Troubleshooting
If the cell returns a #VALUE! error, it usually means the source cell is not a valid date or time. Excel’s TEXT function requires a numeric date value to work. If you are referencing a cell that contains text (like "12/25/2023" typed as plain text), you must convert it to a date first using the DATEVALUE function or by changing the cell format to a date first before applying the TEXT formula.
If the date appears as a series of #######, it means the column is not wide enough to display the formatted text. Simply double-click the right border of the column header to auto-fit the column width to the content.
Frequently Asked Questions
Can I use the TEXT function to format the current time down to the second?
Yes, you can. By using the format code "HH:MM:SS AM/PM" with the NOW() function, you will see the seconds updating in real-time as long as the spreadsheet is recalculating or the cell is selected.
Does the TEXT function change the underlying value of the cell?
No, the underlying value remains a date serial number. However, the displayed value changes to text according to your format code. This distinction is crucial if you plan to perform mathematical operations on the cell later.
Why does my time show as 00:00 instead of 12:00 AM?
This is a common issue with the format code. If you use lowercase am/pm or AM/PM incorrectly, or if you omit the AM/PM indicator entirely and use a 24-hour format, Excel may display the time in its raw format. Ensure you are using uppercase AM/PM and that the hour is set to a 12-hour scale.
How do I add the name of the month instead of the number?
You can use the M code with three letters to get the month name. For example, TEXT(TODAY(), "DD-MMM-YYYY") will display the date as 25-Dec-2023 instead of 12/25/2023.
Can I use the TEXT function to force a date to always show as text?
While the TEXT function converts a date to text, it is often better to use the Text to Columns feature if you want to permanently convert a column of dates to text values without using formulas. Select the column, go to the Data tab, click Text to Columns, choose Delimited, and click Finish without making any changes. Excel will convert the dates to text in place.