Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Sum the amount of times a number appears in a column in Excel?

I am using Excel 2003. I have a spreadsheet of Soccer orders. One column
has player numbers entered. I would like to sum the number of times each
number appears in order to know how many numbers I have to order to put on
the jerseys. For instance, if I have three players, numbers 3, 12, 13. I
would have a total of : two number 1's, one number 2, and two number 3's.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Sum the amount of times a number appears in a column in Excel?

With data in A2 down, eg: 1,2,1,2,3,1,1,etc
In B2, copied down: =COUNTIF(A:A,A2)

A good, fast alternative is to create a pivot table. Assume col header in A1
is "Player#". Select col A, click DataPivot Table. Click NextNext. In
step3, click Layout, then drag n drop "Player#" in both the ROW and DATA
area. In the DATA area, the field should read: Count of Player#. If it
doesn't, just double click on it, change it to summarize by: Count. Click to
OK out Finish. Hop over to the pivot in the new sheet to the left for the
results. The pivot will produce a unique listing of the Player#'s in the ROW
area, and their corresponding counts in the DATA area, exactly the actual
results that I believe you seek.
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:15,700 Files:353 Subscribers:53
xdemechanik
---
"SEMonroe" wrote:
I am using Excel 2003. I have a spreadsheet of Soccer orders. One column
has player numbers entered. I would like to sum the number of times each
number appears in order to know how many numbers I have to order to put on
the jerseys. For instance, if I have three players, numbers 3, 12, 13. I
would have a total of : two number 1's, one number 2, and two number 3's.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,240
Default Sum the amount of times a number appears in a column in Excel?

SEMonroe wrote:
I am using Excel 2003. I have a spreadsheet of Soccer orders. One column
has player numbers entered. I would like to sum the number of times each
number appears in order to know how many numbers I have to order to put on
the jerseys. For instance, if I have three players, numbers 3, 12, 13. I
would have a total of : two number 1's, one number 2, and two number 3's.


With your player numbers in A1:A50 and the number 0 through 9 in B1:B10, array
enter the following in C1:

=SUM(--((($A$1:$A$50-B1)/10)=(INT(($A$1:$A$50-B1)/10))))+SUM(--(($A$1:$A$50)<((B1+1)*10)))-SUM(--(($A$1:$A$50)<(B1*10)))

When array entered (ctrl-shift-enter), Excel will add the {braces}.

Copy the formula down to C10. This will count a leading 0 for all player
numbers from 0 to 9 (00, 01, 02, etc.) and is only good for player numbers from
0 to 99.
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
counting the number of times a word appears Adrienne[_2_] Excel Worksheet Functions 5 September 5th 07 02:49 AM
How do I count the number of times a value appears? Christine Excel Worksheet Functions 2 February 8th 07 09:38 PM
count the number of times a specific word appears in a column BAR Excel Worksheet Functions 1 June 27th 06 05:03 PM
How to count the number of times a string appears in a column? btsray Excel Worksheet Functions 0 January 25th 06 10:15 PM
Count Number of Times Something appears Mark B Excel Worksheet Functions 5 November 29th 05 08:36 PM


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