Hi All,
I am currently trying to write a formula to pull back a column of row labels in a pivot table (on another worksheet) based off of the text in a drop-down data validation.
For example, say I have a pivot where the row label in column A is "Species" and there are two types of species, Cat and Dog. Column B of row labels in the pivot is "Breed" and would say Golden Retriever, Labrador, Siamese, etc.
Basically, on the other worksheet if I have the data validation drop-down options as either Cat or Dog, I want to be able to select Dog and then have the formula pull back every Species of Dog from the pivot table in list format.
I am currently using the formula below. The issue somehow lies in pulling from the Pivot Table. When I copy and paste values of a sample of data from the pivot it works perfectly but when I try to reference the same exact data sample within the pivot the formula doesn't work. I've tried messing around with indirect but can't get that to work either. Any ideas?
{=IF(ISERROR(INDEX($E$1:$G$13,SMALL(IF($E$1:$E$13=$C$1,ROW($E$1:$E$13)),ROW(1:1)),3)),"",INDEX($E$1:$G$13,SMALL(IF($E$1:$E$13=$C$1,ROW($E$1:$E$13)),ROW(1:1)),3))}
Thanks in advance for the help!
Bookmarks