'Looking' across a row to return a value

LWendell

New Member
Joined
Jun 19, 2008
Messages
3
Hi - I'm trying to develop a formula that will look across 17 columns of data and return the first value that is greater than zero. I tried using embedded 'if' statements but the 17 columns exceed the number of 'ifs' I'm allowed.

Any suggestions would be appreciated!
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Hi - I'm trying to develop a formula that will look across 17 columns of data and return the first value that is greater than zero. I tried using embedded 'if' statements but the 17 columns exceed the number of 'ifs' I'm allowed.

Any suggestions would be appreciated!

Control+shift+enter, not just enter...

=INDEX(A2:Q2,MATCH(1,IF(ISNUMBER(A2:Q2),IF(A2:Q2 > 0,1)),0))
 
Upvote 0

Forum statistics

Threads
1,214,646
Messages
6,120,717
Members
448,985
Latest member
chocbudda

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