0

Helo,

I got data like below

enter image description here

How I can change it into something like this ?

enter image description here

I've tried combinig

=IF(COUNTIF(B2;"*"&$G$1)=1;C2;"")

with VLOOKUP AND INDEX functions but with no luck...

Thank you in advance for your help

Best regards

Maciej

1 Answers1

0

If you have Office 365 you could achieve this using:

=TRANSPOSE(SORT(UNIQUE($B$2:$B$11))) in B13

=SORT(UNIQUE($A$2:$A$11)) in A14

=IFERROR(INDEX($C$2:$C$11,MATCH(1,($A$2:$A$11=@$A$14#)*($B$2:$B$11=TRANSPOSE(@$B$13#)),0)),"") in B14

enter image description here

P.b
  • 8,293
  • 2
  • 10
  • 25