I have a Vlookup that is returning the value #N/A. Is there a way to enter a conditional format:
=If(a1="#N/A",1,0)
I tried this equation and it did not work.
Is there anyway to work around this?
I have a Vlookup that is returning the value #N/A. Is there a way to enter a conditional format:
=If(a1="#N/A",1,0)
I tried this equation and it did not work.
Is there anyway to work around this?
Last edited by mcantrell; 08-16-2010 at 03:53 PM.
Hi,
Explore this
http://www.contextures.com/xlfunctions02.html#Trouble
oldchippy
-------------
![]()
![]()
Blessed are those who can give without remembering and take without forgetting
If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.
Click here >>> Top Excel links for beginners to Experts
Forum Rules >>>Please don't forget to read these
There is the ISNA() function you can use to check if a cell contains that error
=IF(ISNA(A1),1,0)
used an IFERROR statement...thx
mcantrell, using IfError may not be such a good idea, because IfError does not distinguish between the different kinds of errors. #N/A means that the lookup value can not be found. #Ref! or #Value! or #Div/0 would also be masked by IfError and you may have a hard time debugging if things go wrong.
cheers
You might also adapt your vlookup as follows
=if(countif(b1:b100,a1),vlookup(a1,b1:d100,col, false),"")
where b1:b100 is the first col of your lookup table, a1 the value to lookup, b1:d100 the lookuptable and col the column nr where to look up.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks