#1   Report Post  
Posted to microsoft.public.excel.misc
L-O L-O is offline
external usenet poster
 
Posts: 3
Default Count problem

I have one excel-file that contains some values; ABC, CBA, AAA etc.
Then I have another file which contains all of these values and more (its
actually text). If I collect the data in to file no 2 the text that does not
exist in the first file, but exists in the 2nd file, will become error-values
in the cell. That is fine, but how do I tell them apart when I want to count
the ones that return real values, but not the ones with error-messages? The
count-formulas I have found either counts both errors and values or none.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,276
Default Count problem

Hi,
try

=SUM(0+ISNA(A1:G1))

change range to fit your needs

"L-O" wrote:

I have one excel-file that contains some values; ABC, CBA, AAA etc.
Then I have another file which contains all of these values and more (its
actually text). If I collect the data in to file no 2 the text that does not
exist in the first file, but exists in the 2nd file, will become error-values
in the cell. That is fine, but how do I tell them apart when I want to count
the ones that return real values, but not the ones with error-messages? The
count-formulas I have found either counts both errors and values or none.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default Count problem

If I collect the data in to file no 2
What do you mean by collect data?


If you are looking at counting entries other than errors; try the below..
=COUNTA(A1:A25)-SUMPRODUCT(--(ISERROR(A1:A25)))

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


"L-O" wrote:

I have one excel-file that contains some values; ABC, CBA, AAA etc.
Then I have another file which contains all of these values and more (its
actually text). If I collect the data in to file no 2 the text that does not
exist in the first file, but exists in the 2nd file, will become error-values
in the cell. That is fine, but how do I tell them apart when I want to count
the ones that return real values, but not the ones with error-messages? The
count-formulas I have found either counts both errors and values or none.

  #4   Report Post  
Posted to microsoft.public.excel.misc
L-O L-O is offline
external usenet poster
 
Posts: 3
Default Count problem

I mean that I retrieve by using vlookup-formula into the 2nd file. Which is
the file I actually work in. The 1st file is supplied to me.

Thanks, L-O

"Jacob Skaria" wrote:

If I collect the data in to file no 2

What do you mean by collect data?


If you are looking at counting entries other than errors; try the below..
=COUNTA(A1:A25)-SUMPRODUCT(--(ISERROR(A1:A25)))

If this post helps click Yes


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,276
Default Count problem

Hi,
use the formula given before or try

=COUNTIF(A1:G1,NA())

change range to fit your needs

"L-O" wrote:

I mean that I retrieve by using vlookup-formula into the 2nd file. Which is
the file I actually work in. The 1st file is supplied to me.

Thanks, L-O

"Jacob Skaria" wrote:

If I collect the data in to file no 2

What do you mean by collect data?


If you are looking at counting entries other than errors; try the below..
=COUNTA(A1:A25)-SUMPRODUCT(--(ISERROR(A1:A25)))

If this post helps click Yes




  #6   Report Post  
Posted to microsoft.public.excel.misc
L-O L-O is offline
external usenet poster
 
Posts: 3
Default Count problem

Thank you Jacob!!! It actually worked. I thought I wrote in a confuseing
manner, but you understood. Excellent!!!

"L-O" wrote:

I have one excel-file that contains some values; ABC, CBA, AAA etc.
Then I have another file which contains all of these values and more (its
actually text). If I collect the data in to file no 2 the text that does not
exist in the first file, but exists in the 2nd file, will become error-values
in the cell. That is fine, but how do I tell them apart when I want to count
the ones that return real values, but not the ones with error-messages? The
count-formulas I have found either counts both errors and values or none.

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
Count Problem Suleman[_2_] Excel Discussion (Misc queries) 0 June 16th 08 04:20 PM
I tried to get around the problem of the pivot table field settingdefaulting to Count instead of Sum by running a macro of change the settingfrom Count to Sum. However, when I tried to run the Macro, I got error messageof run time error 1004, unable Enda80 Excel Worksheet Functions 1 May 3rd 08 02:35 PM
I tried to get around the problem of the pivot table field settingdefaulting to Count instead of Sum by running a macro of change the settingfrom Count to Sum. However, when I tried to run the Macro, I got error messageof run time error 1004, unable Enda80 Excel Discussion (Misc queries) 1 May 3rd 08 10:52 AM
Count Problem John Calder New Users to Excel 6 April 24th 07 02:10 AM
Count Problem HDV Excel Discussion (Misc queries) 4 April 27th 06 10:40 PM


All times are GMT +1. The time now is 11:25 PM.

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"