Thread: V and H look up
View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.newusers
JE McGimpsey JE McGimpsey is offline
external usenet poster
 
Posts: 4,624
Default V and H look up

One way:

=IF(ISNA(MATCH($K$1,B3:H3,False)),"",$K$1)

or, alternatively

=IF(COUNTIF(B3:H3,$K$1),$K$1,"")


Note that a HLOOKUP with an index row of 1 can only return one of two
values: the value being looked up, or #N/A (assuming no errors in the
range that get passed through).


In article ,
JR wrote:

Thanks for the reply.

The formula I currently have is a simple =HLOOKUP($K$1,B3:H3,1,FALSE)

How would I re write this to match the formula suggested?