Nested if 3 conditions

Dan88

Active Member
Joined
Feb 14, 2008
Messages
275
Office Version
  1. 365
Platform
  1. Windows
Hello, can you please help point me in the right direction on this formula.

Basically it has 3 conditions depending on day count.

If <60 it should return “80%”
If >60 but under 180 it should return 75%
And if over 180 it should return 65%


I am trying this but it wont work.:

=IF(A3<=60,"80%",IF(AND(A3>=60,A3<=180,"75%"),IF(A3>=180,"65%")))

Any help or pointers would be greatly appreciated. Thanks!
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Special K and Gerald H, you guys are legendary! thanks so much for the quick response. this is exactly what i needed!!
Many many thanks
 
Upvote 0
And just for fun, here's another approach.

Again, format the result as percentage.

=0.65+(A3< =180)*0.1+(A3< =60)*0.05
 
Upvote 0
The other two replies are just fine and present alternative formulas. However, I thought I'd just point out a correction to your original formula so you could troubleshoot where it went wrong.

Your formula:
=IF(A3<=60,"80%",IF(AND(A3>=60,A3<=180,"75%"),IF(A3>=180,"65%")))
Corrected:
=IF(A3<=60,"80%",IF(AND(A3>=60,A3<=180),"75%",IF(A3>=180,"65%")))

The red parenthesis was in the wrong place. It needs to go after the 180 in order to close out the AND formula.
 
Upvote 0
Thank you ALL for your valuable inputs.

I would like to expand on this Nestedif statement if at all possible.


Can the statement look up H3 and if “RL” AND if AC3 is >50%, then apply LOOKUP(AE3,{0,60,180},{0.8,0.75,0.65}).

Thanks!!!
 
Upvote 0
Thank you ALL for your valuable inputs.

I would like to expand on this Nestedif statement if at all possible.


Can the statement look up H3 and if “RL” AND if AC3 is >50%, then apply LOOKUP(AE3,{0,60,180},{0.8,0.75,0.65}).
 
Upvote 0
How about
=IF(AND(H3="RL",AC3>50%),LOOKUP(AE3,{0,60,180},{0.8,0.75,0.65}),"else whatever")
 
Upvote 0
Fluff, my bad i screwed up on the ask. it should really be like this:

Can the statement look up H3 and if “RL” AND if AC3 is >50%, then apply LOOKUP(AE3,{0,60,180},{0.8,0.75,0.65} BUT if AC3 < 50% then it should be this LOOKUP(AE3,{0,60,180},{0.55,0.65,0.75}


Thank yuou!!
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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