Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Count occurences and return total

HELP! I know someone here can help me! I want to count the number of times
a specific ID number occurs in a column, and return the total count in the
cell adjacent to each occurrence of that number:

ID # Combined Count
343 1
654 3
654 3
654 3
109 2
109 2
433 1

If anyone can advise, I would greatly appreciate it! THANKS!@
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Count occurences and return total

NEVER MIND! I figured it out myself (after MUCH trial and error). Here it is:

=COUNTIF(A:A,A2)

Thanks anyway!

"Daniel A." wrote:

HELP! I know someone here can help me! I want to count the number of times
a specific ID number occurs in a column, and return the total count in the
cell adjacent to each occurrence of that number:

ID # Combined Count
343 1
654 3
654 3
654 3
109 2
109 2
433 1

If anyone can advise, I would greatly appreciate it! THANKS!@

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Count occurences and return total

Try one of these:

With ID #'s starting in cell A2, enter this formula in cell B2 and copy down
as needed:

=COUNTIF(A:A,A2)

If the ID #'s are grouped together as in your sample then this is a little
bit better. A1 and B1 are column headers.

Entered in B2 and copied down as needed:

=IF(A2=A1,B1,COUNTIF(A:A,A2))

Using this formula saves from doing a count on every entry and just does a
count on each distinct entry.

--
Biff
Microsoft Excel MVP


"Daniel A." <Daniel wrote in message
...
HELP! I know someone here can help me! I want to count the number of
times
a specific ID number occurs in a column, and return the total count in the
cell adjacent to each occurrence of that number:

ID # Combined Count
343 1
654 3
654 3
654 3
109 2
109 2
433 1

If anyone can advise, I would greatly appreciate it! 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 Occurences Lmurraz Excel Discussion (Misc queries) 3 July 11th 07 02:46 PM
Count # of Occurences Sweepea Excel Discussion (Misc queries) 6 December 14th 06 02:27 AM
Count Occurences problem anandmr65 Excel Discussion (Misc queries) 4 April 19th 06 05:42 AM
count double occurences Henderson Excel Worksheet Functions 4 April 19th 06 04:11 AM
Trying to count occurences if 2 conditions are met NLithgow Excel Worksheet Functions 3 June 8th 05 07:20 AM


All times are GMT +1. The time now is 02:14 AM.

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

About Us

"It's about Microsoft Excel"