Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel vlookup question 1

Status
Not open for further replies.

finbib

IS-IT--Management
Aug 12, 2002
26
US
I have a named range in an Excel sheet called Commissions. I'm using the following formula to look for company names in Commissions in order to determine which invoices should have commissions paid on them.

=IF(C3=(VLOOKUP(C3,Commissions,1,FALSE)),"Y","")

The formula works, except for the else part of the statement, which should result in a null value being placed in the cell. What is actually happening is the formula is returning a "#N/A" in the cell, since that would mean the company name isn't in the list at all.

Is there a way to show the results as blank, rather than #N/A? I'm using this cell as a link for some other cells on different sheets and it is screwing them up as well.

TIA,

Bob Osborne
 
=IF(ISNA(VLOOKUP(C3,Commissions,1,FALSE)),"","Y")



Blue [dragon]

If I wasn't Blue, I would just be a Dragon...
 
Blue,

Thanks, that fixed it perfectly.

Bob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top