Using an IF Formula to bring back mulitple categories

edmundmckay

New Member
Joined
Aug 24, 2015
Messages
31
Hello

I believe I am on Excel 2007-2010 version.

I am looking for guidance on creating a formula which can produce a result of 3 categories.

I have a list of querys which all have the amount of days aged against them from receipt. In my spreadsheet this is Comlumn L. I would like to create a new column, Column M which can index the numbers from Column L into three categories: "Less than 30 Days", "30-90 Days", "90 Days and above".

Currently I have tried =IF(L2>=91,"90 Days above",IF(L2<=30,"Less than 30 Days")) which presents two categories. Where I am struggling with is the inbetween two numbers part, the 30-90 days.

Would you consider posting this on a forum in pursuit of resolving my shortfalls?

best regards

Edmund
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
I could be misunderstanding your request but does this do what you wanted?

Code:
=IF(L2>=91,"90 Days above",IF(L2<=30,"Less than 30 Days","30-90 Days"))
 
Upvote 0
Here's another option.

=LOOKUP(L2,{0,30,91},{"Less than 30 Days","30 to 90 Days","90 Days above"})
 
Upvote 0
Hi Trevor

Thank you this is precisely what I was hoping for. I didnt think to use look up for the solution. Could I ask what the brackets {} are which you have placed around 0,30,90 are referred to in excel language?

best regards

Edmund
 
Upvote 0
Hi Jw4096


Thank you this works with the excercise at hand.

I appreciate the timely reply and help

best regards

Edmund
 
Upvote 0

Forum statistics

Threads
1,223,162
Messages
6,170,432
Members
452,326
Latest member
johnshaji

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
Back
Top