Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Count specific numbers in a column

Hi,

Is there a way to count specific numbers in a column and enter the number
into a new cell.

For example:

A B C D
1 1 1 2 3
2 1 2 3 4
3 2
4 2
5 2
6 3
7 3
8 3
9 3

Column A is the data, in B2 I want a function that counts the number of "1"s
in column A, in C2 the same function that counts the number of "2"s in A,
and so on. I am in need of the function.

Thanks in advance.

Marc


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 983
Default Count specific numbers in a column

in B2 enter
=COUNTIF($A1:$A100,B1)

HTH

"JimmyH" wrote:

Hi,

Is there a way to count specific numbers in a column and enter the number
into a new cell.

For example:

A B C D
1 1 1 2 3
2 1 2 3 4
3 2
4 2
5 2
6 3
7 3
8 3
9 3

Column A is the data, in B2 I want a function that counts the number of "1"s
in column A, in C2 the same function that counts the number of "2"s in A,
and so on. I am in need of the function.

Thanks in advance.

Marc



  #3   Report Post  
Posted to microsoft.public.excel.programming
Ev Ev is offline
external usenet poster
 
Posts: 2
Default Count specific numbers in a column


+COUNTIF(A1:A9,B1)


"JimmyH" wrote in message
news:aooyd.563758$nl.272435@pd7tw3no...
Hi,

Is there a way to count specific numbers in a column and enter the number
into a new cell.

For example:

A B C D
1 1 1 2 3
2 1 2 3 4
3 2
4 2
5 2
6 3
7 3
8 3
9 3

Column A is the data, in B2 I want a function that counts the number of
"1"s in column A, in C2 the same function that counts the number of "2"s
in A, and so on. I am in need of the function.

Thanks in advance.

Marc



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Count specific numbers in a column


"Jim Thomlinson"

=COUNTIF($A1:$A100,B1)


Perfecto. Thanks!


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 a specific month in a column Elaine Excel Worksheet Functions 7 July 1st 08 09:30 AM
Count the cell contain a specific numbers in a range Simon Excel Discussion (Misc queries) 5 January 31st 08 01:52 AM
How do I count cells that contain one of several specific numbers? Lewis0205NC Excel Worksheet Functions 6 April 21st 06 02:27 PM
Count and Sum Total occurrances of two specific numbers Sam via OfficeKB.com Excel Worksheet Functions 10 March 29th 05 08:13 PM
SUM/COUNT column(s) based on specific value present within the column markx Excel Worksheet Functions 6 March 22nd 05 10:23 AM


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