Change cumulative value (running total) to actual value

MadHatsJess

New Member
Joined
Jul 12, 2017
Messages
27
Hi

I have cumulative sales data. Is there a quick way to change to value?

A1 = Week 1
A2 = Week 2
A3 = Week 4

B1 = 10
B2 - 12
B3 = 14

In C I need

C1 - 10
C2 - 2
C3 - 2

Thanks :)
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Thanks Eric

This is what I have done but I have so much data that its too hard to keep up. I have 70 different products and the data extract is daily in product order
 
Upvote 0
In that case I don't understand what you want. Try to provide a more realistic example of your data, and the expected results. Do you expect the list to be sorted? Are you looking for formulas, or a macro to sort and total the numbers for you?
 
Upvote 0
Thanks for the reply,

Just a formula will do it

What I have

Column A
Product name

Column B
Weekly dates (over three sales years Nov - Sep)

Column C
Cumulative Sale number


I sorted the data by product then date and then applied the sum.

That worked perfect and I was able to produce the pivot.

The problem is that the report I run is daily and it spits out all products with that days sales (total)

To keep up the document every day I would have to paste, sort and then drag each formula down 70 times.

In Column D I would like a formula that would reset at a new item OR sales year.

Hope this is more clear :D
 
Upvote 0
OK, ideally you have headings in row 1. Either insert a line and put some headings, or just start pasting your data at row 2. Now you still have to sort your table as before, but you can put this formula in D2:

=IF(A1<>A2,C2,C2-C1)

and copy down. This resets the totals whenever the product changes. We can add a check for the sales year too, but I don't see where October goes?
 
Upvote 0
That's great thank you for the help.

We close in October for a month so there will be no sales data for that month

Jess
 
Upvote 0
OK, try this:

=IF(A1<>A2,C2,IF(YEAR(EOMONTH(B1,-9))<>YEAR(EOMONTH(B2,-9)),C2,C2-C1))
 
Upvote 0

Forum statistics

Threads
1,224,819
Messages
6,181,153
Members
453,021
Latest member
Justyna P

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