Today() ... Month() ... Formatt mmm

G

Guest

Excel2003 ...

Cell B2 formula ... =Today() ... return = 03/02/07
Cell C2 formula ... =Month(B2) ... return = 3

So far so good ...

Issue is ... when I format Cell C2 to ... custom "mmm" ... anticipating
return = "Mar" ... I get a return = "Jan".

What am I missing? ... Thanks ... Kha
 
D

Dave Peterson

3 is third day from the start of excel's calendar (usually Dec 31, 1899 for
windows users)--so it's jan 3, 1900.

If you did
=b2
and formatted as mmm
you'd be set.
 
G

Guest

Too complicated. Make C2:
=B2

remember that
3
is actually
Tuesday, January 03, 1900
 
G

Guest

Ken,

i think that the function like month() or year() converts the date value in
an integer value...hence if you need to show different date format while
retaining the real date value, better stick with the date value and play with
the format>cell>numbers>date ...so you dont loose the logical conversion.

regards
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top