Results by handicap - with ties. Look up by score without duplicates

dkjonesau

New Member
Joined
May 9, 2014
Messages
46
Hi all,

I've got a table of results broken up into 9 divisions/handicap tiers.

I have a second worksheet that shows places 1st - 4th in each division. But I'm struggling with my name display when there's tied scores.

See workbook linked from OneDrive - Sample workbook

In the second worksheet "Results" I need to show positions 1st to 4th. I've worked out getting the scores out of each division for the top 4 scores.

I can't work out the best way to handle the duplicates.

In the sample worksheet Column M in the DATA PASTE HERE sheet allocates the division & column P is the score. Column B is the entrant's name.

Where there's two identical scores in a division I need to move on to the next name, and only in that division. I'm only using 4th to check if there's a tie for third place. I'll go to a manual process if I have to at that point. If it's less than third's score I don't have to do anything.

1712890443436.png


Data table above is summarised here for a display of who's winning. But I need to remove duplicates within the same division and across divisions.
1712890556154.png


Any suggestions welcome.

Thanks

Dave
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Maybe this.
Book1
DEFGHIJKLMN
6Division1OTG2OTG3OTG4OTG5OTG
71stRandom Name369Random Name1065Random Name2068Random Name4269Random Name5259
82ndRandom Name267Random Name1264Random Name2265Random Name4567Random Name4958
93rdRandom Name867Random Name1664Random Name3464Random Name3663Random Name5057
104thRandom Name766Random Name1162Random Name2763Random Name3763Random Name5557
11
12Division6OTG7OTG8OTG9OTG
131stRandom Name6358Random Name6844Random Name6952Random Name7322
142ndRandom Name6456Random Name6740Random Name7052#NUM!
153rdRandom Name6654#NUM!Random Name7152#NUM!
164thRandom Name6250#NUM!Random Name7227#NUM!
Sheet5
Cell Formulas
RangeFormula
E7:E10,K13,I13:I16,G13:G14,E13:E16,M7:M10,K7:K10,I7:I10,G7:G10E7=TAKE(LET(s,SORTBY(All[Name],All[Ev.1 M/FT],1,All[Ev.1 OTG],-1),FILTER(s,All[Ev.1 M/FT]=E6)),4)
Dynamic array formulas.
 
Upvote 0
Maybe this.
Book1
DEFGHIJKLMN
6Division1OTG2OTG3OTG4OTG5OTG
71stRandom Name369Random Name1065Random Name2068Random Name4269Random Name5259
82ndRandom Name267Random Name1264Random Name2265Random Name4567Random Name4958
93rdRandom Name867Random Name1664Random Name3464Random Name3663Random Name5057
104thRandom Name766Random Name1162Random Name2763Random Name3763Random Name5557
11
12Division6OTG7OTG8OTG9OTG
131stRandom Name6358Random Name6844Random Name6952Random Name7322
142ndRandom Name6456Random Name6740Random Name7052#NUM!
153rdRandom Name6654#NUM!Random Name7152#NUM!
164thRandom Name6250#NUM!Random Name7227#NUM!
Sheet5
Cell Formulas
RangeFormula
E7:E10,K13,I13:I16,G13:G14,E13:E16,M7:M10,K7:K10,I7:I10,G7:G10E7=TAKE(LET(s,SORTBY(All[Name],All[Ev.1 M/FT],1,All[Ev.1 OTG],-1),FILTER(s,All[Ev.1 M/FT]=E6)),4)
Dynamic array formulas.
Hi Cubist,

That looks like it's going to do the job based on your post but if I enter your formula into my E7 from your E7 it doesn't like it.

If I do a simple paste & ENTER it outputs this error which is weird cos it's clearly a formula not text. I've had this once before pasting from forums/internet but I can't recall how I got around it.
1712897842997.png


If I change it to this by replacing your table info by clicking on the top of the corresponding table column in the other sheet it doesn't error and accepts the formula but it does come up with a #CALC! error (Empty array?) in E7. I recalled having to Ctrl-Shift-ENTER for array formulae from years ago but I don't have much experience with arrays.

=TAKE(LET(s,SORTBY(Table1[[#Headers],[Name]],Table1[[#Headers],[Ev.1 M/FT]],1,Table1[[#Headers],[Ev.1 OTG]],-1),FILTER(s,Table1[[#Headers],[Ev.1 M/FT]]=E6)),4)

Thanks for your assistance. Thoughts? Where have I gone wrong.

Dave
 
Upvote 0
It looks like you're grabbing the headers of the table. Only get the data itself (row 2 and below in your sample sheet).
 
Upvote 0
It looks like you're grabbing the headers of the table. Only get the data itself (row 2 and below in your sample sheet).

=TAKE(LET(s,SORTBY(Table1[Name],Table1[Ev.1 M/FT],1,Table1[Ev.1 OTG],-1),FILTER(s,Table1[Ev.1 M/FT]=E6)),4)

Just had to swap out All in your formula for my Table1 table name. Knew it had to be something simple, just had me scratching my head for a minute. Nice, I've not used anything like that before but it's very neat. I'll have a play in another application too!

Thanks Cubist. Much appreciated.

Dave
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

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