Hi excel gods
I am searching for an value in column C of a worksheet. If the exact value is found (it will be a unique value on each row), I need to check the whole row and return the column header name for each cell which has the value "Y". For example, if I searched for and located 123 in C5, and and D5 and G5 contained Y, the result would be D5, G5.
Note: I'm using column letters in the example, but the column headers will actually be names which I need to return comma separated.
I have the search part working fine and I am returning the values for each of the cells in the row, but I'm stuck on how to get each of the column header names.
Can someone point me in the right direction?
I am searching for an value in column C of a worksheet. If the exact value is found (it will be a unique value on each row), I need to check the whole row and return the column header name for each cell which has the value "Y". For example, if I searched for and located 123 in C5, and and D5 and G5 contained Y, the result would be D5, G5.
Note: I'm using column letters in the example, but the column headers will actually be names which I need to return comma separated.
I have the search part working fine and I am returning the values for each of the cells in the row, but I'm stuck on how to get each of the column header names.
Can someone point me in the right direction?