| Next: Recipient e-mail address change |
| Author |
Message |
OEMJ External

Since: Nov 02, 2009 Posts: 3
|
Posted: Mon Nov 02, 2009 6:02 am Post subject: Formula Issues Archived from groups: microsoft>public>excel>worksheet>functions (more info?) |
|
|
|
| Hi, I am trying to create a formula which counts the number of cells in a
column range which do not equal "n/a". I am at a total loss...any suggestions?
|
|
|
| Back to top |
|
 |
Max External

Since: Mar 17, 2004 Posts: 1751
|
Posted: Mon Nov 02, 2009 6:16 am Post subject: Re: Formula Issues [Login to view extended thread Info.] Archived from groups: per prev. post (more info?) |
|
|
One way
Assume source range to be checked is A2:A10
In B2: =COUNTA(A2:A10)-SUMPRODUCT(--ISNA(A2:A10))
Any good? hit the YES below
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:27,000 Files:200 Subscribers:70
xdemechanik
---
"OEMJ" wrote:
> Hi, I am trying to create a formula which counts the number of cells in a
> column range which do not equal "n/a". I am at a total loss...any suggestions? |
|
| Back to top |
|
 |
Jacob Skaria External

Since: Mar 04, 2009 Posts: 441
|
Posted: Mon Nov 02, 2009 6:37 am Post subject: RE: Formula Issues [Login to view extended thread Info.] Archived from groups: per prev. post (more info?) |
|
|
If you mean count the ** number of cells ** then try
'if you mean the error #N/A try
=COUNTIF(A1:A10,"<>#N/A")
'if you mean text n/a
=COUNTIF(A1:A10,"<>N/A")
If this post helps click Yes
---------------
Jacob Skaria
"OEMJ" wrote:
> Hi, I am trying to create a formula which counts the number of cells in a
> column range which do not equal "n/a". I am at a total loss...any suggestions? |
|
| Back to top |
|
 |
OEMJ External

Since: Nov 02, 2009 Posts: 3
|
Posted: Mon Nov 02, 2009 6:38 am Post subject: Re: Formula Issues [Login to view extended thread Info.] Archived from groups: per prev. post (more info?) |
|
|
Thanks Max but this returns the wrong amount. I am aiming for a figure of 47
but this is obviously going to change when i amend the data. This gave me 67.
I have tried another formula:
=COUNTIF(N4:N107,"<>n/a")
but this includes blank cells which i do not want included and gives me a
sum of 84. Any ideas?
"Max" wrote:
> One way
> Assume source range to be checked is A2:A10
> In B2: =COUNTA(A2:A10)-SUMPRODUCT(--ISNA(A2:A10))
> Any good? hit the YES below
> --
> Max
> Singapore
> http://savefile.com/projects/236895
> Downloads:27,000 Files:200 Subscribers:70
> xdemechanik
> ---
> "OEMJ" wrote:
> > Hi, I am trying to create a formula which counts the number of cells in a
> > column range which do not equal "n/a". I am at a total loss...any suggestions? |
|
| Back to top |
|
 |
OEMJ External

Since: Nov 02, 2009 Posts: 3
|
Posted: Mon Nov 02, 2009 6:41 am Post subject: RE: Formula Issues [Login to view extended thread Info.] Archived from groups: per prev. post (more info?) |
|
|
I think I have discovered the winning formula...
=COUNTA(N4:N107)-COUNTIF(N4:N107,"n/a")
This returns the correct result but does it make sense?
"OEMJ" wrote:
> Hi, I am trying to create a formula which counts the number of cells in a
> column range which do not equal "n/a". I am at a total loss...any suggestions? |
|
| Back to top |
|
 |
Max External

Since: Mar 17, 2004 Posts: 1751
|
Posted: Mon Nov 02, 2009 6:52 am Post subject: Re: Formula Issues [Login to view extended thread Info.] Archived from groups: per prev. post (more info?) |
|
|
The earlier presumes you meant the excel error: #N/A
COUNTA gives you the count of all filled cells in the source range, whether
these contain text, nums or #N/As, ie it excludes blank cells. The sumproduct
counts the number of cells with #N/As. The "counta - sumproduct" earlier
hence returns the desired count (provided you meant: #N/A)
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:27,000 Files:200 Subscribers:70
xdemechanik
---
"OEMJ" wrote:
> Thanks Max but this returns the wrong amount. I am aiming for a figure of 47
> but this is obviously going to change when i amend the data. This gave me 67.
> I have tried another formula:
>
> =COUNTIF(N4:N107,"<>n/a")
>
> but this includes blank cells which i do not want included and gives me a
> sum of 84. Any ideas? |
|
| Back to top |
|
 |
Max External

Since: Mar 17, 2004 Posts: 1751
|
Posted: Mon Nov 02, 2009 7:07 am Post subject: Re: Formula Issues [Login to view extended thread Info.] Archived from groups: per prev. post (more info?) |
|
|
It does, if you actually meant the text: "n/a" instead of the excel error: #N/A
Please refer to my further reply to you in the other branch of this thread
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:27,000 Files:200 Subscribers:70
xdemechanik
---
"OEMJ" wrote:
> I think I have discovered the winning formula...
>
> =COUNTA(N4:N107)-COUNTIF(N4:N107,"n/a")
>
> This returns the correct result but does it make sense? |
|
| Back to top |
|
 |
|