View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Alex[_13_] Alex[_13_] is offline
external usenet poster
 
Posts: 30
Default A range of values transformed

I want to make a rule that if a cell has a range of
values, it is coded a certain way. How would I do this
this?

For example,
I have a row of values
5, 79, 21, 0

With the key of
0 = 1
1-10 = 2
11-25 = 3
26-75 = 4
75 = 5


Leading to:
2,5,3,1

How would I write this with a simple excel program?
I was thinking of combining if statements, but the formula
gets too large.

PLEASE HELP!
Thank you!
Alex