if, and or type formula

TOYKING23

New Member
Joined
Feb 25, 2016
Messages
13
I need cell V5 to equal both following situations.
V5=P5-R5-U5, this formula I have.
But, I also want V5 to equal 0 if R5=0 or blank and or U5 = 0 or blank
The second part is what I can’t figure out how to do in conjunction with the first formula, any help is appreciated.

Thanks
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Try:
Code:
=IF(OR(R5="",R5=0,U5=0,U5=""),0,P5-R5-U5)
 
Upvote 0
I tried and received an inconsistent formula error
Are you perhaps using a European version of Excel?
If so, it may require that the argument separators be semi-colons instead of commas, i.e.
Code:
=IF(OR(R5="";R5=0;U5=0;U5="");0;P5-R5-U5)
 
Upvote 0
There is nothing special about that formula. IF and OR statement are very basic that should work in any version of Excel. They have been around pretty much since the inception of Excel.

What is your exact error message?
Is there anything special about the cells being referenced?
Are there any merged cells or errors in any of the cells being referenced?
Was the data in this cells enter manually, or copied/downloaded from another program or the internet?
Are you copying/pasting my data, or typing it manually (try copying it to ensure there are no typos)?
 
Last edited:
Upvote 0
I copied and pasted formula, no merged cells, data is entered manually. I tried pasting a screen shot, but apparently I can't do that correctly or attach the work book.
 
Upvote 0
See my last post. It doesn't appear it is any sort of error with the formula. Rather, Excel warning you that the formula does not follow the same pattern as nearby formulas.
 
Upvote 0
That's it, once I removed the previous formula from all cells and pasted the new one it worked. thank you so very much.
 
Upvote 0

Forum statistics

Threads
1,214,911
Messages
6,122,192
Members
449,072
Latest member
DW Draft

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