Hello people!
I'm getting crazy with this one! I'm trying to merge 2 tables in 1.
So basically, this is my first table
example1.png
I have to fill this 2nd table to order my datas correctly
example2.png
So like you can see, I have to find the non blank cell, and display the header. I found several solution to do it, but my problem comes when a row has several datas. It can go up to 3 by rows. So I would like to have in my first column only the first currency, in the second column, only the second one, but if the resources doesn't have a second one, it should show nothing.
I have the feeling that I will have to use Macro for this one.
These are the different formulas I tried to solve this problem:
=INDEX(DB_Resources!$B$1:$BT$1,MATCH(0,(DB_Resources!B2:BT2),-1))
=INDEX(DB_Resources!$B$1:$BT$1,MATCH(0,(DB_Resources!B2:BT2) * (DB_Resources!B2:BT2 <> (INDEX(DB_Resources!$B$1:$BT$1,MATCH(0,(DB_Resources!B2:BT2),-1)))),-1)) (this one is closed to find the second datas but it doesn't totally work as I would like)
=INDEX(DB_Resources!$B$1:$BT$1,MATCH(TRUE,INDEX(DB_Resources!B2:BT2<>0,),0))
I would be so happy if someone can help me!
Thank you!
Bookmarks