Formula not working

G

Guest

In the following formula, I cannot get the

=IF(ISEVEN($B20),VLOOKUP($B20,Control,14,FALSE)+VLOOKUP($B20,Control,15,FALSE),IF(AND(ISTEXT($B20),VLOOKUP($B20,Codes,4,FALSE)="Y"),"ENTER",IF(AND(ISTEXT($B20),VLOOKUP($B20,Codes,5,FALSE)="Y"),0,"CHECK")))

My aim is to look at a cell (B20) and do as follows:

If it (the cell) has an even value then lookup that value in another table
and add the two numbers.
If it is text and there is a "Y" in the relveant cell in the lookup, then
display ENTER.
If it is text and there is a "Y" in the other relevant cell in the lookup
then display 0
Otherwise show CHECK.

If I any even number, it works. but if i enter text values, it doesn't.
 
D

Domenic

Try...

=IF(ISNUMBER($B20),IF(ISEVEN($B20),SUMPRODUCT(VLOOKUP($B20,Control,{14,15
},0)),"CHECK"),IF(ISTEXT($B20),IF(VLOOKUP($B20,Codes,4,0)="Y","ENTER",IF(
VLOOKUP($B20,Codes,5,FALSE)="Y",0,"CHECK")),"CHECK"))

Hope this helps!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Multiple IF THEN criteria... 2
Lookup Function 2
Indirect/Vlookup/??? 2
Function giving error 3
IF formula 5
VBA error: "object doesn't support this property or method" 2
Sum 9
Am I on the right path 8

Top