If+or+and

firstWeMeet

Board Regular
Joined
Feb 8, 2011
Messages
200
G11 = 3
R11 = 4

S11=IF(OR(G11="",R11>G11),"",G11-R11) then its still blank, what I wanted is to be negative - 1 can anyone correct my formula in S11?
Thanks
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Make it to be:
S11=IF(OR(G11="",R11>G11),G11-R11,"")

the first option is what you want to appear if the condition is true, the second for when it's false.
 
Upvote 0
please give the full setup of your sheet, with formula's, and what you want to achieve...
 
Upvote 0
G11 = IF(Total_Qty1=0,"",Total_Qty1)
R11 = IF(SUM(H11:Q11)=0,"",SUM(H11:Q11))
S11 = IF(OR(G11="",R11>G11),G11-R11,"") as what you revised.

then at the row 12 G11 = Total_Qty2 is 0 so that the cell G11=""
same with the R11 = "" since the H12:Q12 = 0
then I got #VALUE! in S12
 
Upvote 0
The only way you'll get -1 with you current data is
Code:
=IF(OR(G11="",R11 < G11),"",G11-R11)
 
Upvote 0
Glad you got it sorted.....nice one Aladin....a bit Psychic...LOL !!
 
Upvote 0

Forum statistics

Threads
1,224,517
Messages
6,179,233
Members
452,898
Latest member
Capolavoro009

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