Need to evaluate cells as "good" or "bad"

Tenoreprimo

New member
Joined
Mar 14, 2013
Messages
2
Reaction score
0
Points
0
I'm not a power user, and I have what seems to be a simple problem. I have 2 numerical cells, A1 and A2. I need to enter either "Good" or "Not Good" in cell A3. If A1 is more than 4, AND A2 is less than 4, the cells are "Good." Otherwise they are "Not Good."

I tried the formula: =IF(AND(A1>4,A2<4),"Good","Not Good")
It does not seem to evaluate properly. What am I doing wrong?
 

NBVC

Super Moderator
Staff member
Joined
May 20, 2011
Messages
1,518
Reaction score
0
Points
0
Location
Mississauga, Canada
Excel Version(s)
Excel 2016
The formula looks fine.

Probably you have A1 and/or A2 formatted as Text.

Select A1 and A2 and check the Format, make sure they are set to General or Number.

Then re-enter the values in A1 and A2.. does it fix the problem?

Also is the number 4 to be included? If so the comparators should be A1>=4 and A2<=4 respectively.
 

Tenoreprimo

New member
Joined
Mar 14, 2013
Messages
2
Reaction score
0
Points
0
You got me on the right track, and now the problem is solved. The cells A1 and A2 had been formatted as "text," and I had reformatted them as both "number" and "general," with no change in the resolution formula. However, when I deleted the entry in the cells and reentered the number, the formula resolved correctly. It seems strange, but at least it works and I had the correct formula. Thanks for your help. Now I wonder if there is some way in this forum to mark this thread as "answered."
 
Top