Null String & enpty Cell Problem !!!

MarkReddell

Board Regular
Joined
Sep 1, 2011
Messages
210
Office Version
  1. 365
Platform
  1. Windows
  2. Mobile
Hello Everyone! I'm having problems with using sum, sumif or sumproduct to add cells that aren't in a range (ie A1:a10), instead like this: a1, c3, d5, etc. This is because I think, the Null string & empty cells. Does anyone have any ideas??? Thanx 4 any help!!! God Bless!!!! :confused::confused::confused:
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Hello Everyone! I'm having problems with using sum, sumif or sumproduct to add cells that aren't in a range (ie A1:a10), instead like this: a1, c3, d5, etc. This is because I think, the Null string & empty cells. Does anyone have any ideas??? Thanx 4 any help!!! God Bless!!!! :confused::confused::confused:
You can use SUM like this:

=SUM(A1,C3,D5)

A SUMIF or SUMPRODUCT with random cells would be a problem, though. Can you be more specific as to what you want to do?
 
Upvote 0
Thanx 4 your your reply! I'm having issues with that formula when one or more of the cells is either a null text string, or an enpty cell. I have been using something like this: =If(count(a1)=1,a1,0)+If(count(C3)=1,C3,0)+If(count(D5)=1,D5,0) so that when the cell doesn't have a numeric value; the formula will still give me the rite answer. Is there a better way to write a formula for this issue?
 
Upvote 0
Thanx 4 your your reply! I'm having issues with that formula when one or more of the cells is either a null text string, or an enpty cell. I have been using something like this: =If(count(a1)=1,a1,0)+If(count(C3)=1,C3,0)+If(count(D5)=1,D5,0) so that when the cell doesn't have a numeric value; the formula will still give me the rite answer. Is there a better way to write a formula for this issue?
What issues are you having?

=SUM(A1,C3,D5)

Will do the same thing as: (as long as none of the cells contain errors)

=IF(COUNT(A1)=1,A1,0)+IF(COUNT(C3)=1,C3,0)+IF(COUNT(D5)=1,D5,0)
 
Upvote 0

Forum statistics

Threads
1,216,095
Messages
6,128,794
Members
449,468
Latest member
AGreen17

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