Sum multiple columns with random blanks

O177812

Board Regular
Joined
Apr 16, 2015
Messages
94
Office Version
  1. 365
  2. 2021
I am sure this is simple but I am having a brain fart.
I have 4 columns of data (numbers) and there are random cells that are blank
My formula (A1+B1)-C1 returns "#value" if any of the columns are blank.

How can I fix this without writing some long if/then statement?

Plant InventoryOctober
IncomingForecastAvailable
97,150#VALUE!
440,000182,700163,878458,822
610,45075,150#VALUE!
6,057,6142,375,1001,476,3576,956,357
136,350#VALUE!
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
My formula (A1+B1)-C1
In none of the cells in your image do you seem to have the formula (A1+B1)-C1.
1728599806667.png

The error occurs when you have blank spaces, which is different from an empty cell. Or because you have texts in the cells.

If so:
varios 10oct2024.xlsm
ABCD
1abc0
24bc4
3a2c2
4ab3-3
542c6
64b31
7a23-1
84233
942-39
Hoja3
Cell Formulas
RangeFormula
D1:D9D1=SUM(A1:B1)-MAX(MIN(C1,0),C1)



🧙‍♂️
 
Upvote 0
Using Dante's example this should also work.
Excel Formula:
=SUM(A1:B1)-N(C1)

The long form would be:
Excel Formula:
=N(A1)+N(B1)-N(C1)

You obviously have If statements that are returning "". A better option might be to change them to returning 0 and if you want to not see zeroes format the cell to not show zero.
 
Upvote 0

Forum statistics

Threads
1,223,885
Messages
6,175,183
Members
452,615
Latest member
bogeys2birdies

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