The information in this article applies to:
SUMMARY
You can enter the current date and/or time as text by using the TEXT
function with the TODAY or NOW functions. For example, to display
"Today is 2/18/98" (without the quotations marks), where 2/18/98 is
the current date, use the following formula:
NOTE: You can substitute the NOW function for the TODAY function in the above formula to display the date and time or just the time (depending on the number format you specify). You can also display "Today is 2/18/98" (without the quotation marks), and preserve the value of the date as a serial number rather than converting it to text. To display the current time, use the following formula:
This formula will update each time the sheet is calculated. MORE INFORMATION
The TEXT() function converts a value to text in a specified number
format.
use this formula:
To display the following
use this formula:
If you want a linked formula in a chart to display this information but you do not want to open the file, use the TEXT() function (as discussed above). To display the time but preserve the value as a serial number, follow these steps:
REFERENCES
"Microsoft Excel Function Reference," version 4.0, page 431-432 Additional query words: XL98 XL97 XL7 XL5 XL4 XL3 5.00 concatenate
Keywords : kbdta xlformula |
Last Reviewed: March 31, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |