Calculate last 12 months sales figures

davids4500

New Member
Joined
Jan 14, 2023
Messages
37
Office Version
  1. 365
Platform
  1. Windows
Hi

I have the dates in column A (running from (A2)10/01/2019 to (A85) 01/08/2024) A86 will become 01/09/2024 etc
I have the sales figures in Column B
I want to calculate the total of the sales figures for the last 12 months (from today)
which i would presume that as the next month starts, the calculation would include the latest month and drop off the what is now the 13th month.
I understand that using =SUMIFS is the formula.
I will appreciate your help.
Kindest regards David
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Have a look at the link below, just swap the column A and B over (hold your mouse over the cells in column C for the minus one year formula rather than the -365 days formula [or copy the table into your excel])
 
Upvote 0
Probably easier just to put the table for a straight 12 months from today (formula in D2, adjust the ranges to suit)

Book1
ABCD
218/08/2023647
326/08/202310
403/09/20238
511/09/20236
619/09/20235
727/09/202310
805/10/20231
913/10/20234
1021/10/20232
1129/10/20235
1206/11/2023947
1314/11/20232
1422/11/20233
Sheet1
Cell Formulas
RangeFormula
D2D2=SUMIFS($B$2:$B$85,$A$2:$A$85,"<="&TODAY(),$A$2:$A$85,">="&DATE(YEAR(TODAY()),MONTH(TODAY())-12,DAY(TODAY())))
D12D12=SUM(B5:B14)
 
Last edited:
Upvote 0
Or a slightly shorter version
Excel Formula:
=SUMIFS($B$2:$B$85,$A$2:$A$85,"<="&TODAY(),$A$2:$A$85,">="&EDATE(TODAY(),-12))
 
Upvote 0

Forum statistics

Threads
1,223,876
Messages
6,175,123
Members
452,614
Latest member
MRSWIN2709

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