LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default Format Today function

Thanks Jake,

The string value is what I was looking for.


"Jake Marx" wrote in message
...
Hi Grant,

Grant wrote:
I've seen/done this before but I can't remember how to do it. I need
to dormat Today from 11/8/2004 to 110804. I can di it by going to
FormatCellsCustom then typing the formula. But I thought there was
a way to do it by specifing the format (MM,DD,YY) somwhoe nested in
Today.


You can use the TEXT worksheet function to format the date:

=TEXT(TODAY(),"mmddyy")

Keep in mind that when you do this, you're changing the actual value of
the cell to a string containing "110804". When you apply formatting to
the cell itself, you are keeping the date value and changing only its
appearance. So which way you do this really depends on whether you're
going to be using the value for date calculations or not.

--
Regards,

Jake Marx
MS MVP - Excel
www.longhead.com

[please keep replies in the newsgroup - email address unmonitored]



 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Conditional Format <=Today() Matt D Francis Excel Worksheet Functions 0 March 28th 07 02:46 AM
Conditional Format <=Today() Marcelo Excel Worksheet Functions 0 March 28th 07 02:45 AM
MM/DD/YYYY format Today Glenda Excel Discussion (Misc queries) 1 February 21st 06 03:51 PM
Custom Format for WEEKNUM(Today()) RonB Excel Discussion (Misc queries) 2 January 12th 05 06:13 PM
converting 'TODAY' into dd-mmm-yy format neowok[_24_] Excel Programming 3 February 27th 04 12:40 PM


All times are GMT +1. The time now is 09:15 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"