Find values in columns that may change


Well-known Member
Jan 20, 2008
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?

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:

Forum statistics

Latest member

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...