简体   繁体   中英

Excel - Vlook up with cell value as column heder and another value

Helo,

I got data like below

在此处输入图像描述

How I can change it into something like this?

在此处输入图像描述

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

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

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM