Cumulative Formula Issue

Mr Sloth

New Member
Joined
Nov 15, 2020
Messages
20
Office Version
  1. 365
Platform
  1. Windows
Hi All,

Each week I update sales values (See columns D-H) which I want to compare against budget (see variance column in L). However, each week I have to manually change the formula to pick up the latest sales number. Is there a formula I can use to automatically pick up the latest week?

I have attached an example.

Many thanks in advance.


Book1
DEFGHIJKL
701/07/202208/07/202215/07/202222/07/202229/07/2022BudgetVar
8100,000150,000200,000120,000-20,000
950,00065,000-15,000
1020,00060,000-40,000
Sheet1
Cell Formulas
RangeFormula
L8:L10L8=D8-J8
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
If you normalize your data table, then you could do this with a pivot table and it would update with each entry.

Book7
ABCDEFGHIJKLMNO
1ProductSales$DateBudgetColumn Labels
2A1000007/1/20221200007/1/20227/8/20227/15/2022
3B500007/1/202265000Row LabelsSum of Sales$Sum of BudgetSum of VarianceSum of Sales$Sum of BudgetSum of VarianceSum of Sales$Sum of BudgetSum of Variance
4C200007/1/202260000A10000012000020000150000120000-30000200000120000-80000
5A1500007/8/2022120000B50000650001500000
6A2000007/15/2022120000C20000600004000000
7
Sheet1
 

Attachments

  • Screenshot 2022-07-11 160757.jpg
    Screenshot 2022-07-11 160757.jpg
    48.9 KB · Views: 4
Upvote 0
If you normalize your data table, then you could do this with a pivot table and it would update with each entry.

Book7
ABCDEFGHIJKLMNO
1ProductSales$DateBudgetColumn Labels
2A1000007/1/20221200007/1/20227/8/20227/15/2022
3B500007/1/202265000Row LabelsSum of Sales$Sum of BudgetSum of VarianceSum of Sales$Sum of BudgetSum of VarianceSum of Sales$Sum of BudgetSum of Variance
4C200007/1/202260000A10000012000020000150000120000-30000200000120000-80000
5A1500007/8/2022120000B50000650001500000
6A2000007/15/2022120000C20000600004000000
7
Sheet1
Thanks but for this particular report I only want one variance, which is for the latest week.
 
Upvote 0
Try

Book2
ABCDEFGHIJKLM
1
2
3
4
5
6
77/1/20227/8/20227/15/20227/22/20227/29/2022BudgetVar
810000015000020000012000030000
95000065000-65000
102000060000-60000
11
12
Sheet1
Cell Formulas
RangeFormula
L8:L10L8=INDEX(D8:H8,MATCH(TODAY(),$D$7:$H$7,1))-J8
 
Upvote 0
Solution
I understand your needs, but I would still recommend that you normalize your data and then you can easily analyze your data. With your current configuration, you will constantly adding columns and having to move your calculations.
 
Upvote 0
I understand your needs, but I would still recommend that you normalize your data and then you can easily analyze your data. With your current configuration, you will constantly adding columns and having to move your calculations.
Thank you. I'll take this into consideration.
 
Upvote 0
Try

Book2
ABCDEFGHIJKLM
1
2
3
4
5
6
77/1/20227/8/20227/15/20227/22/20227/29/2022BudgetVar
810000015000020000012000030000
95000065000-65000
102000060000-60000
11
12
Sheet1
Cell Formulas
RangeFormula
L8:L10L8=INDEX(D8:H8,MATCH(TODAY(),$D$7:$H$7,1))-J8
Thank you very much that has worked perfectly!!!
 
Upvote 0
Thank you very much that has worked perfectly!!!
If that does what you want then another option might be

22 07 13.xlsm
DEFGHIJKL
701/07/202208/07/202215/07/202222/07/202229/07/2022BudgetVar
8100,000150,000200,000120,00030,000
950,00065,000-65,000
1020,00060,000-60,000
Var
Cell Formulas
RangeFormula
L8:L10L8=LOOKUP(TODAY(),D$7:H8)-J8
 
Upvote 0

Forum statistics

Threads
1,215,467
Messages
6,124,984
Members
449,201
Latest member
Lunzwe73

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