Hi,
this is my first post here
I am looking for help with the following.
I have a table of products and they will have IN and OUT values based on orders (copied from elsewhere). The copied values are all positive, but actually IN is positive and OUT is negative.
More and more INs and OUTs will be added during the year. I have changed my source date to a TABLE so the cell names can be updated easily.
Product IN1 IN2 OUT1 OUT2 A 200 100 B 30 50 5 C 50 35 A 20 35
I want my pivot table to have the sum of all INs and OUTs (say, for A), while treating OUT as negative.
I could add a Calculated field with the formula In1+IN2-OUT1-OUT2, but then I will need to manually change the formula each time a new IN our OUT comes. I would love that when I add a new IN/OUT to the pivot table Value section, the SUM=IN-OUT for each row would update automatically.
Theoretically, I have tried making a separate sheet that checks if the column name has OUT in it and then multiplies the value by -1 and getting the Pivot from there. But this involves having an extra page and manually increasing the size of the TABLE on the second page.
Thank you all in advance for help.
Bookmarks