Now() minus 1 month = ?

Tom Wagner

New Member
Joined
Jul 28, 2003
Messages
27
Hello - I'm trying to find out how to display a date of 1 month prior to current month year. If today is Oct-04, I would like to display Sept-04 in a cell.
Thanks for any help.
Tom
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
also,

edate(a2,-1)

...edate() requires that the analysis toolpak is activated (tools | addins)
 
Upvote 0
Hi Tom, Juan probably has a better handle on it but I got =EOMONTH(NOW(),-1). Not sure if you have the End Of Month add in.

Walt
 
Upvote 0
Thank you Juan & Walt. That was very helpful.

I used:

A2=now()
B2=DATE(YEAR(A2), MONTH(A2)-1, DAY(A2))

And received the desired results.
 
Upvote 0
Upvote 0
Hi PattyD, I'll thank you even if Tom didn't get a chance too. I like your edate. That's another new one on me. Works better than my EOM for keeping the day and date. I was just interested in going back the one month. Did the =EDATE(NOW(),-1) and got 9/20/2004. nice! And Juan, liked yours too. If A2 houses the date that you have, try this

=DATE(YEAR(A2), MONTH(A2)-1, DAY(A2))

have to remember these

thanks

Walt
 
Upvote 0

Forum statistics

Threads
1,222,636
Messages
6,167,218
Members
452,104
Latest member
jadethejade

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top