Sum with Null values

smeco

Board Regular
Joined
Jan 23, 2004
Messages
51
I have a report which gives me various sums, some of which will be null if there is nothing to add up

I then tried to create a grand total, by adding up the various sums - the problem is that if one of those sums is null, then I get null for the grand total, too

how do I solve this?

thanks in advance
smeco
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
ust the isNull function. isNull([Myfield]) + isNull[MyOtherField])

HTH

Peter
 
Upvote 0
I tried isNull but it seems to give me just 1 and -1 depending on whether it's null or not - what I need is the sum of all non-null values really
 
Upvote 0
Sorry! my brain seems to have siezed up :oops:
Should have been the NZ([myField],0) function

Peter
 
Upvote 0

Forum statistics

Threads
1,221,783
Messages
6,161,938
Members
451,730
Latest member
BudgetGirl

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