Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / General Excel Questions / April 2008

Tip: Looking for answers? Try searching our database.

formula help

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Heather C - 25 Apr 2008 19:17 GMT
I would like the cell to say something different then #N/A when it cannot
find the exact value.  This is my current formula =IF(A22>0,
VLOOKUP(C22,UPC!A4:H1302,2,FALSE),"")
Kevin B - 25 Apr 2008 19:23 GMT
The generic fix is =IF(ISERROR(YourFormula),ErrVal,YourFormula)

Using your example it would look like the following:

=IF(ISERROR(IF(A22>0, VLOOKUP(C22,UPC!A4:H1302,2,FALSE),"")),0,IF(A22>0,
VLOOKUP(C22,UPC!A4:H1302,2,FALSE),""))

Hope this helps.
Signature

Kevin Backmann

> I would like the cell to say something different then #N/A when it cannot
> find the exact value.  This is my current formula =IF(A22>0,
> VLOOKUP(C22,UPC!A4:H1302,2,FALSE),"")
Dave Peterson - 25 Apr 2008 19:26 GMT
=if(isna(vlookup(...)),"",if(vlookup(...)="","",vlookup(...))))

or

=if(iserror(1/len(vlookup(...)),"",vlookup(...))

And xl2007 has added an =iferror(), too.

You'll have to add the =if(a22>0, in front of the one you need!

> I would like the cell to say something different then #N/A when it cannot
> find the exact value.  This is my current formula =IF(A22>0,
> VLOOKUP(C22,UPC!A4:H1302,2,FALSE),"")

Signature

Dave Peterson

RagDyer - 25 Apr 2008 19:31 GMT
Try this:

=IF(OR(A22<=0,ISNA(MATCH(C22,UPC!A4:A1302,0))),"",VLOOKUP(C22,UPC!A4:H1302,2,0))
Signature

HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

>I would like the cell to say something different then #N/A when it cannot
> find the exact value.  This is my current formula =IF(A22>0,
> VLOOKUP(C22,UPC!A4:H1302,2,FALSE),"")
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.