Hi folks !
I'm trying to find a way to scan an excel sheet for a value an return the header value and the first column value of the intersection in another sheet.
Basically, I have a sheet with headers (From B5 to CW5), and the A column also contains text values (A5 to A100).
The following range contains calculation (numbers) values (B6:CW100).
The logic would be :
1) Scan sheet1 (B6:CW100) for values <>0
2) when you get a value <>0,
- Copy the value that is <> 0 in column A of sheet2
- Copy the header (Value in row 5 of the intersection) in column B of sheet2
- Copy the value that is in column A of the intersection in column C of sheet2
3) It would have to be a Paste Value to make sure to get rid of the function
The idea is to take a matrix and turn it into a table that can be used for a pivot table...
Ex of data in sheet1 :
X Y Z ValueA 0 125 2000 Value B 5 0 Value C 0 12 500
The result would be in sheet2 :
Value Column Header Line Header 125 Y Value A 2000 Z Value A 5 X Value B 12 Y Value C 500 Z Value C
Can anyone help me with this ? It seems like a decent challengeI tried looking for a solution online the whole day and I could not figure it out myself ...
Thanks a lot for your help !
Bookmarks