Multiple IF AND OR statements

kelstar

New Member
Joined
Feb 27, 2011
Messages
11
This is my first ever attempt at a forum, will do my best to make sense!

I am trying to do the following in one formula:
1. If cell O6 has "-" or cell BD6 is blank, then insert "-"
2. If Y6>=25%, then take MIN(B6:F6)
3. If O6>=25% then take E6 otherwise do BD6/(1-0.25)

This is the formula I have written, but it is returning #VALUE! and I can't figure out what I am doing incorrectly.
NB: $DN$101 = 25% and $DP$101 = 0.25

=IF(AND(O6="-",OR(BD6="","-")),IF(Y6>=$DN$101,MIN(B6:F6)),OR(O6>=$DN$101,E6,(BD6/(1-$DP$101))))

Thank you to anyone who can help me! :)
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Welcome to the board,

try this

Code:
=IF(OR(O6="-",BD6=""),"-",IF(Y6>=$DN$101,MIN(B6:F6),IF(O6>=$DN$101,E6,BD6/(1-$DP$101))))
 
Upvote 0
Hi Kelstar and welcome to the Board.

a couple of questions

What if
2. If Y6>=25%, then take MIN(B6:F6) .....is less than ??
3. If O6>=25% then take E6 otherwise do BD6/(1-0.25)....is less than ??

Try, untested
Code:
=IF(OR(O6="-",BD6="-"),"-",IF(OR(Y6>=$DN$101,O6>=$DN$101),MIN(B6:F6),BD6/(1-$DP$101)))
 
Upvote 0

Forum statistics

Threads
1,224,600
Messages
6,179,834
Members
452,947
Latest member
Gerry_F

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