View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips Bob Phillips is offline
external usenet poster
 
Posts: 10,593
Default 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