Question

I entered the below formula into excel. When I copy the formula down for the rest of my sheet, it gives the "eligible" value to all fields even when the J field has no data to pull from. What am I missing?

=IF(J3<=40,"Eligible",IF(AND(J3<=30, J3>=39.99), "Particially","No"))

Était-ce utile?

La solution

Blank is interpreted as zero, so J<=40 will be true. You probably need to put an IsNumber check in there too.

=IF(AND(J3<=40,ISNUMBER(J3)),"Eligible",....

EDIT: based on your comment, you can simplify this by reversing the logic, and you don't need an and clause.

=IF(J1<30,"no",IF(J1<40,"partial","eligible"))

Autres conseils

I think logic is wrong. Try this (included remark by John Barça):

=IF(ISNUMBER(J3),IF(J3<30,"Eligible",IF(AND(3<=39.99,J3=30),"Partially","no")),"Not a number")

Or please describe what you want to get.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top