Column Heading with first non-zero Entry

mbdowty

Board Regular
Joined
Mar 19, 2003
Messages
175
Row 1 contains headings (Q109, Q209......)
Row 2 contains sales figures.

What would a simple formula be that would return the heading where the first non-zero sales figure occurs?

Thanks
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
This would work as an example, change the cell references as needed:

=INDEX(A1:H1,1,MIN(IF(A2:H2<>0,COLUMN(A2:H2))))
Book3
ABCDEFGH
1Q109Q209Q309Q409Q110Q210Q310Q410
2000150002500026411584656531655
3
4
5Q409
Sheet6


It also needs to be confirmed with control+shift+enter and not just enter.

Hope that helps.
 
Upvote 0
Thanks Schielrn,

I wonder if there is a non-array formula solution. I have over 6000 rows of live sales data and I'm afraid the array formula will slow the workbook down too much.
 
Upvote 0

Forum statistics

Threads
1,214,642
Messages
6,120,701
Members
448,980
Latest member
CarlosWin

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
Back
Top