How to make cell Result as Blank, if one of sum of cells have no value

pankajgrover

Board Regular
Joined
Oct 27, 2022
Messages
99
Office Version
  1. 365
Platform
  1. Windows
How to make cell Result as Blank, if one of sum of cells have no value. In below example i want D3 and D4 should be result as blank until a3 and b4 have some values. Thanks
Shares Trading.xlsx
ABCD
1ItemABTotal
2pen250035001000
3pencil50005000
4rubber4000-4000
Sheet1
Cell Formulas
RangeFormula
D2:D4D2=C2-B2
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
=IF(ISNUMBER(B3),C3-B3, "")
Thanks for reply, i want B3 or C3 both checking if have values, how to do ? =IF(ISNUMBER(B3 and C3) like that. In B3 have no values , and C4 hv no values, so i want it will check both column but how to do ?
 
Upvote 0
You mean B3 and B4 have values?

=IF(ISNUMBER(B3),C3-B3, "")
Shares Trading.xlsx
ABCD
1ItemTotal
2pen250035001000
3pencil5000 
4rubber4000-4000
Sheet4
Cell Formulas
RangeFormula
D2:D4D2=IF(ISNUMBER(B2),C2-B2, "")


After apply your formula, here C4 is blank now i want , D4 result should also be Blank.
 
Upvote 0
Cell D2 use following formula to check values in both cells B2 and C2
=SUMPRODUCT(--ISNUMBER(B2:C2))>1
 
Upvote 0
=IF(OR(B2="",C2=""),"",C2-B2)
Book2
ABCD
1ItemTotal
2pen250035001000
3pencil5000 
4rubber4000 
Sheet1
Cell Formulas
RangeFormula
D2:D4D2=IF(OR(B2="",C2=""),"",C2-B2)
 
Upvote 0
Solution

Forum statistics

Threads
1,214,998
Messages
6,122,643
Members
449,093
Latest member
Ahmad123098

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