ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Help with creating a formula using greater than and less than (https://www.excelbanter.com/excel-worksheet-functions/121173-help-creating-formula-using-greater-than-less-than.html)

urrbie

Help with creating a formula using greater than and less than
 
Could someone help me create a formula to solve the following

I have a range of numbers between 300 and 0 in one column and I would like
the next column to give a certain value based on the number. However I would
like to do it in the following manner.

IF T:T is greater than 250 but less than 275 then result is 5 and IF T:T is
greater than 200 but less than 250 then the result is 4 etc...

I can do the following
IF(T:T=275,5)+IF(T:T=274,5).....+IF(T:T=250,5).... +IF(T:T=249,4)+IF(T:T=248,4)etc.....

I would would rather find a way to do it for the range of numbers instead of
one at a time

Bob Phillips

Help with creating a formula using greater than and less than
 
=IF(T2<0,1,IF(T2<100,2,IF(T2<200,3,IF(T2<250,4,5)) ))

or something along those lines

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"urrbie" wrote in message
...
Could someone help me create a formula to solve the following

I have a range of numbers between 300 and 0 in one column and I would like
the next column to give a certain value based on the number. However I

would
like to do it in the following manner.

IF T:T is greater than 250 but less than 275 then result is 5 and IF T:T

is
greater than 200 but less than 250 then the result is 4 etc...

I can do the following

IF(T:T=275,5)+IF(T:T=274,5).....+IF(T:T=250,5).... +IF(T:T=249,4)+IF(T:T=248,
4)etc.....

I would would rather find a way to do it for the range of numbers instead

of
one at a time





All times are GMT +1. The time now is 04:24 PM.

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