Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22
Default Ignoring empty field in sum

Hi,

I have for eg. 3 columns.... group 1(A), group 2(B), total group(C).
for each row column C has formula A1+A2.

At the bottom of column C I have the count function (which tells me how many
I have had returned.)

My problem is because every row for column C has the sum formula. It gives
me a 0.00 entry even when there is nothing in column A or B, it gives me an
inaccurate count.

How Do I make my sum formula give me an empty entry until I put either a
0.00 or any other amount.????
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Ignoring empty field in sum

Use this in C1: =IF(COUNT(A1:B1)=1,SUM(A1:B1),"")
Copy C1 down to C9 (say). This populates col C once you have a number
entered in either col A/B or both. Otherwise, it returns blank: ""

Then you could place in C10: =SUMPRODUCT(--(C1:C9<""))
to count the number of populated lines
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:20,500 Files:365 Subscribers:65
xdemechanik
---
"Redsphynx" wrote:
I have for eg. 3 columns.... group 1(A), group 2(B), total group(C).
for each row column C has formula A1+A2.

At the bottom of column C I have the count function (which tells me how many
I have had returned.)

My problem is because every row for column C has the sum formula. It gives
me a 0.00 entry even when there is nothing in column A or B, it gives me an
inaccurate count.

How Do I make my sum formula give me an empty entry until I put either a
0.00 or any other amount.????

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Ignoring empty field in sum

column C has formula A1+A2.
It gives me a 0.00 entry even when
there is nothing in column A or B


How does column B come into play?

Maybe something like this:

=IF(COUNTA(A1:B1)<2,"",A1+B1)

--
Biff
Microsoft Excel MVP


"Redsphynx" wrote in message
...
Hi,

I have for eg. 3 columns.... group 1(A), group 2(B), total group(C).
for each row column C has formula A1+A2.

At the bottom of column C I have the count function (which tells me how
many
I have had returned.)

My problem is because every row for column C has the sum formula. It
gives
me a 0.00 entry even when there is nothing in column A or B, it gives me
an
inaccurate count.

How Do I make my sum formula give me an empty entry until I put either a
0.00 or any other amount.????



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 345
Default Ignoring empty field in sum

Max
I'm a relatively new boy to Excel and eager to learn. I'm curious why would
you use the formulas you quote rather than something that maybe I would have
used in C1:
=IF(OR(A1=0,B1=0),"",A1+B1)
and in C10:
=COUNT(C1:C9)

Thanks



"Max" wrote:

Use this in C1: =IF(COUNT(A1:B1)=1,SUM(A1:B1),"")
Copy C1 down to C9 (say). This populates col C once you have a number
entered in either col A/B or both. Otherwise, it returns blank: ""

Then you could place in C10: =SUMPRODUCT(--(C1:C9<""))
to count the number of populated lines
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:20,500 Files:365 Subscribers:65
xdemechanik
---
"Redsphynx" wrote:
I have for eg. 3 columns.... group 1(A), group 2(B), total group(C).
for each row column C has formula A1+A2.

At the bottom of column C I have the count function (which tells me how many
I have had returned.)

My problem is because every row for column C has the sum formula. It gives
me a 0.00 entry even when there is nothing in column A or B, it gives me an
inaccurate count.

How Do I make my sum formula give me an empty entry until I put either a
0.00 or any other amount.????

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Ignoring empty field in sum

Think my earlier sumproduct for the COUNT was overkill. My focus got mixed
up, vacillating between how to trap it for the row summation in col C and
what then could be used for the COUNT at the bottom. Your simpler:
=COUNT(C1:C9) would have sufficed.
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:20,500 Files:365 Subscribers:65
xdemechanik
---
"Ron@Buy" wrote in message
...
Max
I'm a relatively new boy to Excel and eager to learn. I'm curious why
would
you use the formulas you quote rather than something that maybe I would
have
used in C1:
=IF(OR(A1=0,B1=0),"",A1+B1)
and in C10: =COUNT(C1:C9)

Thanks





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Ignoring empty field in sum

Is zero not a permitted value in A or B?
--
David Biddulph

"Ron@Buy" wrote in message
...
Max
I'm a relatively new boy to Excel and eager to learn. I'm curious why
would
you use the formulas you quote rather than something that maybe I would
have
used in C1:
=IF(OR(A1=0,B1=0),"",A1+B1)
and in C10:
=COUNT(C1:C9)

Thanks



"Max" wrote:

Use this in C1: =IF(COUNT(A1:B1)=1,SUM(A1:B1),"")
Copy C1 down to C9 (say). This populates col C once you have a number
entered in either col A/B or both. Otherwise, it returns blank: ""

Then you could place in C10: =SUMPRODUCT(--(C1:C9<""))
to count the number of populated lines
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:20,500 Files:365 Subscribers:65
xdemechanik
---
"Redsphynx" wrote:
I have for eg. 3 columns.... group 1(A), group 2(B), total group(C).
for each row column C has formula A1+A2.

At the bottom of column C I have the count function (which tells me how
many
I have had returned.)

My problem is because every row for column C has the sum formula. It
gives
me a 0.00 entry even when there is nothing in column A or B, it gives
me an
inaccurate count.

How Do I make my sum formula give me an empty entry until I put either
a
0.00 or any other amount.????



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
Excel - Geomean - Ignoring Empty Cells NC2A'DAM Excel Worksheet Functions 13 November 26th 08 03:57 PM
Ignoring empty cells Amnon Wilensky Excel Worksheet Functions 6 March 6th 08 04:50 PM
Go to Next Empty Field cassy01 Excel Discussion (Misc queries) 1 February 20th 06 10:18 AM
Ignoring Initial Articles in Field Sort DLFox Excel Discussion (Misc queries) 3 September 18th 05 09:35 PM
Ignoring empty cells beeo Excel Discussion (Misc queries) 3 September 8th 05 09:57 AM


All times are GMT +1. The time now is 07:02 PM.

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"