A Counting Problem

ouadad

Board Regular
Joined
Jun 19, 2005
Messages
213
This one has got me puzzled and I'm sure there is a simple solution. I have a long list of rankings for various statistical tests, i.e.,

A 1
B 2
C 3
A 2
B 3
C 1

and so on. I just want to determine how many 1st, 2nd and 3rd place rankings of A, then of B, etc. There is no real range to use a Countif function and I thought I could do this without VBA.
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
What result(s) would you want for that sample data and why?
 
Upvote 0
For that sample data:

A would have 1 1st Choice and 1 second choice
B would have 1 second choice and 1 third choice
C would have 1 3rd choice and 1 first choice


I running various statistical tests on out-of-sample forecasts using a number of methods, i.e., Mean, naive, 3rd party software, and I want to be able to determine which method provides a best forecast based on the out-of-sample tests like sMAPE, MASE, etc.
 
Upvote 0
Ok, well you certainly could use COUNTIFS as suggested by Joe and as I have used in columns E:H (formula in F2 is copied across and down)

Alternatively, you could possibly use Excel's built-in Pivot Table feature (on the Insert ribbon tab) as I have shown in columns J:N

Excel Workbook
ABCDEFGHIJKLMNO
1ItemRank123Count of RankRank
2A1A110Item123Grand Total
3B2B011A112
4C3C101B112
5A2C112
6B3Grand Total2226
7C1
Count
 
Upvote 0

Forum statistics

Threads
1,223,714
Messages
6,174,052
Members
452,542
Latest member
Bricklin

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top