lironprofit
New Member
- Joined
- Jul 28, 2021
- Messages
- 2
- Office Version
- 2010
- Platform
- Windows
Hi all! Sorry in advance if some of my English isn't perfect as I'm not a native speaker.
I have a pivot table with the sum of sales for each customer ID by month, and I have a different pivot table in the same sheet with the customer ID and current balance (his AR).
What I'm trying to achieve is a calculated field in the first pivot table that for each customer ID shows also the balance. The problem is, the formula for the cal. field I'm trying to use is:
= IFERROR(VLOOKUP('CustomerID',OFFSET(,0,0,COUNTA($EH:$EH),2),8,0),0)
Whereas the OFFSET retrieves the second pivot table, and the VLOOKUP is supposed to search for the CustomerID in that table and bring it. Problem is pivot table doesn't support this.
Also, the data in the pivot table is changing regularly as it is referencing a table in a different sheet that is retrieved from BW Reporting.
What I tried to do is just create a column that has the VLOOKUP function adjacent to the first pivot table and I dragged it all the way down, but if the data is largening daily then I have to drag the column again and again. What I ended up doing is drag it all the way down in advance to 200,000 cells, but then the excel file is taking 5 minutes for each new change (like even putting borders around a cell). Is there a way to just make a cell drag itself down N amount of times (N will be calculated using COUNTA($EH:$EH)? Is there a way to bypass that pivot restriction to referencing entire tables?
Thanks, Liron.
P.S. Couldn't upload an SS because it is company's privacy and then I'd have to blur almost everything so it's a moo point.
P.S. P.S. I've sat on this problem for 5 hours.
I have a pivot table with the sum of sales for each customer ID by month, and I have a different pivot table in the same sheet with the customer ID and current balance (his AR).
What I'm trying to achieve is a calculated field in the first pivot table that for each customer ID shows also the balance. The problem is, the formula for the cal. field I'm trying to use is:
= IFERROR(VLOOKUP('CustomerID',OFFSET(,0,0,COUNTA($EH:$EH),2),8,0),0)
Whereas the OFFSET retrieves the second pivot table, and the VLOOKUP is supposed to search for the CustomerID in that table and bring it. Problem is pivot table doesn't support this.
Also, the data in the pivot table is changing regularly as it is referencing a table in a different sheet that is retrieved from BW Reporting.
What I tried to do is just create a column that has the VLOOKUP function adjacent to the first pivot table and I dragged it all the way down, but if the data is largening daily then I have to drag the column again and again. What I ended up doing is drag it all the way down in advance to 200,000 cells, but then the excel file is taking 5 minutes for each new change (like even putting borders around a cell). Is there a way to just make a cell drag itself down N amount of times (N will be calculated using COUNTA($EH:$EH)? Is there a way to bypass that pivot restriction to referencing entire tables?
Thanks, Liron.
P.S. Couldn't upload an SS because it is company's privacy and then I'd have to blur almost everything so it's a moo point.
P.S. P.S. I've sat on this problem for 5 hours.