Sum

Nigel Martin

Board Regular
Joined
Feb 17, 2002
Messages
133
Hi Guys, I want to sum a range across a number of columns some of which contain numbers and some contain blanks (e.g. =IF(a1="","",B1) which is all well and good until I come to sum across the columns - I get an #VALUE! error. Can you help. Regards Nigel.
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".

RoryA

MrExcel MVP, Moderator
Joined
May 2, 2008
Messages
40,352
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
  2. MacOS
If you use the SUM function rather than +, it will ignore text. For example, if this:
=A1+C1
causes an error due to A1 or C1 having text in them, this won't cause an error:
=SUM(A1,C1)
Both will return an error if either of the source cells actually contains an error though.
HTH
 
Upvote 0

Forum statistics

Threads
1,190,656
Messages
5,982,133
Members
439,757
Latest member
85Sarah2005

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
Top