Extracting month from a date field

A

Alan

In cell A1 is the date 8/29/1924. I want to present the month in 3
character format in cell B1. I have the formula =month(a1) in cell B1 which
shows the number 8. I have tried formatting cell B1 in different ways to
get "Aug" to show. I get "Jan" showing when I use the formula =text
(monthA1,"MMM") in cell B1. What gives??

TIA, Alan
 
D

Dave Peterson

8 by itself represents Jan 8, 1900.

You could just use
=A1
and format it as MMM
or
=text(a1,"mmm")
 
G

Guest

Don't forget that when you have "8" for a date, that represents January 8th
of the first year on the counter (which is 1900), and therefore, you're
getting "Jan".
You could use the following in B1:
=text(A1,"Mmm")

Then the result of the first part of the formula will not be 8, but 9008
(which corresponds to August 29th in 1924), and the result will be "Aug".

Regards,
Félix
 

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