[mso] Re: Excel Vlookup, if, isna formula

  • From: "McDonald, Christine, Ms, DCAA" <Christine.McDonald@xxxxxxxx>
  • To: <mso@xxxxxxxxxxxxx>
  • Date: Tue, 20 Jul 2004 12:12:11 -0500

Thanks for the help.  One thing I did discover after modifying the
formula, is that the order had to be change.
=IF(ISNA(VLOOKUP($C2,table,5,FALSE)),"",IF(VLOOKUP($C2,table,5,FALSE)=0,""
,(VLOOKUP($C2,table,5,FALSE))))

In the original formula, it was looking for the zero first, the problem
was, that the second part of the if statement didn't work.  I found that
what I should have done was have it check first to see if the name was
actually in the table_array, and if not, make the cell blank, else, now
check and see if there's no entry in the column to return.

Thought I'd share that for future reference.

Christine McDonald
Technical Specialist
WR Webmaster
Western Regional Office
Information Technology Division (RSA-4)


-----Original Message-----
From: Ray Blake [mailto:ray@xxxxxxxxx]
Sent: Monday, July 19, 2004 10:00 AM
To: mso@xxxxxxxxxxxxx
Subject: [mso] Re: Excel Vlookup, if, isna formula


Try this version:

=IF(VLOOKUP(c10,table,5,FALSE)=0,"",IF(ISNA(VLOOKUP(C6,table,5,FALSE)),"
",VLOOKUP(C6,table,5,FALSE)))

Ray

------------------------------------
GR Business Process Solutions
Ray Blake
Head of Software Design
ray@xxxxxxxxx
Braedon
Newell Road
Hemel Hempstead
Herts HP3 9PD
tel: 01442 396518
fax: 01442 389353
www.grbps.com
------------------------------------


-----Original Message-----
From: mso-bounce@xxxxxxxxxxxxx [mailto:mso-bounce@xxxxxxxxxxxxx] On Behalf
Of McDonald, Christine, Ms, DCAA
Sent: 19 July 2004 16:07
To: mso@xxxxxxxxxxxxx
Subject: [mso] Excel Vlookup, if, isna formula


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



-- Binary/unsupported file stripped by Ecartis --
-- Type: application/x-pkcs7-signature
-- File: smime.p7s


*************************************************************
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: