IF Statement

tennisbuck12

New Member
Joined
Aug 21, 2017
Messages
13
Team,

How would i rewrite this formula so the middle part is greater 6 and less then 18. I bolded it.

=IF(ISERROR(B9+1),100,(IF(B9<=6,(6-B9)/6*50+100,IF(B9<=18,IF((18-B9)/12*50+50,B9>18,0)))))
 
Re: IF Statement (Should be easy, just not for me)

I see the issue:

We already accounted for less then 18 in our AND clause, so you don't need another IF for it.
You should just be able to use:
Code:
=IF(B9="",100,IF(B9<6,(6-B9)/6*50+100,IF(AND(B9>=6,B9<=18),[COLOR=#333333](18-B9)/12*50+50[/COLOR],0)))

Thanks Joe4. One last question the first part of the formula IF(B9="",100) is actually for is for an error not null. I apologize for mistating that above. How can I change your formula?
 
Upvote 0

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Re: IF Statement (Should be easy, just not for me)

Try:
Code:
=IF(ISERROR(B9),100,IF(B9<6,(6-B9)/6*50+100,IF(AND(B9>=6,B9<=18),[COLOR=#333333](18-B9)/12*50+50[/COLOR],0)))
 
Upvote 0
Re: IF Statement (Should be easy, just not for me)

You are welcome!:)
 
Upvote 0

Forum statistics

Threads
1,224,827
Messages
6,181,195
Members
453,021
Latest member
pingpong7117

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