I have a input table like this A1:C21. I'm trying to show (in 4 columns array) the "Letters" that meet the condition
in J2 and K2. In this example I'm getting the letters for which Col_A = 1 and Col_B = "MM".
Below I'm showing the current output using a formula in E2 (borrowed from here), but when I copy across and down, repeats letters
and the letters are shown separated. I'd like to get the letters without separation in 4 columns and needed rows by each case.
Maybe some SPILL function could calculate dinamycally the rows without repetition.
Thanks in advance for any help.
in J2 and K2. In this example I'm getting the letters for which Col_A = 1 and Col_B = "MM".
Below I'm showing the current output using a formula in E2 (borrowed from here), but when I copy across and down, repeats letters
and the letters are shown separated. I'd like to get the letters without separation in 4 columns and needed rows by each case.
Maybe some SPILL function could calculate dinamycally the rows without repetition.
Thanks in advance for any help.
file.xlsx | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | |||
1 | VALUES | TYPE | LETTERS | CURRENT OUTPUT | VALUE | TYPE | ||||||||
2 | 1 | MM | A | A | 1 | MM | ||||||||
3 | 3 | MM | B | N | ||||||||||
4 | 1 | AS | C | K | ||||||||||
5 | 2 | MM | D | H | ||||||||||
6 | 2 | AS | E | |||||||||||
7 | 3 | AS | F | N | ||||||||||
8 | 3 | AS | G | K | S | |||||||||
9 | 1 | MM | H | |||||||||||
10 | 2 | AS | I | EXPECTED OUTPUT | ||||||||||
11 | 2 | MM | J | A | H | K | N | |||||||
12 | 1 | MM | K | S | ||||||||||
13 | 1 | AS | L | |||||||||||
14 | 3 | AS | M | |||||||||||
15 | 1 | MM | N | |||||||||||
16 | 3 | MM | O | |||||||||||
17 | 1 | AS | P | |||||||||||
18 | 2 | AS | Q | |||||||||||
19 | 3 | AS | R | |||||||||||
20 | 1 | MM | S | |||||||||||
21 | 1 | AS | T | |||||||||||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
E2:H8 | E2 | =UNIQUE(INDEX(IF(($A$2:$A$21=$J$2)*($B$2:$B$21=$K$2),$C$2:$C$21,""),ROWS($A$1:A1)+(COLUMNS($A$1:A1)-1)*4)) |