#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Formula Issues

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?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Formula Issues

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?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Formula Issues

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?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Formula Issues

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?

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Formula Issues

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?



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Formula Issues

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?


  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Formula Issues

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?


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
date formula issues?!?! Mike Excel Discussion (Misc queries) 1 August 27th 09 03:13 PM
Formula issues Rakkamac Excel Worksheet Functions 2 November 3rd 08 10:21 AM
I'm having formula issues Leslie Excel Discussion (Misc queries) 3 September 15th 08 08:44 PM
formula issues adella40 Excel Worksheet Functions 2 May 5th 07 12:19 AM
Issues with formula not duplicating SasR Excel Worksheet Functions 2 May 25th 06 04:05 PM


All times are GMT +1. The time now is 07:21 AM.

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

About Us

"It's about Microsoft Excel"