|
Question : Doing a VLOOKUP in a pivot table???
|
|
I am trying to get values from a pivot table by getting the value in a cell, going to a pivot table and finding the row that matches that value and getting specified column from the pivot table.
Example of what I have:
Current Year Summary - worksheet
GLCODE DESC BEG BAL JUL AUG SEP 000 YEAR-TO-DATE NO BEG BAL #N/A #N/A #N/A 000 YEAR-TO-DATE NO BEG BAL #N/A #N/A #N/A 100 TRANSFER BETWEEN BANK ACCOUNTS NO BEG BAL #N/A #N/A #N/A 101 CASH IN BANK-OPERATING ACCOUNT 136,262.51 #N/A #N/A #N/A 102 CASH IN BANK-PAYROLL ACCOUNT 118,938.55 #N/A #N/A #N/A
CY-TOTALS - worksheet with Pivot Table
Sum of AMOUNT MONTH GLCODE DESC JUL AUG SEP 100 TRANSFER BETWEEN ACCOUNTS 0.00 0.00 0.00 101 CASH IN BANK-OPERATING ACCOUNT 246,776.90 415,076.81 43,968.43 102 CASH IN BANK-PAYROLL ACCOUNT 18,762.00 20,480.08 18,470.72 103 PETTY CASH 275.00 275.00 0.00 104 DEPOSIT IN TRANSIT 18,787.05 30,002.37 85,909.99 105 ACCOUNTS RECEIVABLE 1,219,347.91 1,356,672.35 5,027.03 106 CASH IN BANK-CO MATCHING 94,319.91 99,979.16 3,940.31
What I want to do is use the value in column A on the Current Year Summary - worksheet - take that value and find the row in CY-TOTALS - worksheet with Pivot Table that matches column A value, and get the value in specified column.
For example - Current Year Summary - worksheet A5=100. Go to CY-TOTALS - worksheet with Pivot Table and find the row that has 100 (which is A3) and get the value for the month of JUL.
Please ask questions...
Thanks for the assistance!
Saladart
|
|
Answer : Doing a VLOOKUP in a pivot table???
|
|
In Current Year Summary - worksheet, on the column where you want to get the Jul value, put in the formula =VLOOKUP(A5,$A$3:$E$100,3,FALSE). Copy the formula down to the rest.
Explanation : A5 = value you are matching $A$3:$E$100 = fix the area for teh lookup (basically the pivot which must be sorted on column A in ascending order) 3 = Jul column FALSE = exact match
good luck Nickson
|
|
|
|