I have a spreadsheet that I would need to create a macro for and I need you guys help.
The big picture, I want to find a cell in a range that is not equal to 0 (Its either 0 or 1 in that cell range) And copy the title of that column and paste it in the L Cell of the same row it found the 1.
So it goes like this:
Row N2 to WI2 has the titles of the columns, Range N3 to WI9000 is the location of the cells with either 1 or 0 --- 1 if the value exist and 0 if its not found
EX:
3 Apples Bananas Tomatoes
4 1 1 0
5 0 0 1
6 1 0 0
And when it sees the 1's or not equal to 0:
- Number 4 in Cell L4 would output like this (Apples, Bananas)
- Number 5 in Cell L5 would output like this (Tomatoes)
- Number 6 in Cell L6 would output like this (Apples)
Thanks for your help