Counting Unique Rows

JeffGrant

Well-known Member
Joined
Apr 7, 2021
Messages
519
Office Version
  1. 365
Platform
  1. Windows
Hi all I have a table with thousands of rows.

The table is made up of three columns.

Race Track, Race Number, Entrant Name.

There is around 40 Unique Tracks
Each Track can have up to 20 Races
Each Entrant can appear up to 10 times per race. (my Data contains historical performances)

How can I use PQ to count the number of unique entrants per race per track?

Thanks in advance.
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
To use PQ, you would need to do a groupby using the columns that identify uniqueness. The number of rows in this table is the answer
 
Upvote 0
Solution
I can do it by:

1. in PQ remove duplicates
2. Close and Load to a New Table
3. Create a pivot table
4. use the Excel GetPivotData function,
 
Upvote 0
Thanks Matt....

How do I use Group BY on more than one column?
 
Upvote 0
Hi Matt,

I can group by Track, then add race number, but when it comes to the counting of the entrants, PQ wont give that option. Any ideas what I am doing wrong?
1687154758441.png
 
Upvote 0

Forum statistics

Threads
1,215,597
Messages
6,125,738
Members
449,255
Latest member
whatdoido

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