Find values in columns that may change

PCRIDE

Well-known Member
Joined
Jan 20, 2008
Messages
892
How do I search a pre-defined pivot table with Month names as headers, then the pivot table has 2 values Cost and Quantity so when these are in the Values field in the Pivot table and I have let's say 4 months selected in the year, the first 4 columns will be Cost, the next 4 will be Quantity. I need to pull the values out of these columns for the Month and or Quantity. The challenge here is if the pivot table changes and more months are added, the first 6 columns will be Cost, the next 6 will be quantity. This could go up to 24 months of data.

On my dashboard I use Drop Downs to choose the Account Name, then sumifs to pull in the data. I can't reference an absolute cell as they can change at any time. I need like a complex index match formula? I have other cells that give me Current Month, previous month, 3 months ago etc.. so based on that I can use these as look ups and find the month that is displayed.

In addition my pivot table has multiple rows, Account Name, SubItems. I've concatenated these into one column as a helper field. to make it easier.

Any ideas?


EDIT:
The end result is a dashboard that will display let's say 6 months at time, the month labels can be the look up months.

"Find the month, for the account chosen and give me the price and /or quantity.

 
Last edited by a moderator:

Some videos you may like

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.

Watch MrExcel Video

Forum statistics

Threads
1,114,513
Messages
5,548,499
Members
410,840
Latest member
Kar3ousse
Top