IF OR functions, unless a certain condition is met

Captain Hindsight

New Member
Joined
Oct 9, 2013
Messages
46
Hi all,

What I want to achieve is this:

Display me a set value e.g. 10, every time that EITHER condition A or condition B are met, UNLESS a given cell = 0.

To give some context, this is relating to deliveries of a product. I am forecasting the costs incurred over a period of years where certain conditions have to be met and if there are no deliveries I don't want any values returned.

I have this:

=IF(OR(G$3=$B7,G7+F7=$C$2),$C$2,0)

which is correct, but I need to add to that formula, "unless C5=0, in that case return 0)

My attempts look like this:

=IF(ISNUMBER(D5=0),0,(OR(F$3=$B5,F5+E5=$C$2),$C$2,0)

Thanks
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.

Forum statistics

Threads
1,217,357
Messages
6,136,082
Members
449,990
Latest member
orthodmd

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