Find the column that value becomes zero?

Ten98

Board Regular
Joined
Aug 24, 2010
Messages
53
Hi there,

I have a long list of sites, with predicted expansions over the next 5 years.

I want to show the year that the expansion becomes zero in column H, as per this example.

exampleb.png


I'm doing this manually, but there must be some way I can automate this in Excel...

Is there a formula I can enter in column H to return the column heading for when the value of the row becomes zero?

Many thanks,

John.
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Excel Workbook
ABCDEFGH
1201120122013201420152016Yr Zero
2Siate 13210002014
3Siate 22100002013
4Siate 30000002011
5Siate 46543210
Sheet1
Excel 2007
Cell Formulas
RangeFormula
H2=IF(ISNA(INDEX($B$1:$G$1,1,MATCH(0,$B2:$G2,0))),0,INDEX($B$1:$G$1,1,MATCH(0,$B2:$G2,0)))
H3=IF(ISNA(INDEX($B$1:$G$1,1,MATCH(0,$B3:$G3,0))),0,INDEX($B$1:$G$1,1,MATCH(0,$B3:$G3,0)))
H4=IF(ISNA(INDEX($B$1:$G$1,1,MATCH(0,$B4:$G4,0))),0,INDEX($B$1:$G$1,1,MATCH(0,$B4:$G4,0)))
H5=IF(ISNA(INDEX($B$1:$G$1,1,MATCH(0,$B5:$G5,0))),0,INDEX($B$1:$G$1,1,MATCH(0,$B5:$G5,0)))
 
Upvote 0
I hate repeating formula within an IF so my solution was slightly different

=IF(ISNA(MATCH(0,$B2:$G2,0)),0,INDEX($B$1:$G$1,1,MATCH(0,$B2:$G2,0)))

The first part of the IF only looks at the MATCH since that is what generates the error. Slightly more efficient but irrelevant in this situation:)
 
Upvote 0

Forum statistics

Threads
1,224,597
Messages
6,179,813
Members
452,945
Latest member
Bib195

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