Hello,
I am using Index and match but for multiple entries (Aggregate function) and works great. I want to adjust the formula to exclude numbers (under site column) if it matches a list (List to exclude). I tried working a Countif into the mix but nothing successful.
Any help is appreciated
I am using Index and match but for multiple entries (Aggregate function) and works great. I want to adjust the formula to exclude numbers (under site column) if it matches a list (List to exclude). I tried working a Countif into the mix but nothing successful.
Any help is appreciated
Index match and exclude.xlsx | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | |||
1 | Site | Date | List to exclude | ||||||||
2 | 101 | 03/03/23 | 03/03/23 | 08/03/23 | 09/10/23 | 108 | |||||
3 | 103 | 03/03/23 | 101 | 102 | 117 | 102 | |||||
4 | 109 | 03/03/23 | 103 | 106 | 118 | 117 | |||||
5 | 104 | 07/07/23 | 109 | 108 | 119 | 122 | |||||
6 | 105 | 07/14/23 | 114 | 120 | |||||||
7 | 107 | 07/21/23 | |||||||||
8 | 102 | 08/03/23 | |||||||||
9 | 106 | 08/03/23 | |||||||||
10 | 108 | 08/03/23 | |||||||||
11 | 114 | 08/03/23 | * | ||||||||
12 | 110 | 08/19/23 | |||||||||
13 | 111 | 09/09/23 | |||||||||
14 | 117 | 09/10/23 | |||||||||
15 | 118 | 09/10/23 | |||||||||
16 | 119 | 09/10/23 | |||||||||
17 | 120 | 09/10/23 | |||||||||
18 | 112 | 09/15/23 | |||||||||
19 | 113 | 09/16/23 | |||||||||
20 | 115 | 09/29/23 | |||||||||
21 | 116 | 10/07/23 | |||||||||
22 | 121 | 12/01/23 | |||||||||
23 | 122 | 12/08/23 | |||||||||
24 | 123 | 12/09/23 | |||||||||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
D3:D9 | D3 | =IFERROR(INDEX($A$2:$A$24,AGGREGATE(15,6,(ROW($B$2:$B$24)-ROW($B$2)+1)/($B$2:$B$24=$D$2),ROWS($C$2:C2))),"") |
E3:E9 | E3 | =IFERROR(INDEX($A$2:$A$24,AGGREGATE(15,6,(ROW($B$2:$B$24)-ROW($B$2)+1)/($B$2:$B$24=$E$2),ROWS($C$2:D2))),"") |
F3:F9 | F3 | =IFERROR(INDEX($A$2:$A$24,AGGREGATE(15,6,(ROW($B$2:$B$24)-ROW($B$2)+1)/($B$2:$B$24=$F$2),ROWS($C$2:E2))),"") |