[mso] Excel Vlookup, if, isna formula

  • From: "McDonald, Christine, Ms, DCAA" <Christine.McDonald@xxxxxxxx>
  • To: <mso@xxxxxxxxxxxxx>
  • Date: Mon, 19 Jul 2004 10:07:07 -0500

I have two tables which I need to use vlookup with.  I have a
possibility of two "error" conditions.  The first is that a name on the
table isn't on the lookup table array, this will result in the #NA.  The
other is that the name exists, but there is nothing in the column index
field to return, which results in a 0 (zero).
This formula works for the second condition, if the result of the lookup
is 0, then I want the cell blank.
=IF(VLOOKUP(c10,table,5,FALSE)=0,"")

This formula works for the first condition, if the result of the lookup
is #NA, then it makes the cell blank.
=IF(ISNA(VLOOKUP(C6,table,5,FALSE)),"",VLOOKUP(C6,table,5,FALSE))

But when I put the two formulas together, Excel tells me there is an
error, but not where, it highlights the whole formula.

=IF(vlookup(c7,table,5,false)=0,"",if((ISNA(VLOOKUP(C7,table,5,FALSE)),"
",VLOOKUP(C7,table,5,FALSE))))

Can anyone see an error in the formula above or advise me what to do?

Thanks,

Christine McDonald
Technical Specialist
WR Region Webmaster
Western Regional Office
Information Technology Division

"To do nothing at all is the most difficult thing in the
world, the most difficult and the most intellectual."
--Oscar Wilde



*************************************************************
You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx or 
MicrosoftOffice@xxxxxxxxxxxxxxxx

To send mail to the group, simply address it to mso@xxxxxxxxxxxxx

To Unsubscribe from this group, send an email to 
mso-request@xxxxxxxxxxxxx with the word "unsubscribe" (without the quotes) in 
the subject line.

Or, visit the group's homepage and use the dropdown menu.  This will also allow 
you to change your email settings to digest or vacation (no mail).
//www.freelists.org/webpage/mso

To be able to use the files section for sharing files with the group, send a 
request to mso-moderators@xxxxxxxxxxxxx and you will be sent an invitation with 
instructions.  Once you are a member of the files group, you can go here to 
upload/download files:
http://www.smartgroups.com/vault/msofiles
*************************************************************

Other related posts: