Discussion Keeping up with changed cell references used in calculations in other cells in refreshed pivot table in Excel
https://techcommunity.microsoft.com/t5/excel/keeping-up-with-changed-cell-references-used-in-calculations-in/m-p/1878384#M80773
<P>I am trying to create a pivot table from a daily downloaded Excel sheet that is in reality a simple table containing rows of stock positions sorted by account. The number of rows for each account will change according to added or deleted positions. I have a pivot table that organizes the data by a "short name" for each account and subtotals the value of the account. I need to add columns that determine the percent of the subtotal in each position, calculate a threshold percent position limit, calculate over allocations above that, and specify position reduction amount of the over-allocation. These depend on the short name field subtotals. The problem is that as the PT is refreshed with a new download that has more or fewer positions (rows) in an account, it changes the cell reference for the subtotal, while the added column calculations refer to the old cell reference. And the calculation cells may shift to rows related to another account, so the values on that row may now refer to a different short name grouping, or a non-subtotal row.</P><P> </P><P>Is there a way to provide a dynamic cell reference to the percentage calculations which keeps up with the new subtotal location and checks that it is in the same short name grouping. A small section of the spreadsheet is attached. The $F$10 reference in column P is to the field subtotal; the second $A$3 in Q is to the Short Name cell which occurs only on the first line of the field grouping. Each of these references will change if rows are added or subtracted from the source table, and the new reference need to be used in the subtotal percentage calculations.</P><P> </P><P>Is there a way to do this? Thanks!</P><P> </P>Wed, 11 Nov 2020 22:07:50 GMTJRClev2020-11-11T22:07:50ZKeeping up with changed cell references used in calculations in other cells in refreshed pivot table
https://techcommunity.microsoft.com/t5/excel/keeping-up-with-changed-cell-references-used-in-calculations-in/m-p/1878384#M80773
<P>I am trying to create a pivot table from a daily downloaded Excel sheet that is in reality a simple table containing rows of stock positions sorted by account. The number of rows for each account will change according to added or deleted positions. I have a pivot table that organizes the data by a "short name" for each account and subtotals the value of the account. I need to add columns that determine the percent of the subtotal in each position, calculate a threshold percent position limit, calculate over allocations above that, and specify position reduction amount of the over-allocation. These depend on the short name field subtotals. The problem is that as the PT is refreshed with a new download that has more or fewer positions (rows) in an account, it changes the cell reference for the subtotal, while the added column calculations refer to the old cell reference. And the calculation cells may shift to rows related to another account, so the values on that row may now refer to a different short name grouping, or a non-subtotal row.</P><P> </P><P>Is there a way to provide a dynamic cell reference to the percentage calculations which keeps up with the new subtotal location and checks that it is in the same short name grouping. A small section of the spreadsheet is attached. The $F$10 reference in column P is to the field subtotal; the second $A$3 in Q is to the Short Name cell which occurs only on the first line of the field grouping. Each of these references will change if rows are added or subtracted from the source table, and the new reference need to be used in the subtotal percentage calculations.</P><P> </P><P>Is there a way to do this? Thanks!</P><P> </P>Wed, 11 Nov 2020 22:07:50 GMThttps://techcommunity.microsoft.com/t5/excel/keeping-up-with-changed-cell-references-used-in-calculations-in/m-p/1878384#M80773JRClev2020-11-11T22:07:50ZRe: Keeping up with changed cell references used in calculations in other cells in refreshed pivot t
https://techcommunity.microsoft.com/t5/excel/keeping-up-with-changed-cell-references-used-in-calculations-in/m-p/1879256#M80792
<P><LI-USER uid="865898"></LI-USER> You don't share the real pivot table with us. Just some pasted values. Thus, the GETPIVOTDATA formulae are broken. But never mind. If you want to calculate the 5% position, you don't need to reference the subtotal in F10. A formula like:</P><LI-CODE lang="excel">=F3/O3*5%</LI-CODE><P>in P3 (and copied down) will do that trick.</P><P> </P>Thu, 12 Nov 2020 05:08:52 GMThttps://techcommunity.microsoft.com/t5/excel/keeping-up-with-changed-cell-references-used-in-calculations-in/m-p/1879256#M80792Riny_van_Eekelen2020-11-12T05:08:52Z