ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Using If function for Great and less than function (https://www.excelbanter.com/excel-worksheet-functions/234308-using-if-function-great-less-than-function.html)

Muskrat24

Using If function for Great and less than function
 
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

Sam Wilson

Using If function for Great and less than function
 

=if(AND(A13000,A1<4000),"X","")

"Muskrat24" wrote:

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


T. Valko

Using If function for Great and less than function
 
Try this entered in C1:

=IF(AND(A13000,A1<4000),"X","")

--
Biff
Microsoft Excel MVP


"Muskrat24" wrote in message
...
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




Jacob Skaria

Using If function for Great and less than function
 
In C1
=IF(AND(A13000,A1<4000),"X","")

If this post helps click Yes
---------------
Jacob Skaria


"Muskrat24" wrote:

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


Muskrat24

Using If function for Great and less than function
 
I copied and pasted that equation in and it didnt work


"Jacob Skaria" wrote:

In C1
=IF(AND(A13000,A1<4000),"X","")

If this post helps click Yes
---------------
Jacob Skaria


"Muskrat24" wrote:

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


Muskrat24

Using If function for Great and less than function
 

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
"Jacob Skaria" wrote:

In C1
=IF(AND(A13000,A1<4000),"X","")

If this post helps click Yes
---------------
Jacob Skaria


"Muskrat24" wrote:

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


Jacob Skaria

Using If function for Great and less than function
 
C1 I want a "X" if A1 is less than 2300
In C1 = IF(AND(A10,A1<2300),"X","")

C2 I want a "X" if A1 is between 2300 and 3000

In C2 = IF(AND(A12300,A1<3000),"X","")

C3 I want a "X" if A1 is between 3000 and 4000

In C3 =IF(AND(A13000,A1<4000),"X","")



If this post helps click Yes
---------------
Jacob Skaria


"Muskrat24" wrote:


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
"Jacob Skaria" wrote:

In C1
=IF(AND(A13000,A1<4000),"X","")

If this post helps click Yes
---------------
Jacob Skaria


"Muskrat24" wrote:

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


T. Valko

Using If function for Great and less than function
 
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?

--
Biff
Microsoft Excel MVP


"Muskrat24" wrote in message
...

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
"Jacob Skaria" wrote:

In C1
=IF(AND(A13000,A1<4000),"X","")

If this post helps click Yes
---------------
Jacob Skaria


"Muskrat24" wrote:

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





All times are GMT +1. The time now is 10:43 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com