Hello,
I’ve been using a combination of Index, Aggregate and Countif to show the Nth occurrence, works great.
I was reading about the LAMBDA function and was attempting to build this formula into it. However, I thought it might be easier if I found a shorter option to the Aggregate formula.
The filter formula seems like a good option but I cant get past the spill over. How do I get H6:H14 to populate? Maybe its not meant to work the way I need it to.
Any advice is appreciated
I’ve been using a combination of Index, Aggregate and Countif to show the Nth occurrence, works great.
I was reading about the LAMBDA function and was attempting to build this formula into it. However, I thought it might be easier if I found a shorter option to the Aggregate formula.
The filter formula seems like a good option but I cant get past the spill over. How do I get H6:H14 to populate? Maybe its not meant to work the way I need it to.
Any advice is appreciated
Book1 | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | |||
1 | Master Sheet | Category | ID | Category | ID | |||||
2 | a | 101 | a | 101 | a | 101 | ||||
3 | b | 102 | a | 105 | a | 105 | ||||
4 | c | 103 | a | 109 | a | 109 | ||||
5 | d | 104 | a | 113 | a | 113 | ||||
6 | a | 105 | c | 103 | c | |||||
7 | b | 106 | c | 107 | c | |||||
8 | c | 107 | c | 111 | c | |||||
9 | d | 108 | d | 104 | d | |||||
10 | a | 109 | d | 108 | d | |||||
11 | b | 110 | b | 102 | b | |||||
12 | c | 111 | b | 106 | b | |||||
13 | d | 112 | b | 110 | b | |||||
14 | a | 113 | b | 114 | b | |||||
15 | b | 114 | ||||||||
16 | c | 115 | ||||||||
17 | d | 116 | ||||||||
18 | ||||||||||
Sheet7 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
H2 | H2 | =INDEX(FILTER(B2:B17,A2:A17=G2),) |
E2:E14 | E2 | =INDEX($B$2:$B$17,AGGREGATE(15,6,(ROW($A$2:$A$17)-ROW($A$2)+1)/($A$2:$A$17=$D2),COUNTIF($D$2:D2,$D2))) |