Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Bryan Hessey
 
Posts: n/a
Default extract the month of a date


Hi Roger,

Yes, I know that the Month() of a May date will give =5, which
displayed as "mmm" will give Jan, but that didn't stop my first post.
However I had forgotten the Text option when I tried to beak the 'mmm'
free of a date format in the Lookup, thanks for that, and lets hope
that gireesh gains something from this too.


Roger Govier Wrote:[color=blue]
Hi Bryan

Formatting a cell as mmm will display the Month name Jan, Feb etc.
dependent
upon the serial date number held within that cell. It does not require
the
use on the MONTH() function, which returns a numeric 1 to 12.

Alternatively rather than a long Lookup, you can use =Text(A1,"mmm")
to
return Jan, Feb, etc.

Regards

Roger Govier


Bryan Hessey wrote:
Yes, it only worked for Jan.

Better is


=LOOKUP(MONTH(A1),{1,2,3,4,5,6,7,8,9,10,11,12},{"j an","feb","mar","apr","may","jun","jul","aug","sep ","oct","nov","dec"})

which accomodates the other eleven months also.



--
Bryan Hessey
------------------------------------------------------------------------
Bryan Hessey's Profile: http://www.excelforum.com/member.php...o&userid=21059
View this thread: http://www.excelforum.com/showthread...hreadid=487578

Reply
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
extract name when a date in another cell gets near cityfc Excel Worksheet Functions 5 November 10th 05 01:20 AM
Get month from date [email protected] Excel Discussion (Misc queries) 2 November 9th 05 02:43 PM
How do I break a date range by month? HeatherDawn Excel Discussion (Misc queries) 2 September 1st 05 07:31 PM
Round date to first of month Dominic Excel Discussion (Misc queries) 3 July 14th 05 11:21 PM
HELP with this function Jay Excel Worksheet Functions 7 May 24th 05 06:45 PM


All times are GMT +1. The time now is 05:25 PM.

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"