#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default formula help

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(A220,
VLOOKUP(C22,UPC!A4:H1302,2,FALSE),"")
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,316
Default formula help

The generic fix is =IF(ISERROR(YourFormula),ErrVal,YourFormula)

Using your example it would look like the following:

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

Hope this helps.
--
Kevin Backmann


"Heather C" wrote:

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(A220,
VLOOKUP(C22,UPC!A4:H1302,2,FALSE),"")

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default formula help

=if(isna(vlookup(...)),"",if(vlookup(...)="","",vl ookup(...))))

or

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

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

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

Heather C wrote:

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(A220,
VLOOKUP(C22,UPC!A4:H1302,2,FALSE),"")


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,572
Default formula help

Try this:

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

RD

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

"Heather C" wrote in message
...
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(A220,
VLOOKUP(C22,UPC!A4:H1302,2,FALSE),"")



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 12:47 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"