SUM the rest of the row from a specific date in a pivot table?

M-D_87

New Member
Joined
Sep 1, 2013
Messages
5
Hallo

I am currently doing a small analysis on items locked due quality issues, and have gotten a bit of a problem.

I have a pivot table which contains the lost sales date, the item number vertically and date horizontally, the values are the amount of lost sales.

Now a have a list which contains the item number, and the creation date the quality issue.

So in order to know how much sales there has been lost since the item had quality issues i need to look up the correct item number in the pivot table, and the go to the closest date after the creation date and sum the rest of the row.

I have attached a little example i hope will clarify the issue :)


List containing a few 100 numbers locked on various dates
Item NumberCreation date
111111101-09-13

<tbody>
</tbody>
Pivot table
01-08-1315-09-1301-10-13
1111111123
2222222123
3333333134

<tbody>
</tbody>

So in this case it should the two numbers marked in bold italic, giving me 5.

I simple cannot get my head around this issue, so any help is appreciated. And please and if there is anything the needs clarification :)

Thanks in advance :)
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
you will have to use a formula for this, that being said I wouldn't use the data from the pivot table.
 
Upvote 0
Why not use the pivot table? I use data from them all the time. Very easy way to set up data, the way it's needed.

I've already tried several formula combinations, but I cannot crack the code so to say.
 
Upvote 0
The combination of match, offset and sum function I have been trying, appears to be somewhat of a dead end unfortunately.
 
Upvote 0

Excel 2012
ABCDEFGH
2
38/1/20139/15/201310/1/2013Item #Datesum
4111111112333333338/2/20137
52222222123#VALUE!
63333333134
7
8
9
Sheet1
Cell Formulas
RangeFormula
H4=SUMPRODUCT(INDEX(B4:D6,MATCH(F4,A4:A6,0),MATCH(G4,B3:D3)+1):INDEX(B4:D6,MATCH(F4,A4:A6,0),MATCH(9.9E+307,B4:D4)))
H5=INDEX(B4:D6,MATCH(F4,A4:A6,0),)



this will do it, but I still dont like the pivot table data, if it gets pivoted then this formula will not work
 
Upvote 0
Thanks a lot, ill try this tomorrow. Don't worry about the pivot table, once I have the result it is copied and inserted as values.
 
Upvote 0

Forum statistics

Threads
1,215,449
Messages
6,124,911
Members
449,195
Latest member
Stevenciu

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