Any better solution than awkward nested if?

dayanday

New Member
Joined
Feb 24, 2015
Messages
15
I wrote a nested if to add a description based on a column's value, like this:

=IF(A2<0,"No Activity", IF(A2>180,"No Activity More than 180 days", IF(A2>150,"Within 180",IF(A2>120,"Within 150",IF(A2>90,"Within 120","Within 90")))))

It's a little awkward, I wonder if there's any other neat method? Thanks.
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Mybe:


Book1
ABCDE
1TablecriteriaResult
2<0No Activity>90Within 120
3Within 90
4>90Within 120
5>120Within 150
6>150Within 180
7>180No Activity more than 180 days
Foglio2
Cell Formulas
RangeFormula
E2=VLOOKUP(D2,A2:B7,2,0)
 
Upvote 0

Forum statistics

Threads
1,223,234
Messages
6,170,891
Members
452,366
Latest member
TePunaBloke

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