A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Not to inlcude zero in COUNT



 
 
Thread Tools Display Modes
  #1  
Old November 30th, 2009, 05:39 AM posted to microsoft.public.excel.worksheet.functions
enna49
external usenet poster
 
Posts: 53
Default Not to inlcude zero in COUNT

Hi
Please can you help with this problem.
I need a count in a column with amounts. The problem being I do require to
count the Credits and Debits, but NOT the 0 (ZEROS). I do have 3 criteria
that this applies to. eg
If Cols B, C and D meet the criteria count any activity in N.
Thanking you
Anne
  #2  
Old November 30th, 2009, 05:49 AM posted to microsoft.public.excel.worksheet.functions
Jacob Skaria
external usenet poster
 
Posts: 5,952
Default Not to inlcude zero in COUNT

Try

=SUMPRODUCT((B1:B100=criteria1)*(C1:C100=criteria2 )*
(D1100=criteria3)*(ISNUMBER(N1:N100))*(N1:N100 0))

With criterias in J1, J2, J3 try the below which will count the number of
values in N1:N100 except zeroes and blanks

=SUMPRODUCT((B1:B100=J1)*(C1:C100=J2)*(D1100=J3) *
(ISNUMBER(N1:N100))*(N1:N1000))

If this post helps click Yes
---------------
Jacob Skaria


"enna49" wrote:

Hi
Please can you help with this problem.
I need a count in a column with amounts. The problem being I do require to
count the Credits and Debits, but NOT the 0 (ZEROS). I do have 3 criteria
that this applies to. eg
If Cols B, C and D meet the criteria count any activity in N.
Thanking you
Anne

  #3  
Old November 30th, 2009, 05:57 AM posted to microsoft.public.excel.worksheet.functions
T. Valko
external usenet poster
 
Posts: 15,759
Default Not to inlcude zero in COUNT

Need more specific details.

If Cols B, C and D meet the criteria


What are the criteria?

I do require to count the Credits and Debits,
but NOT the 0 (ZEROS).


So, are credits positive numbers or do you mean the word credit? Are debits
negative numbers or do you mean the word debit? If credits and debits are
numbers and you want to exclude 0s is there any text in that range?

--
Biff
Microsoft Excel MVP


"enna49" wrote in message
...
Hi
Please can you help with this problem.
I need a count in a column with amounts. The problem being I do require
to
count the Credits and Debits, but NOT the 0 (ZEROS). I do have 3
criteria
that this applies to. eg
If Cols B, C and D meet the criteria count any activity in N.
Thanking you
Anne



  #4  
Old November 30th, 2009, 06:00 AM posted to microsoft.public.excel.worksheet.functions
Ms-Exl-Learner
external usenet poster
 
Posts: 522
Default Not to inlcude zero in COUNT

Use the Count or Counta function and use countif function to substract the 0
(Zero) values.

Counta function will Count Text, Number & Spaces.
=COUNTA(B)-COUNTIF(B,0)

Count function will count only the Numeric values.
=COUNT(B)-COUNTIF(B,0)

Remember to Click Yes, if this post helps!

--------------------
(Ms-Exl-Learner)
--------------------


"enna49" wrote:

Hi
Please can you help with this problem.
I need a count in a column with amounts. The problem being I do require to
count the Credits and Debits, but NOT the 0 (ZEROS). I do have 3 criteria
that this applies to. eg
If Cols B, C and D meet the criteria count any activity in N.
Thanking you
Anne

  #5  
Old November 30th, 2009, 06:48 AM posted to microsoft.public.excel.worksheet.functions
enna49
external usenet poster
 
Posts: 53
Default Not to inlcude zero in COUNT

Hi

If Col B = QN
If Col C = IM
If Col D = R
count any Outstandings in Col N. (These are amounts and can be a Debit or
Credit. I do not want them to SUM, just COUNT the no of entries and NOT
include any Zeros.)

"T. Valko" wrote:

Need more specific details.

If Cols B, C and D meet the criteria


What are the criteria?

I do require to count the Credits and Debits,
but NOT the 0 (ZEROS).


So, are credits positive numbers or do you mean the word credit? Are debits
negative numbers or do you mean the word debit? If credits and debits are
numbers and you want to exclude 0s is there any text in that range?

--
Biff
Microsoft Excel MVP


"enna49" wrote in message
...
Hi
Please can you help with this problem.
I need a count in a column with amounts. The problem being I do require
to
count the Credits and Debits, but NOT the 0 (ZEROS). I do have 3
criteria
that this applies to. eg
If Cols B, C and D meet the criteria count any activity in N.
Thanking you
Anne



.

  #6  
Old November 30th, 2009, 07:16 AM posted to microsoft.public.excel.worksheet.functions
T. Valko
external usenet poster
 
Posts: 15,759
Default Not to inlcude zero in COUNT

Try this...

If column N contains numbers only (or possibly empty cells)

=SUMPRODUCT(--(B2:B10="QN"),--(C2:C10="IM"),--(D210="R"),--(N2:N100))

Better to use cells to hold the criteria:

P1 = QN
Q1 = IM
R1 = R

=SUMPRODUCT(--(B2:B10=P1),--(C2:C10=Q1),--(D210=R1),--(N2:N100))

--
Biff
Microsoft Excel MVP


"enna49" wrote in message
...
Hi

If Col B = QN
If Col C = IM
If Col D = R
count any Outstandings in Col N. (These are amounts and can be a Debit
or
Credit. I do not want them to SUM, just COUNT the no of entries and NOT
include any Zeros.)

"T. Valko" wrote:

Need more specific details.

If Cols B, C and D meet the criteria


What are the criteria?

I do require to count the Credits and Debits,
but NOT the 0 (ZEROS).


So, are credits positive numbers or do you mean the word credit? Are
debits
negative numbers or do you mean the word debit? If credits and debits are
numbers and you want to exclude 0s is there any text in that range?

--
Biff
Microsoft Excel MVP


"enna49" wrote in message
...
Hi
Please can you help with this problem.
I need a count in a column with amounts. The problem being I do
require
to
count the Credits and Debits, but NOT the 0 (ZEROS). I do have 3
criteria
that this applies to. eg
If Cols B, C and D meet the criteria count any activity in N.
Thanking you
Anne



.



  #7  
Old November 30th, 2009, 11:00 PM posted to microsoft.public.excel.worksheet.functions
enna49
external usenet poster
 
Posts: 53
Default Not to inlcude zero in COUNT

Hi
Following on from this and thank you for your help, is there a way that this
will select in col D all characters except 1 or 2 (eg I would like to
accept everthing except A)

Thanks

Anne

"T. Valko" wrote:

Try this...

If column N contains numbers only (or possibly empty cells)

=SUMPRODUCT(--(B2:B10="QN"),--(C2:C10="IM"),--(D210="R"),--(N2:N100))

Better to use cells to hold the criteria:

P1 = QN
Q1 = IM
R1 = R

=SUMPRODUCT(--(B2:B10=P1),--(C2:C10=Q1),--(D210=R1),--(N2:N100))

--
Biff
Microsoft Excel MVP


"enna49" wrote in message
...
Hi

If Col B = QN
If Col C = IM
If Col D = R
count any Outstandings in Col N. (These are amounts and can be a Debit
or
Credit. I do not want them to SUM, just COUNT the no of entries and NOT
include any Zeros.)

"T. Valko" wrote:

Need more specific details.

If Cols B, C and D meet the criteria

What are the criteria?

I do require to count the Credits and Debits,
but NOT the 0 (ZEROS).

So, are credits positive numbers or do you mean the word credit? Are
debits
negative numbers or do you mean the word debit? If credits and debits are
numbers and you want to exclude 0s is there any text in that range?

--
Biff
Microsoft Excel MVP


"enna49" wrote in message
...
Hi
Please can you help with this problem.
I need a count in a column with amounts. The problem being I do
require
to
count the Credits and Debits, but NOT the 0 (ZEROS). I do have 3
criteria
that this applies to. eg
If Cols B, C and D meet the criteria count any activity in N.
Thanking you
Anne


.



.

  #8  
Old December 1st, 2009, 03:09 AM posted to microsoft.public.excel.worksheet.functions
T. Valko
external usenet poster
 
Posts: 15,759
Default Not to inlcude zero in COUNT

I would like to accept everthing except A

Try something like this:

=SUMPRODUCT(--(B2:B10="QN"),--(C2:C10="IM"),--(D210"A"),--(N2:N100))

Note that empty cells in column D will meet that condition. If you might
need to account for that then use:

=SUMPRODUCT(--(B2:B10="QN"),--(C2:C10="IM"),--(D210""),--(D210"A"),--(N2:N100))

--
Biff
Microsoft Excel MVP


"enna49" wrote in message
...
Hi
Following on from this and thank you for your help, is there a way that
this
will select in col D all characters except 1 or 2 (eg I would like to
accept everthing except A)

Thanks

Anne

"T. Valko" wrote:

Try this...

If column N contains numbers only (or possibly empty cells)

=SUMPRODUCT(--(B2:B10="QN"),--(C2:C10="IM"),--(D210="R"),--(N2:N100))

Better to use cells to hold the criteria:

P1 = QN
Q1 = IM
R1 = R

=SUMPRODUCT(--(B2:B10=P1),--(C2:C10=Q1),--(D210=R1),--(N2:N100))

--
Biff
Microsoft Excel MVP


"enna49" wrote in message
...
Hi

If Col B = QN
If Col C = IM
If Col D = R
count any Outstandings in Col N. (These are amounts and can be a
Debit
or
Credit. I do not want them to SUM, just COUNT the no of entries and
NOT
include any Zeros.)

"T. Valko" wrote:

Need more specific details.

If Cols B, C and D meet the criteria

What are the criteria?

I do require to count the Credits and Debits,
but NOT the 0 (ZEROS).

So, are credits positive numbers or do you mean the word credit? Are
debits
negative numbers or do you mean the word debit? If credits and debits
are
numbers and you want to exclude 0s is there any text in that range?

--
Biff
Microsoft Excel MVP


"enna49" wrote in message
...
Hi
Please can you help with this problem.
I need a count in a column with amounts. The problem being I do
require
to
count the Credits and Debits, but NOT the 0 (ZEROS). I do have 3
criteria
that this applies to. eg
If Cols B, C and D meet the criteria count any activity in N.
Thanking you
Anne


.



.



  #9  
Old December 1st, 2009, 06:28 AM posted to microsoft.public.excel.worksheet.functions
enna49
external usenet poster
 
Posts: 53
Default Not to inlcude zero in COUNT

You little ripper. Thank you

"T. Valko" wrote:

I would like to accept everthing except A


Try something like this:

=SUMPRODUCT(--(B2:B10="QN"),--(C2:C10="IM"),--(D210"A"),--(N2:N100))

Note that empty cells in column D will meet that condition. If you might
need to account for that then use:

=SUMPRODUCT(--(B2:B10="QN"),--(C2:C10="IM"),--(D210""),--(D210"A"),--(N2:N100))

--
Biff
Microsoft Excel MVP


"enna49" wrote in message
...
Hi
Following on from this and thank you for your help, is there a way that
this
will select in col D all characters except 1 or 2 (eg I would like to
accept everthing except A)

Thanks

Anne

"T. Valko" wrote:

Try this...

If column N contains numbers only (or possibly empty cells)

=SUMPRODUCT(--(B2:B10="QN"),--(C2:C10="IM"),--(D210="R"),--(N2:N100))

Better to use cells to hold the criteria:

P1 = QN
Q1 = IM
R1 = R

=SUMPRODUCT(--(B2:B10=P1),--(C2:C10=Q1),--(D210=R1),--(N2:N100))

--
Biff
Microsoft Excel MVP


"enna49" wrote in message
...
Hi

If Col B = QN
If Col C = IM
If Col D = R
count any Outstandings in Col N. (These are amounts and can be a
Debit
or
Credit. I do not want them to SUM, just COUNT the no of entries and
NOT
include any Zeros.)

"T. Valko" wrote:

Need more specific details.

If Cols B, C and D meet the criteria

What are the criteria?

I do require to count the Credits and Debits,
but NOT the 0 (ZEROS).

So, are credits positive numbers or do you mean the word credit? Are
debits
negative numbers or do you mean the word debit? If credits and debits
are
numbers and you want to exclude 0s is there any text in that range?

--
Biff
Microsoft Excel MVP


"enna49" wrote in message
...
Hi
Please can you help with this problem.
I need a count in a column with amounts. The problem being I do
require
to
count the Credits and Debits, but NOT the 0 (ZEROS). I do have 3
criteria
that this applies to. eg
If Cols B, C and D meet the criteria count any activity in N.
Thanking you
Anne


.



.



.

  #10  
Old December 1st, 2009, 06:35 AM posted to microsoft.public.excel.worksheet.functions
T. Valko
external usenet poster
 
Posts: 15,759
Default Not to inlcude zero in COUNT

You're welcome!

--
Biff
Microsoft Excel MVP


"enna49" wrote in message
...
You little ripper. Thank you

"T. Valko" wrote:

I would like to accept everthing except A


Try something like this:

=SUMPRODUCT(--(B2:B10="QN"),--(C2:C10="IM"),--(D210"A"),--(N2:N100))

Note that empty cells in column D will meet that condition. If you might
need to account for that then use:

=SUMPRODUCT(--(B2:B10="QN"),--(C2:C10="IM"),--(D210""),--(D210"A"),--(N2:N100))

--
Biff
Microsoft Excel MVP


"enna49" wrote in message
...
Hi
Following on from this and thank you for your help, is there a way that
this
will select in col D all characters except 1 or 2 (eg I would like to
accept everthing except A)

Thanks

Anne

"T. Valko" wrote:

Try this...

If column N contains numbers only (or possibly empty cells)

=SUMPRODUCT(--(B2:B10="QN"),--(C2:C10="IM"),--(D210="R"),--(N2:N100))

Better to use cells to hold the criteria:

P1 = QN
Q1 = IM
R1 = R

=SUMPRODUCT(--(B2:B10=P1),--(C2:C10=Q1),--(D210=R1),--(N2:N100))

--
Biff
Microsoft Excel MVP


"enna49" wrote in message
...
Hi

If Col B = QN
If Col C = IM
If Col D = R
count any Outstandings in Col N. (These are amounts and can be a
Debit
or
Credit. I do not want them to SUM, just COUNT the no of entries and
NOT
include any Zeros.)

"T. Valko" wrote:

Need more specific details.

If Cols B, C and D meet the criteria

What are the criteria?

I do require to count the Credits and Debits,
but NOT the 0 (ZEROS).

So, are credits positive numbers or do you mean the word credit?
Are
debits
negative numbers or do you mean the word debit? If credits and
debits
are
numbers and you want to exclude 0s is there any text in that range?

--
Biff
Microsoft Excel MVP


"enna49" wrote in message
...
Hi
Please can you help with this problem.
I need a count in a column with amounts. The problem being I do
require
to
count the Credits and Debits, but NOT the 0 (ZEROS). I do have
3
criteria
that this applies to. eg
If Cols B, C and D meet the criteria count any activity in N.
Thanking you
Anne


.



.



.



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:47 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.