Reputation: 103
I have a column A of values that works as a filter (1 or 2) for the column B, which is the attribute. I need to create a new column (C), of values based on the second column but filtered with the column 1, as follows:
(values can be duplicates, as shown)
I tried the INDEX/MATCH formulas, without luck. I have not had any luck either with the Data/Filter menu options as I need column C to update automatically whenever a new value is entered into columns A and B.
Upvotes: 0
Views: 212
Reputation: 36965
For Office365
use filter formula.
=FILTER(B2:B8,A2:A8=1,"")
Without Office365
use Index()
and Aggregate()
=IFERROR(INDEX($B$2:$B$8,AGGREGATE(15,6,ROW($A$2:$A$8)-ROW($A$1)/($A$2:$A$8=1),ROW(1:1))),"")
Upvotes: 1