Hey!
I'm working on a project in PowePivot were I have a database with different roads and there average length in km.
The range in length goes from about 20 km to 230 km.
What I want is to sort these lengths into 5 groups;
0-50 km , 50-100 km, 100-150 km, 150-200 km and 200-250 km.
I've probably broke the world record for IF functions trying to get this to work. Here is my best try:
=IF([length])<=50;"0-50";IF(50<[length]>=100;"50-100";IF(100<[length]>=150;"100-150";IF(150<[length]>=200;"150-200";"200-250"))))
This function will categorize the roads from 0-50 , but it puts the rest of the roads as 200-250 which is incorrect.
Can anybody help me with my excisting function? or give me a tip on another way or function to sort my problem?
All comments will be appreciated
I'm working on a project in PowePivot were I have a database with different roads and there average length in km.
The range in length goes from about 20 km to 230 km.
What I want is to sort these lengths into 5 groups;
0-50 km , 50-100 km, 100-150 km, 150-200 km and 200-250 km.
I've probably broke the world record for IF functions trying to get this to work. Here is my best try:
=IF([length])<=50;"0-50";IF(50<[length]>=100;"50-100";IF(100<[length]>=150;"100-150";IF(150<[length]>=200;"150-200";"200-250"))))
This function will categorize the roads from 0-50 , but it puts the rest of the roads as 200-250 which is incorrect.
Can anybody help me with my excisting function? or give me a tip on another way or function to sort my problem?
All comments will be appreciated
