View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson Dave Peterson is offline
external usenet poster
 
Posts: 35,218
Default Month(A1) in 2007

=month() returns the number of the month.

If you want text, you could use:
=text(a1,"mmm")
or
=text(a1,"mmmm")

Or you could combine both the year and month and use something like:
=text(a1,"yyyy-mmm")

rexmann wrote:

Hi All

I am trying to get just the year and month of a date to display and I am using

=year(A1)
=month(A1)

the year is fine but the month appears as a number 1-12. I have tried
changing the field to custom month but this just give the wrong answer. I can
use a v-lookup to convert which is no problem but a bit messy (I remember in
2003 it worked fine)

Any suggestions greatly appreciated

cheers Rexmann


--

Dave Peterson