Problem with addition of columns

sharshra

Active Member
Joined
Mar 20, 2013
Messages
404
Office Version
  1. 365
I have to add 2 columns. It is simple to add these 2 columns using +. But in the actual scenario, blank cell is shown as blank if there was an error using IFERROR. So, I can´t add columns using +.

So, I´m using IFNUMBER to add only if cell contains numbers. It works well when applied on each cell (refer column D). But, when I apply the same on a range, when both cells contains numbers, it is counting only the first cell & not returning the sum (refer column E). Refer the cells highlighted in yellow. Not sure what is the problem. Can the experts help please?
excel problems.xlsx
BCDE
56111
5748124
58777
59999
601121311
61767676
62989898
633433734
merge tables
Cell Formulas
RangeFormula
E56:E63E56=IF(AND(ISNUMBER(B56:B63),ISNUMBER(C56:C63)),B56:B63+C56:C63,IF(ISNUMBER(B56:B63),B56:B63,C56:C63))
D56:D63D56=IF(AND(ISNUMBER(B56),ISNUMBER(C56)),B56+C56,IF(ISNUMBER(B56),B56,C56))
Dynamic array formulas.
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
I have resolved it as shown in column D. But would like to know what was the problem before. Can the experts please advise?
excel problems.xlsx
BCDE
56111
5748124
58777
59999
601121311
61767676
62989898
633433734
merge tables
Cell Formulas
RangeFormula
D56:D63D56=IF(B56:B63="",0,B56:B63)+IF(C56:C63="",0,C56:C63)
E56:E63E56=IF(AND(ISNUMBER(B56:B63),ISNUMBER(C56:C63)),B56:B63+C56:C63,IF(ISNUMBER(B56:B63),B56:B63,C56:C63))
Dynamic array formulas.
 
Upvote 0
I have resolved it as shown in column D.

Another way

24 10 27.xlsm
BCD
5611
574812
5877
5999
6011213
617676
629898
6334337
Sum rows
Cell Formulas
RangeFormula
D56:D63D56=BYROW(B56:C63,LAMBDA(r,SUM(r)))
Dynamic array formulas.
 
Upvote 1
Solution
You're welcome. Thanks for the follow-up. :)
The gist of it is that SUM automatically ignores text values - so no need for individual tests.
 
Upvote 0
But would like to know what was the problem before.
I know you now have a solution but to answer your question.
AND, OR etc don't evaluate the whole range. This is why in other formulas such as the Filter function you will see multiplication "*" used for AND and plus "+" for OR.
In your initial formula it would become this:
Rich (BB code):
=IF( (ISNUMBER(B56:B63) * ISNUMBER(C56:C63) ), B56:B63+C56:C63, IF(ISNUMBER(B56:B63), B56:B63, C56:C63))
 
Upvote 0

Forum statistics

Threads
1,223,881
Messages
6,175,161
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