Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I'm using some vlookup formulas to verify dates, and I want to get a "0"
response for dates that are not in my lookup list rather than "#n/a". Any suggestions on a formula? I tried =if(vlookup(date,A1:A500,1,0)=1,1,0) However this still giving me a #n/a answer. Thanks |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Handle NA() using ISNA function
=IF(ISNA(lookupformula),0,lookupformula) If this post helps click Yes --------------- Jacob Skaria "Brian" wrote: I'm using some vlookup formulas to verify dates, and I want to get a "0" response for dates that are not in my lookup list rather than "#n/a". Any suggestions on a formula? I tried =if(vlookup(date,A1:A500,1,0)=1,1,0) However this still giving me a #n/a answer. Thanks |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
It's looking like you're returning a 1 if the date is found in that range.
You could use: =--(isnumber(match(yourdate,a1:a500,0))) =match() returns the number of the row in the range that matches (if there's a match). Otherwise, it returns an error. =isnumber() returns true or false and the -- stuff converts those False's to 0's and the True's to 1. Brian wrote: I'm using some vlookup formulas to verify dates, and I want to get a "0" response for dates that are not in my lookup list rather than "#n/a". Any suggestions on a formula? I tried =if(vlookup(date,A1:A500,1,0)=1,1,0) However this still giving me a #n/a answer. Thanks -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Compare Value in Cell 1 to a List, Return Value if Match otherwise Return Null | Excel Discussion (Misc queries) | |||
How to return 1 with #VALUE!? | Excel Discussion (Misc queries) | |||
LOOKUP and return the column heading for IF/THEN return for False | Excel Discussion (Misc queries) | |||
check if reference exists, then return its value or return 0 | Excel Worksheet Functions | |||
I need to return "" instead of 0 | Excel Worksheet Functions |