DJEinConcord
New Member
- Joined
- Mar 12, 2009
- Messages
- 3
Nested IF/OR/VLOOKUP
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com
ffice
ffice" /><o
> </o
>
Hello Forum,
<o
> </o
>
New member, seasoned Excel user with a fairly hard one for the boards.
<o
> </o
>
What I am trying to do is run a check on a returned spreadsheet I sent to users for them to fill out. First check is to see if the users filled in the cell with anything, and second check is if what they filled in is a valid selection from a named range of data (CatApprovLevl).
<o
> </o
>
In English I am trying to see if the value in cell D14 is 0, if it is I want a return value of “Blank” letting me know the user did not enter any data at all.
<o
> </o
>
Then if they did enter something I want to check what they entered was a valid entry by checking that data against a range(CatApprovLevl). If it is in the range, I want a returned value of “OK.”
<o
> </o
>
If they entered a value not in my range (CatApprovLevl) I want a returned value of “Error.”
<o
> </o
>
I am getting the dreaded #N/A instead of the expected “ERROR” value.
<o
> </o
>
Here is the faulty code:
<o
> </o
>
=IF(D14=0,"Blank",IF(OR(D14=VLOOKUP(D14,CatApprovLevl,1,FALSE)),"OK","Error"))
<o
> </o
>
<o
> </o
>
Assumptions:
<o
> </o
>
The range of data is valid and correct entries are judges against it and return “OK” values.
<o
> </o
>
It is the bad entries, not in the list, that give the cursed #N/A .
<o
> </o
>
Thanks for looking!
DJE
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com
Hello Forum,
<o
New member, seasoned Excel user with a fairly hard one for the boards.
<o
What I am trying to do is run a check on a returned spreadsheet I sent to users for them to fill out. First check is to see if the users filled in the cell with anything, and second check is if what they filled in is a valid selection from a named range of data (CatApprovLevl).
<o
In English I am trying to see if the value in cell D14 is 0, if it is I want a return value of “Blank” letting me know the user did not enter any data at all.
<o
Then if they did enter something I want to check what they entered was a valid entry by checking that data against a range(CatApprovLevl). If it is in the range, I want a returned value of “OK.”
<o
If they entered a value not in my range (CatApprovLevl) I want a returned value of “Error.”
<o
I am getting the dreaded #N/A instead of the expected “ERROR” value.
<o
Here is the faulty code:
<o
=IF(D14=0,"Blank",IF(OR(D14=VLOOKUP(D14,CatApprovLevl,1,FALSE)),"OK","Error"))
<o
<o
Assumptions:
<o
The range of data is valid and correct entries are judges against it and return “OK” values.
<o
It is the bad entries, not in the list, that give the cursed #N/A .
<o
Thanks for looking!
DJE