Value within a range

G

Guest

I want a lookup where I type in a number in a a cell ie 50 I get an answer of
4, but when I enter 150 where the answer should be 7 ie(6+1).

Range Number
1 to 15 1
16-30 2
31-45 3
46-60 4
61-75 5
75-100 6
above 100 6+ for every 50

Any ideas

Saintsman
 
B

Bob Phillips

=IF(A1<=75,INT((A1-1)/15)+1,IF(A1<=100,6,6+INT((A1-101)/50)+1))

--
HTH

Bob Phillips

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

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