Using If function for Great and less than function

M

Muskrat24

I want to use a IF fuction for greater than or less than
IF A1 is greater than 3000, but less than 4000, than I want C1 to be a "X"

how do i do this

Thanks
 
M

Muskrat24

This might give you a better picture of what I want

A1 = 3300

C1 I want a "X" if A1 is less than 2300
C2 I want a "X" if A1 is between 2300 and 3000
C3 I want a "X" if A1 is between 3000 and 4000

since A1 is 3300 , A "X" will show up in C2
 
J

Jacob Skaria

C1 I want a "X" if A1 is less than 2300
In C1 = IF(AND(A1>0,A1<2300),"X","")
C2 I want a "X" if A1 is between 2300 and 3000
In C2 = IF(AND(A1>2300,A1<3000),"X","")
C3 I want a "X" if A1 is between 3000 and 4000
In C3 =IF(AND(A1>3000,A1<4000),"X","")



If this post helps click Yes
 
T

T. Valko

since A1 is 3300 , A "X" will show up in C2

C2? Don't you mean C3?

Also, you're overlooking the interval overlaps.
C1 I want a "X" if A1 is less than 2300
C2 I want a "X" if A1 is between 2300 and 3000
C3 I want a "X" if A1 is between 3000 and 4000

In the above, you're *excluding* 2300, 3000 and 4000. If A1 = 3000 then what
result do you want?

3000 is not less than 2300
3000 does not fall *between* 2300 and 3000
3000 does not fall *between* 3000 and 4000

Typically, when people say "between" what they really mean is >= and <=.

Is that what you meant?
 

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

Top