Workaround for returning month name?

M

Marty

Hi all:

I'd like to return the month (Jan, Feb, Mar, etc.) from cells containing
dates.

Some variation of (formulas in column B):

=IF(MONTH(A1)=1,"Jan",IF(MONTH(A1)=2,"Feb",...

would be nice, but you can see the problem this gives, i.e. Excel allows a
maximum of seven nested Ifs.

I want to do this with a formula instead of VBA. Anyone have a suggested
woraround for this?

Thanks in advance.

MARTY
 
T

Trevor Shuttleworth

Marty

if the date is in cell A2, just put =A2 in another cell and give it a custom
format of "mmm" for Jan, Feb, Mar, etc and "mmmm" for January, February and
so on

Regards

Trevor
 
B

Bob Phillips

It might just be mmm for a short name.

--

HTH

RP
(remove nothere from the email address if mailing direct)
 

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