Too Many Arguments - If Number is Between a Range, Then it is This

blahmin027

New Member
Joined
Jun 9, 2014
Messages
32
I have a column of numbers from 0 to 100, and now I need to group them according to a range:

0-24 = Poor
25-49 = Low
50-74 = Medium
75-100 = High

I tried doing this formula but Excel said there is too many arguments

=IF(D2>=1,D2<=24,"Poor",IF(D2>=25,D2<=49,"Low",IF(D2>=50,D2<=74,"Medium",IF(D2>=75,D2<=100,"High")))

Can anyone help me what formula I should do?

Thanks
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
60,136
Office Version
  1. 365
Platform
  1. Windows
How about
=LOOKUP(D2,{0,25,50,75},{"Poor","Low","Medium","High"})
 

blahmin027

New Member
Joined
Jun 9, 2014
Messages
32
Thank you so much! It worked and much more elegant than what I did that also worked

=IF(D2<=24,"Poor",IF(D2<=49,"Low",IF(D2<=74,"Medium",IF(D2<=100,"High"))))
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
60,136
Office Version
  1. 365
Platform
  1. Windows
You're welcome & thanks for the feedback.
 

Forum statistics

Threads
1,136,802
Messages
5,677,814
Members
419,722
Latest member
Rizzol

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top