ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Working with dates (https://www.excelbanter.com/excel-worksheet-functions/84499-working-dates.html)

Al

Working with dates
 
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

Bob Phillips

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

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Al" wrote in message
...
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




Ardus Petus

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

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


HTH
--
AP

"Al" a écrit dans le message de
...
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




Al

Working with dates
 
Thanks!!!


"Bob Phillips" wrote:

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

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Al" wrote in message
...
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






All times are GMT +1. The time now is 10:19 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com