Ok, let me elaborate:
column1 values are from 0-120. not in order.
I need the cells in column2 to do the calculation I mentioned in the question.
if the value in a1 between 0-30, then b1 should =1
if the value in a2 between 30-60, then b2 should =2
if the value in a3 between 60-90, then b3 should =3
I tried your answers... did not work.
Main Topics
Browse All Topics





by: byundtPosted on 2004-10-22 at 22:55:10ID: 12387278
Hi omanca, ;90,4},2) ,4)
OSE(INT(A1 /30)+1,1,2 ,3,4))
Here's a couple of ways to do it:
=VLOOKUP(A1,{0,1;30,2;60,3
=CHOOSE(INT(A1/30)+1,1,2,3
If you need to watch out for values below 0 or above 120, then:
=IF(OR(A1<0,A1>120),"",CHO
Cheers!
Brad