how do i find any value in a list that is not #NA

G

Guest

I have a row of cells on one sheet, each of which is the result of a vlookup.
I want to retrieve the (hopefully) one value in the row that is NOT #NA.
The value can be anything, so I don't have the lookup_value for hlookup.

Any ideas?
 
T

T. Valko

So, there will only being a single value that is not #N/A?

=LOOKUP(2,1/NOT(ISNA(A1:E1)),A1:E1)

Biff
 
H

Harlan Grove

Larry Lessmann said:
I have a row of cells on one sheet, each of which is the result of a vlookup.
I want to retrieve the (hopefully) one value in the row that is NOT #NA.
The value can be anything, so I don't have the lookup_value for hlookup.

Try something like

=LOOKUP(2,1/(1-ISNA(A1:J1)),A1:J1)
 
P

Peo Sjoblom

One way

=INDEX(C3:O3,MATCH(FALSE,ISERROR(C3:O3),0))

entered with ctrl + shift & enter

will return the first cell with non error
 

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