This may be an easy question but I'm having trouble getting this to work. I'm working in Excel 2000 and I've got an imported table that has 16 columns and a variable number of rows. Most of the time, each row has info in only one of the data columns (see below). I need to first determine if there is data in any of the columns and if so, how many columns are populated on that record - this I've got with this formula:
IF(COUNTA($K2:$Y2)<1,"(blank)",IF(COUNTA($K2:$Y2)>1,"(multiple issues)"
If there is only one column that has data, I need to return that value to another column on that row (see row_data below - I have no problem doing this part). The problem is that I also need to return the column header that the data came from to another column on that row (see col_data below).
[tab][tab][tab][tab]|[tab]c1[tab]|[tab]c2[tab]|[tab]c3[tab]|[tab]c4 [tab]||[tab]row_data [tab]|[tab]col_data[tab]|
[tab]--------------------------------------------------------------------------------------
[tab]row1[tab]|[tab][tab][tab]|[tab][tab][tab]|[tab]fg[tab]|[tab][tab][tab]||[tab][tab][tab]fg[tab][tab]|[tab][tab]c3[tab][tab]|
[tab]row2[tab]|[tab][tab][tab]|[tab]yx [tab]|[tab]df[tab]|[tab][tab][tab]||[tab][tab](>1)[tab][tab]|[tab] (>1)[tab][tab]|
[tab]row3[tab]|[tab][tab][tab]|[tab][tab][tab]|[tab] [tab]|[tab]bc [tab]||[tab][tab][tab]bc [tab]|[tab][tab]c4[tab][tab]|
[tab]row4[tab]|[tab][tab][tab]|[tab][tab][tab]|[tab] [tab]|[tab][tab][tab]||[tab][tab](<1)[tab][tab]|[tab] (<1)[tab][tab]|
[tab]row5[tab]|[tab]ft [tab]|[tab][tab][tab]|[tab] [tab]|[tab][tab][tab]||[tab][tab][tab]ft [tab][tab]|[tab][tab]c1[tab][tab]|
Hopefully this makes sense. Thanks in advance for any help! Email me if you'd like the original spreadsheet.
IF(COUNTA($K2:$Y2)<1,"(blank)",IF(COUNTA($K2:$Y2)>1,"(multiple issues)"
If there is only one column that has data, I need to return that value to another column on that row (see row_data below - I have no problem doing this part). The problem is that I also need to return the column header that the data came from to another column on that row (see col_data below).
[tab][tab][tab][tab]|[tab]c1[tab]|[tab]c2[tab]|[tab]c3[tab]|[tab]c4 [tab]||[tab]row_data [tab]|[tab]col_data[tab]|
[tab]--------------------------------------------------------------------------------------
[tab]row1[tab]|[tab][tab][tab]|[tab][tab][tab]|[tab]fg[tab]|[tab][tab][tab]||[tab][tab][tab]fg[tab][tab]|[tab][tab]c3[tab][tab]|
[tab]row2[tab]|[tab][tab][tab]|[tab]yx [tab]|[tab]df[tab]|[tab][tab][tab]||[tab][tab](>1)[tab][tab]|[tab] (>1)[tab][tab]|
[tab]row3[tab]|[tab][tab][tab]|[tab][tab][tab]|[tab] [tab]|[tab]bc [tab]||[tab][tab][tab]bc [tab]|[tab][tab]c4[tab][tab]|
[tab]row4[tab]|[tab][tab][tab]|[tab][tab][tab]|[tab] [tab]|[tab][tab][tab]||[tab][tab](<1)[tab][tab]|[tab] (<1)[tab][tab]|
[tab]row5[tab]|[tab]ft [tab]|[tab][tab][tab]|[tab] [tab]|[tab][tab][tab]||[tab][tab][tab]ft [tab][tab]|[tab][tab]c1[tab][tab]|
Hopefully this makes sense. Thanks in advance for any help! Email me if you'd like the original spreadsheet.