KarthickDijo
New Member
- Joined
- Sep 14, 2022
- Messages
- 28
- Office Version
- 2019
- Platform
- Windows
Book1 | |||||||
---|---|---|---|---|---|---|---|
A | B | C | D | E | |||
1 | Input | ||||||
2 | Brand | Color | Brand | All Colours | |||
3 | Apple | Blue | Apple | Blue|Yellow | |||
4 | Apple | Yellow | Samsung | Red | |||
5 | Samsung | Red | Sony | Red|Green|Blue | |||
6 | Sony | Red | Lenovo | Orange|Black | |||
7 | Sony | Green | Dell | White | |||
8 | Sony | Blue | |||||
9 | Lenovo | Orange | |||||
10 | Lenovo | Black | |||||
11 | Dell | White | |||||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
D3:D7 | D3 | =FILTER(A3:A12,(B3:B12>=A1),"NA") |
E3:E7 | E3 | =TEXTJOIN("|",TRUE,IF(A3:A11=D3,B3:B11,"")) |
Dynamic array formulas. |
Excel Doubt.xlsx | |||||||
---|---|---|---|---|---|---|---|
A | B | C | D | E | |||
1 | Brand | Color | Brand | All Colors | |||
2 | Apple | Blue | Apple | Blue|Yellow | |||
3 | Apple | Yellow | Samsung | Red | |||
4 | Samsung | Red | Sony | Red|Green|Blue | |||
5 | Sony | Red | Lenovo | Orange|Black | |||
6 | Sony | Green | Dell | White | |||
7 | Sony | Blue | |||||
8 | Lenovo | Orange | |||||
9 | Lenovo | Black | |||||
10 | Dell | White | |||||
11 | |||||||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
D2:D8 | D2 | =IFERROR(INDEX($A$2:$A$10,AGGREGATE(15,6,(ROW($A$2:$A$10)-ROW($A$2)+1)/(ISNA(MATCH($A$2:$A$10,D$1:D1,0))),1)),"") |
E2:E8 | E2 | =IF(D2="","",TEXTJOIN("|",,IF(A2:A10=D2,B2:B10,""))) |
Thanks a lot for the help !!Hi there
Not sure if this will work for you?
Book1
A B C D E 1 Input 2 Brand Color Brand All Colours 3 Apple Blue Apple Blue|Yellow 4 Apple Yellow Samsung Red 5 Samsung Red Sony Red|Green|Blue 6 Sony Red Lenovo Orange|Black 7 Sony Green Dell White 8 Sony Blue 9 Lenovo Orange 10 Lenovo Black 11 Dell White Sheet1
Cell Formulas Range Formula D3:D7 D3 =FILTER(A3:A12,(B3:B12>=A1),"NA") E3:E7 E3 =TEXTJOIN("|",TRUE,IF(A3:A11=D3,B3:B11,"")) Dynamic array formulas.
Thanks for the help !! Just one clarification, why can't we use "UNIQUE" function in the D2 cell.Another option for xl2019
Excel Doubt.xlsx
A B C D E 1 Brand Color Brand All Colors 2 Apple Blue Apple Blue|Yellow 3 Apple Yellow Samsung Red 4 Samsung Red Sony Red|Green|Blue 5 Sony Red Lenovo Orange|Black 6 Sony Green Dell White 7 Sony Blue 8 Lenovo Orange 9 Lenovo Black 10 Dell White 11 Sheet1
Cell Formulas Range Formula D2:D8 D2 =IFERROR(INDEX($A$2:$A$10,AGGREGATE(15,6,(ROW($A$2:$A$10)-ROW($A$2)+1)/(ISNA(MATCH($A$2:$A$10,D$1:D1,0))),1)),"") E2:E8 E2 =IF(D2="","",TEXTJOIN("|",,IF(A2:A10=D2,B2:B10,"")))
Thanks for the info. Am not aware of power pivot, however will try to learn that asap. If possible kindly explain me how it can be done.2019 doesn't have UNIQUE as far as I am aware.
You could also use Power Pivot to produce the result table.
=CONCATENATEX(VALUES(Table1[Color]),[Color],"|")
Another option for xl2019
Excel Doubt.xlsx
A B C D E 1 Brand Color Brand All Colors 2 Apple Blue Apple Blue|Yellow 3 Apple Yellow Samsung Red 4 Samsung Red Sony Red|Green|Blue 5 Sony Red Lenovo Orange|Black 6 Sony Green Dell White 7 Sony Blue 8 Lenovo Orange 9 Lenovo Black 10 Dell White 11 Sheet1
Cell Formulas Range Formula D2:D8 D2 =IFERROR(INDEX($A$2:$A$10,AGGREGATE(15,6,(ROW($A$2:$A$10)-ROW($A$2)+1)/(ISNA(MATCH($A$2:$A$10,D$1:D1,0))),1)),"") E2:E8 E2 =IF(D2="","",TEXTJOIN("|",,IF(A2:A10=D2,B2:B10,"")))
Book3.xlsx | |||||||
---|---|---|---|---|---|---|---|
A | B | C | D | E | |||
1 | Input | ||||||
2 | Brand | Color | Brand | All Colours | |||
3 | Apple | Blue | Apple | Blue | Yellow | |||
4 | Apple | Yellow | Samsung | Red | |||
5 | Samsung | Red | Sony | Red|Green|Blue | |||
6 | Sony | Red | Sony | Red|Green|Blue | |||
7 | Sony | Green | Lenovo | Orange|Black | |||
8 | Sony | Blue | Dell | ||||
9 | Lenovo | Orange | |||||
10 | Lenovo | Black | |||||
11 | Dell | White | |||||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
D3:D8 | D3 | =FILTER(A3:A11,(B3:B11>=A2),"NA") |
E3 | E3 | =TEXTJOIN(" | ",TRUE,IF(A3:A11=D3,B3:B11,"")) |
E4:E7 | E4 | =TEXTJOIN("|",TRUE,IF(A4:A12=D4,B4:B12,"")) |
Dynamic array formulas. |