Months going back from present
That approach gets problematical with 30th and 31st.
--
HTH
Bob Phillips
(replace somewhere in email address with gmail if mailing direct)
wrote in message
ups.com...
DavidS wrote:
Hello, I am trying to create a column staring with the present month in
A12,
going back 12 months to A1. I always want the present month to be in A12
and
then have the previous months going back to A1. I can use MONTH(TODAY())
to
get the month number and use a lookup for the actual month in A12. The
problem I have is that I can't think of a way to go back from January to
December.
Would this be simpler for you? Format A1:A12 as Custom "mmm" or "mmmm"
depending on whether you want Jan or January, for example. Then put
=today() into A12, put =date(year(A12),month(A12)-1,day(A12)) into A11,
and copy A11 through A1.
|