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
 
Try in R10

Excel Formula:
=IFERROR(N(Q23)*IF(M23="",G23,M23)*N(B23)-N(O23),"")
 
Last edited:
Upvote 0

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Hi @Sufiyan97 and @Peter_SSs
I need help in below formula. I want if O28 cell is blank then U28 cell should be blank, how to do this ?
Shares Trading.xlsx
ORSTU
27500.0035850135850
28 48000148000
TEST
Cell Formulas
RangeFormula
O27:O28O27=IF(AND(N27<>"",H27<>""),C27*M27,0)
R27:R28R27=Q27*IF(M27="",G27,M27)*B27-O27
T27:T28T27=IF(E27="","",LEN(TRIM(E27))-LEN(SUBSTITUTE(E27," ",""))+1)
U27:U28U27=IF(ISNUMBER(SEARCH(U$2,$E27)),$R27/$T27,"")
Cells with Conditional Formatting
CellConditionCell FormatStop If True
U3:AC99Cell Value<0textNO
U3:AC99Celldoes not contain a blank value textNO
 
Upvote 0
Try

Excel Formula:
=IF(OR(ISBLANK(O28),O28=""),"",IF(ISNUMBER(SEARCH(U$2,$E28)),$R28/$T28,""))
 
Upvote 0
Try

Excel Formula:
=IF(OR(ISBLANK(O28),O28=""),"",IF(ISNUMBER(SEARCH(U$2,$E28)),$R28/$T28,""))
Thanks working now. Before i apply your formula not working, and after i look and i found that O column has values behinds 0 instead of blank so i edit your formula O28=0 instead of "" and its now working good. Thanks .
 
Upvote 0
Thanks working now. Before i apply your formula not working, and after i look and i found that O column has values behinds 0 instead of blank so i edit your formula O28=0 instead of "" and its now working good. Thanks .
hi @Sufiyan97 as per your formula which is proper working =IF(OR(ISBLANK(O28),O28=""),"",IF(ISNUMBER(SEARCH(U$2,$E28)),$R28/$T28,""))
and today i also tried this and also its working and same result =IF(O28="","",IF(ISNUMBER(SEARCH(U$2,$E28)),$R28/$T28,"")) without this (OR(ISBLANK(O28), is this necessary to include OR & ISBLANK ? any advantages for this or should i exclude this .. Thanks
 
Upvote 0
Actually you can work without OR and ISBLANK

See for ISBLANK and "" results

Book1
ABCD
1ISBLANK""
2 FALSETRUE
3TRUETRUE
4
5
Sheet1
Cell Formulas
RangeFormula
A2A2=""
B2:B3B2=ISBLANK(A2)
C2:C3C2=A2=""



So using just "" is fine, no need for ISBLANK.
 
Upvote 0

Forum statistics

Threads
1,214,899
Messages
6,122,155
Members
449,068
Latest member
shiz11713

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