What is "extra bits"doing in formula?

M

Mike Hyndman

I've inherited a worksheet that contains the following formula
=IF(A1<>"",HLOOKUP(A1,Table,2),"")
I'm familiar with what the HLOOKUP function is doing but not sure as to
what the IF(A1<>"",(),"") bits are doing, especially as the expression
=HLOOKUP(A1,Table,2)
gives the same result.
TIA
MH
remove _bats_ to reply
 
V

Vasant Nanavati

Hi Mike:

The "extra bits" allow for the possibility that A1 is blank, in which case
HLOOKUP would retrurn an error.

Regards,

Vasant.
 
M

Mike Hyndman

Hello Vasant

Many thanks for clearing it up :cool:
regards
Mike H
Hi Mike:

The "extra bits" allow for the possibility that A1 is blank, in which case
HLOOKUP would retrurn an error.

Regards,

Vasant.

remove _bats_ to reply
 

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