#1   Report Post  
Alex C
 
Posts: n/a
Default count

I need to know how to count the number of times a specific number appears
within a range. ie. cell A:1 thru A:1000 - how many times was the number 3
entered. Disregard all other numbers that may of been entered.
  #4   Report Post  
Bob Phillips
 
Posts: n/a
Default

If a cell could have more than 1 occurrence of 3, and you want to count all,
then use

=SUMPRODUCT(--(LEN(A1:A1000)-LEN(SUBSTITUTE(A1:A1000,"3",""))))

--
HTH

Bob Phillips

"Alex C" <Alex wrote in message
...
I need to know how to count the number of times a specific number appears
within a range. ie. cell A:1 thru A:1000 - how many times was the number 3
entered. Disregard all other numbers that may of been entered.



  #5   Report Post  
Pivot Novice
 
Posts: n/a
Default

You could also place a subtotal function using the count option two cells
below the range, then place a filter on the range. This way, you can quickly
get the count of 3's, then 5's, 7's, etc., without having to re-write the
countif function constantly.

First, in cell A1002 -
=subtotal(2,a1:a1000)

Then, highlight A1:A1000 and select Data/Filter/AutoFilter.

Use the filter box to select the value that you want to count and the
subtotal function will automatically count it.

"Alex C" wrote:

I need to know how to count the number of times a specific number appears
within a range. ie. cell A:1 thru A:1000 - how many times was the number 3
entered. Disregard all other numbers that may of been entered.

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 Position of Filtered TEXT cells in a column Sam via OfficeKB.com Excel Worksheet Functions 8 May 18th 05 04:23 AM
Count Position of Filtered TEXT cells in a column Sam via OfficeKB.com Excel Worksheet Functions 0 May 15th 05 08:14 PM
Match Last Occurrence of two numbers and Count to Previous Occurence Sam via OfficeKB.com Excel Worksheet Functions 33 April 4th 05 02:17 PM
SUMPRODUCT Formula to Count Row of data Below Matched Criteria Sam via OfficeKB.com Excel Worksheet Functions 8 February 3rd 05 01:37 AM
Count number to reach a cumulative value Bruce Excel Worksheet Functions 5 January 25th 05 05:14 PM


All times are GMT +1. The time now is 12:14 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"