sum 0 cell value to return a blank cell

mwvirk

Board Regular
Joined
Mar 2, 2011
Messages
247
Office Version
  1. 2016
Platform
  1. Windows
hello
I have 3 scenarios
1- if cell A1 contains a number and cell B1 is blank then =A1+B1 should not show anything in C1. not even the value of cell A1 or any other number and not even 0
2- if cell A1 contains a number and cell B1 is having the value of 0 then =A1+B1 should be the total in C1 (that will be the value of A1)
3- if cell A1 contains a number and cell B1 is also has value (with decimal or w/o decimal) then =A1+B1 total will come in C1 (that will be the value of A1+B1)

Actually, I am checking if company (stock market) is giving me right shares with or without premium
Value is cell A1 is always the actual face value but if there is premium then face value + premium will be calculated otherwise keep the sheet clean

Hopefully, my question is clean and I will surely get a solution. Please check screenshot. I don't want unnecesary numbers other than 2 valid values.

Thank you

1645644437972.png
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Based on your description, I think you just want a formula like this:
Excel Formula:
=IF(AND(A1<>"",B1<>""),A1+B1,"")
(though your description really does not match your picture).
 
Upvote 0
Solution
Hi,

May be, another way:

Book3.xlsx
ABC
1100 
2 
310010110
41000100
Sheet1021
Cell Formulas
RangeFormula
C1:C4C1=IF(B1="","",A1+B1)
 
Upvote 0
Based on your description, I think you just want a formula like this:
Excel Formula:
=IF(AND(A1<>"",B1<>""),A1+B1,"")
(though your description really does not match your picture).
thanks a lot. this formula worked exactly what i was looking for. sorry for not sharing the sheet properly. here is the full rows.

1645650545117.png
 
Upvote 0
You are welcome.
Glad we were able to help!
 
Upvote 0

Forum statistics

Threads
1,214,861
Messages
6,121,973
Members
449,059
Latest member
oculus

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