Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default counting matching multiple entries

I have two columns containing numbers.
I want to count the frequency with which the two columns' numbers match i.e.
the number of times 5,9 or 6,8 or 13,21 etc etc crop up (sports scores) and
leave the spreadsheet showing each unique number combination and the number
of times it occurs. Can I do this in one operation?

Colensa
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default counting matching multiple entries

I would use a pivot table. For example, with data in A2 thru B31, in C2 enter:
=A2 & "," & B2 and copy down. We get something like:

first second combo
3 4 3,4
4 8 4,8
6 4 6,4
2 10 2,10
4 9 4,9
2 8 2,8
9 2 9,2
2 10 2,10
7 3 7,3
5 4 5,4
9 3 9,3
6 1 6,1
1 6 1,6
8 7 8,7
3 9 3,9
2 2 2,2
9 1 9,1
9 4 9,4
5 7 5,7
4 10 4,10
5 3 5,3
9 1 9,1
7 7 7,7
10 10 10,10
3 9 3,9
7 10 7,10
6 7 6,7
2 3 2,3
9 5 9,5
1 8 1,8

Then create a pivot table listing Count of combo By combo. The result:

Count of combo
combo Total
1,6 1
1,8 1
10,10 1
2,10 2
2,2 1
2,3 1
2,8 1
3,4 1
3,9 2
4,10 1
4,8 1
4,9 1
5,3 1
5,4 1
5,7 1
6,1 1
6,4 1
6,7 1
7,10 1
7,3 1
7,7 1
8,7 1
9,1 2
9,2 1
9,3 1
9,4 1
9,5 1

Pivot table is nice because it creates the table of unique combos and lists
the number of times each combo occurs in one go. For more info:

http://www.contextures.com/xlPivot01.html
--
Gary''s Student - gsnu200853


"colensa" wrote:

I have two columns containing numbers.
I want to count the frequency with which the two columns' numbers match i.e.
the number of times 5,9 or 6,8 or 13,21 etc etc crop up (sports scores) and
leave the spreadsheet showing each unique number combination and the number
of times it occurs. Can I do this in one operation?

Colensa

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 806
Default counting matching multiple entries

Hello,

Select an area of 3 columns and enough rows and array-enter:
=Pfreq(A1:A100,B1:B100)
for example, if your two columns are A and B (data in rows 1 to 100).

My UDF Pfreq you can find he
http://www.sulprobil.com/html/pfreq.html

Regards,
Bernd
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
Combine Multiple Entries with differing amounts of entries Katie Excel Worksheet Functions 2 November 28th 07 09:53 PM
Matching List Entries steev_jd Excel Discussion (Misc queries) 3 April 6th 06 03:11 PM
Matching and Copying entries Box666 Excel Discussion (Misc queries) 1 January 9th 06 09:45 PM
Help matching entries in two sheets??? Curalice Excel Worksheet Functions 2 November 12th 05 07:53 PM
matching column entries billytf Excel Worksheet Functions 6 April 11th 05 06:41 AM


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