Excel Current Month (Sept), Curr Month -1 (Aug), Curr Month -2 (July) Formula

atlsftp

New Member
Joined
Sep 4, 2018
Messages
2
What formula can I use to return the current month, current month -1 and current month -2 for a dashboard that will update monthly?

Current month = September
Current month -1 = August
Current month -2 = July
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
[table="class:thin_grid"]
[tr][td]v[/td]
[td="bgcolor:#ECF0F0, align:center"]A[/td]
[/tr][tr][td="bgcolor:#ECF0F0, align:center"]1[/td]
[td="bgcolor:#FFFFFF, align:CENTER"]=MONTH(TODAY())[/td]
[/tr]
[tr][td="bgcolor:#ECF0F0, align:center"]2[/td]
[td="bgcolor:#FFFFFF, align:CENTER"]=MONTH(TODAY())-1[/td]
[/tr]
[tr][td="bgcolor:#ECF0F0, align:center"]3[/td]
[td="bgcolor:#FFFFFF, align:CENTER"]=MONTH(TODAY())-2[/td]
[/tr]
[/table]
 
Upvote 0
A slight adaption, A2 copied/dragged down....

Excel Workbook
A
1September
2August
3July
4June
5May
6April
7March
8February
9January
Sheet1
 
Last edited:
Upvote 0
Or actually just A1 copied/dragged down....

Excel Workbook
A
1September
2August
3July
4June
5May
6April
7March
8February
9January
10December
11November
12October
13September
Sheet1
 
Last edited:
Upvote 0
Is there a way to do this without using today()? I don't want the file to change everytime I open it.
 
Upvote 0
Why would it change each time, it only changes at the change in month (yes it does re-calculate each time but the result doesn't change until the month does)?
 
Upvote 0
Hi,

I think we can also use the EDATE function.

Use formula in A1 copied down, works just like the formula provided by MARK858.

Use formula in C1 copied down, Months only change when you change the date in the reference cell:


Book1
ABCD
1SeptemberJuly7/4/2018
2AugustJune
3JulyMay
4JuneApril
5MayMarch
6AprilFebruary
7MarchJanuary
8FebruaryDecember
9JanuaryNovember
10DecemberOctober
11NovemberSeptember
12OctoberAugust
13SeptemberJuly
Sheet227
Cell Formulas
RangeFormula
A1=TEXT(EDATE(TODAY(),-ROWS(A$1:A1)+1),"mmmm")
C1=TEXT(EDATE(D$1,-ROWS(C$1:C1)+1),"mmmm")
 
Upvote 0

Forum statistics

Threads
1,223,981
Messages
6,175,768
Members
452,668
Latest member
mrider123

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