Automate a pivot table's replica - is it possible?

ORoxo

Board Regular
Joined
Oct 30, 2016
Messages
147
Hello, guys
I was wondering if I could get a 2nd opinion on something I did. You might remember something better.

There's this activity that I perform on a monthly basis that basically consists of extracting a report from SAP, copy it to excel and compare it with another sheet on the same excel file. This report gives me data really raw. So far, I was using a pivot table to organize it. However, I need to perform a few other checks on the side and if I change the data the pivot table changes as well and the checks get out of place which makes me lose time getting them set again.

In order to solve this, I replicated the pivot table's structure and got the same output out of formulas. The downside of this is that whenever I change the data it won't get new entries, only old ones.

I will provide an example below so you can understand better.

The report I extract gives me something like this:

Code:
Location    Item    Value   

AAA          123      1000€
BBB          231      500€
AAA          489      1500€
ABC          391      250€

From there, I want to know how much of each item I have in stock in each location. Therefore, I replicated the pivot table's structure.

Code:
AAA
    123  1000
    489  1500
BBB
    231  500
ABC
    391  250

I used SUMIFS to get the values. However, let's say a new item is allocated to a new location. Is there any way it would automatically insert the item's line under the location I have set? Meaning, let's say the report now has every line above plus this one:

BBB 191 100€

Would it be possible to set the excel in any way it that it would add this line below the location BBB?


Thank you very much for any input
 
Last edited:

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.

Forum statistics

Threads
1,195,591
Messages
6,010,614
Members
441,558
Latest member
lambierules

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
Top