[mso] Re: Trap #N/A in Excel

Nest the whole thing in an ISNA function...I teach how to do that with a
vlookup in this article, but you will get the idea if you read this:

http://pubs.logicalexpressions.com/Pub0009/LPMArticle.asp?ID=446

Scroll down to the bottom of the article where I talk about nesting vlookups



Linda
Linda's Computer Stop
http://personal-computer-tutor.com
ABC Free Ezine ~ Free Ebooks and Tutorials
*all outgoing mail scanned by Norton AV.  If you got a bug that looks like
it came from me, it did NOT!

-----Original Message-----
From: mso-bounce@xxxxxxxxxxxxx [mailto:mso-bounce@xxxxxxxxxxxxx] On Behalf
Of R Shapp
Sent: Thursday, June 23, 2005 8:03 PM
To: mso@xxxxxxxxxxxxx
Subject: [mso] Trap #N/A in Excel

Hi Group,

How to display a blank cell when the result of an IF function would
ordinarily
yield "#N/A" in Excel 2002?

Assume the formula below is in cell B2.  The formula scans a vector for the
presence of the numeral "1".  If "1" is not present, B2 becomes equal to 1.
If "1" is present, B2 displays "#N/A".

My current work-around is to use conditional formatting, and make the font
color the same as the cell's background.  The cell appears blank, but it
still
contains the "N/A".

How can I make cell B2 show a "1" when "1" is absent from the vector, and be
really blank when "1" is present in the vector?

Thank you for the help.

Ray Shapp

=IF(ERROR.TYPE(HLOOKUP(1,$B6:$J6,1,FALSE)=7),1,"")



*************************************************************
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).
http://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: