Hi,
PLease can you help me identify why this formula is not working?
=IF(OR(ISERROR(VLOOKUP(A302,'[January Stats_02.02.12.xls]Stats'!$A$2:$E$301,5,FALSE)),VLOOKUP(A302,'[January Stats_02.02.12.xls]Stats'!$A$2:$E$301,5,FALSE)=0),"New")
Basically, if the first VLOOKUP returns an error or the second vlookup returns a "0", I want the formula to return "New". At the moment, only the second VLOOKUP is working i.e. if the reference IS found and the value is "0" the formula returns "New" and if the reference IS found and the value is not "0" the formula returns "FALSE". However, if the reference IS NOT found, the formula returns #N/A but I want it to return "New".
Thank you
Maybe this:
=IF(ISERROR(1/VLOOKUP(A302,'[January Stats_02.02.12.xls]Stats'!$A$2:$E$301,5,FALSE)),"New")
"Relax. What is mind? No matter. What is matter? Never mind!"
The problem is that if the reference isn't found then the value #NA will be returned, so for unfound references your formula reads:
=IF(OR(ISERROR(#NA),#NA=0),"New")
Which will return a #NA, because #NA can not be compared to a numeric value.
Try:
=IF(ISERROR(VLOOKUP(A302,'[January Stats_02.02.12.xls]Stats'!$A$2:$E$301,5,FALSE)),"New",IF(VLOOKUP(A302,'[January Stats_02.02.12.xls]Stats'!$A$2:$E$301,5,FALSE)=0,"New")
Perfect, thank you
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks