Excel Formula: Create vertical list by returning column header of each non-blank cell in a horizontal range across multiple columns

haruspication

New Member
Joined
Jan 19, 2012
Messages
17
Starting in H2, I'm trying to find the correct excel array/formula that will scan the horizontal range $B2:$D2 and return the column header of each non-blank cell in the range in the order they appear, and then move down to $B3:$D3 and do the same, etc. (The dates listed in Column H would then correspond with the crops listed in Column G.)

I appreciate any help in the right direction.

ABCDEFGH
12-MAY9-MAY16-MAYTOTAL
COUNT
CROPPLANTING
DATES
2Crop1112Crop12-MAY
3Crop211Crop19-MAY
4Crop30Crop29-MAY
5Crop4112Crop49-MAY
6Crop416-MAY
7

<tbody>
</tbody>


To see ARRAY formula in Column G, see: Skipping blank cells in list based on non-blank cell count in each row
 

Some videos you may like

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)

Watch MrExcel Video

Forum statistics

Threads
1,123,271
Messages
5,600,651
Members
414,399
Latest member
Ninjee

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top