#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 70
Default Sum a NULL cell

Hi,

I've got a complete mind block on how to get this right!

I have 5 values in cells a1:a5 - 1, 2, NULL, 4, and 5. When I try and sum
all 5 cells I get #value! Can I sum all five cells (12) even if there is a
NULL in a cell please?

Thanks in advance,

AW
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default Sum a NULL cell

=SUM(IF(ISNUMBER(A1:A5),A1:A5,""))

--
Gary''s Student - gsnu200817
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 70
Default Sum a NULL cell

Thanks for your swift reply Gary - it worked a treat, just what I needed.

Thanks,

AW

"Gary''s Student" wrote:

=SUM(IF(ISNUMBER(A1:A5),A1:A5,""))

--
Gary''s Student - gsnu200817

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,440
Default Sum a NULL cell

Always post your formulas.

You probably don't mean #NULL as sometimes generated by Excel formulas,
because that would generate another #NULL.
You probably also don't mean an empty cell, as that would generate a numeric
answer.
You also don't seem to use the SUM formula; that would also ignore a
non-numeric entry.
So I assume you have a space or the word NULL in a cell and use a formula
like =A1+B1.
Use a real empty cell or use the SUM() function only, not individual
additions by the + operator

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"ArcticWolf" wrote in message
...
Hi,

I've got a complete mind block on how to get this right!

I have 5 values in cells a1:a5 - 1, 2, NULL, 4, and 5. When I try and sum
all 5 cells I get #value! Can I sum all five cells (12) even if there is a
NULL in a cell please?

Thanks in advance,

AW


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 70
Default Sum a NULL cell

You are correct Niek - I was actually using =sum(a1+a5+a9+a15) and I now
realise I may have misled you all. I was trying to make the explanation
easier (for me to write as opposed to you to understand!)

Thanks for taking the time to post.

AW

"Niek Otten" wrote:

Always post your formulas.

You probably don't mean #NULL as sometimes generated by Excel formulas,
because that would generate another #NULL.
You probably also don't mean an empty cell, as that would generate a numeric
answer.
You also don't seem to use the SUM formula; that would also ignore a
non-numeric entry.
So I assume you have a space or the word NULL in a cell and use a formula
like =A1+B1.
Use a real empty cell or use the SUM() function only, not individual
additions by the + operator

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"ArcticWolf" wrote in message
...
Hi,

I've got a complete mind block on how to get this right!

I have 5 values in cells a1:a5 - 1, 2, NULL, 4, and 5. When I try and sum
all 5 cells I get #value! Can I sum all five cells (12) even if there is a
NULL in a cell please?

Thanks in advance,

AW




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default Sum a NULL cell

with gary's

control + shift + enter


"ArcticWolf" wrote:

Hi,

I've got a complete mind block on how to get this right!

I have 5 values in cells a1:a5 - 1, 2, NULL, 4, and 5. When I try and sum
all 5 cells I get #value! Can I sum all five cells (12) even if there is a
NULL in a cell please?

Thanks in advance,

AW

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default Sum a NULL cell

Hi,

If you would like to sum up a range which has an error value, you can use
the following formula

-sumif(range,"0")+sumif(range,"<0")

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"ArcticWolf" wrote in message
...
Hi,

I've got a complete mind block on how to get this right!

I have 5 values in cells a1:a5 - 1, 2, NULL, 4, and 5. When I try and sum
all 5 cells I get #value! Can I sum all five cells (12) even if there is a
NULL in a cell please?

Thanks in advance,

AW


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Failed to save table attributes of (null) into (null). Luca Brasi Excel Discussion (Misc queries) 2 February 4th 09 04:30 PM
If values of Cell are Null........... Saz New Users to Excel 1 April 25th 08 09:03 AM
IF function and null cell value DAllen Excel Worksheet Functions 2 February 19th 07 04:48 PM
cell value based on null/not null in another cell spence Excel Worksheet Functions 1 February 18th 06 11:49 PM
Cell to return null instead of 0 dford Excel Discussion (Misc queries) 7 November 28th 05 06:37 PM


All times are GMT +1. The time now is 12:02 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"