filter unique value and transpose the 3rd column base on unique values

ExcelNewbie2020

Active Member
Joined
Dec 3, 2020
Messages
297
Office Version
  1. 365
Platform
  1. Windows
Sirs,

would it be possible to filter the unique values from column A and B then transpose column C based on the unique values?.. please see the expected result..thank you


Book1
ABCDEFGHIJKLMNO
1EXPECTED RESULT
2123DOG12123DOG12131415161718
3123DOG13456CAT323334353637
4123DOG14
5123DOG15
6123DOG16
7123DOG17
8123DOG18
9456CAT32
10456CAT33
11456CAT34
12456CAT35
13456CAT36
14456CAT37
15
Sheet1
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
MrExcelPlayground22.xlsx
ABCDEFGHIJKLMNO
1EXPECTED RESULT
2123DOG12123DOG12131415161718
3123DOG13456CAT323334353637
4123DOG14
5123DOG15123DOG12131415161718
6123DOG16456CAT323334353637
7123DOG17
8123DOG18
9456CAT32
10456CAT33
11456CAT34
12456CAT35
13456CAT36
14456CAT37
Sheet24
Cell Formulas
RangeFormula
G5:H6G5=UNIQUE(A2:B14)
I5:O5I5=TRANSPOSE(FILTER(C2:C14,(A2:A14=G5)*(B2:B14=H5)))
I6:N6I6=TRANSPOSE(FILTER(C2:C14,(A2:A14=G6)*(B2:B14=H6)))
Dynamic array formulas.
 
Upvote 1
MrExcelPlayground22.xlsx
ABCDEFGHIJKLMNO
1EXPECTED RESULT
2123DOG12123DOG12131415161718
3123DOG13456CAT323334353637
4123DOG14
5123DOG15123DOG12131415161718
6123DOG16456CAT323334353637
7123DOG17
8123DOG18
9456CAT32
10456CAT33
11456CAT34
12456CAT35
13456CAT36
14456CAT37
Sheet24
Cell Formulas
RangeFormula
G5:H6G5=UNIQUE(A2:B14)
I5:O5I5=TRANSPOSE(FILTER(C2:C14,(A2:A14=G5)*(B2:B14=H5)))
I6:N6I6=TRANSPOSE(FILTER(C2:C14,(A2:A14=G6)*(B2:B14=H6)))
Dynamic array formulas.
thanks, would it be possible in a single spill array formula?
 
Upvote 0
How about:

Excel Formula:
=HSTACK(UNIQUE(A2:B14),LET(ConcatColumn,LET(ColumnOne,A2:A14,ColumnTwo,B2:B14,ColumnThree,C2:C14,FirstTwoColumnsConcat,ColumnOne&ColumnTwo,CHOOSE({1,2},FirstTwoColumnsConcat,ColumnThree)),IFNA(DROP(TEXTSPLIT(CONCAT(BYROW(UNIQUE(INDEX(ConcatColumn,,1)),LAMBDA(val,TEXTJOIN(",",TRUE,FILTER(INDEX(ConcatColumn,,2),INDEX(ConcatColumn,,1)=val))))&"-"),",","-"),-1),"")))
 
Upvote 0
Solution
Another option
Excel Formula:
=LET(u,UNIQUE(A2:B14),IFNA(DROP(REDUCE("", SEQUENCE(ROWS(u)),LAMBDA(x,y,LET(a,INDEX(u,y,1),b,INDEX(u,y,2),VSTACK(x,HSTACK(a,b,TOROW(FILTER(C2:C14,(A2:A14=a)*(B2:B14=b)))))))),1),""))
 
Upvote 1

Forum statistics

Threads
1,216,117
Messages
6,128,937
Members
449,480
Latest member
yesitisasport

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top