Finding non-zero value

G

Guest

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
 
G

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top