Working with dates

A

Al

Hi
In cell A1 I have the numeric value of a month for example 3. In A2 I would
like the previous month formatted as MMM. What formula would I use?
Thanks
 
B

Bob Phillips

=TEXT(DATE(YEAR(TODAY()),A1-1,1),"mmm")

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)
 
A

Ardus Petus

One way: =TEXT(DATE(1,A1,1),"MMM")

another one:
=CHOOSE(A1,"JAN","FEB","MAR","APR","MAY","JUN","JUL","AUG","SEP","OCT","NOV"
,"DEC")


HTH
 
Top