Finding non-zero value

T

Tom Stout

I would like to be able to test a row in a matrix for a non-zero value. When
I find the non-zero cell I want to return the value of column heading.
 
P

Peo Sjoblom

=INDEX(A1:O1,MATCH(TRUE,A2:O2<>0,0))

where headers are in A1:O1 and the values in A2:O2

adapt accordingly to fit your own data

needs to be entered with ctrl + shift & enter


--

Regards,

Peo Sjoblom

http://nwexcelsolutions.com
 
B

Blueglass

Hello Peo,
Thanks for the information!
One more thing, the formula below returns the first value and the first
header, how do I return multiple headers for multiple values?
Thank you.

Jim
 
Top