Excel Rank Function with 18 Decimal Places

jlhoover3

Board Regular
Joined
Nov 9, 2015
Messages
62
Office Version
  1. 365
Platform
  1. Windows
Hello everyone,

I have a golf leaderboard sheet that I'm creating that will help rank and flight the tournament as needed. One thing that comes up often is the tie breaker that can change the flight you may be in (depending on ties). The way we do our tie breaker is pick a hole to start on and continue to the next hole until the tie breaker has been decided. For example, if the tie breaker hole starts on hole 3, then the tie breaker goes in this hole sequence (3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 1, and 2).

So far I have it all planned out by getting the Initial Rank on the total scores, and then adding the scores of each hole as a decimal. For example, Team A scores 69 and is initially ranked 2nd, and their hole by hole scores (starting on hole 3) go 4-4-4-4-4-4-4-4-4-4-4-4-1-4-4-4-4-4, with a final Tie Break Value of 2.444444444444144444. Then I would just use the rank function on the Tie Break value to find the answers. However, Excel only carries out 15 digits for the number and pulls the number as such, 2.444444444444100000. Does anybody have any suggestions on how I can get this to read all digits? Below is my equation to pull the Tie Breaking Formula.

Excel Formula:
=VALUE(CONCAT([@[I Rank]],".",TEXTJOIN("",TRUE,MensLeaderboard[@[T1]:[T18]])))

Thanks again for the help!
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
  1. Can a team score for a hole be double-digit? If so that would ruin the system anyway wouldn't it?
  2. Can the 'I Rank' value for a team be more than one digit?
Assuming both could possibly be double-digits and that you are looking for the lowest score as best could we use text sorting instead of numerical sorting due to Excel's significant figures limit?

Something like this

jlhoover3.xlsm
BCDEFGHIJKLMNOPQRSTUV
1
2I RankT1T2T3T4T5T6T7T8T9T10T11T12T13T14T15T16T17T18TiebreakRank
3244444444434444444402.0404040404040404040304040404040404042
4244444444434444444402.0404040404040404040304040404040404042
5344444444444544444403.0404040404040404040404050404040404044
6235444444444444444402.0305040404040404040404040404040404041
7
Rank
Cell Formulas
RangeFormula
U3:U6U3=CONCAT(TEXT([@[I Rank]],"00."),TEXT(MensLeaderboard[@[T1]:[T18]],"00"))
V3:V6V3=MATCH([@Tiebreak],SORT([Tiebreak]),0)


In the above the T1, T2 etc are your tiebreak scores as you stated so I guess starting at hole 3. To save you manually getting those numbers from a particular hole, perhaps it would help to simply enter the hole-by-hole scores holes 1 to 18 as normal and have the formulas rearrange them for starting at a particular hole like this where this time the holes are 1-18 and the starting hole is indicated in a separate cell (V10)

jlhoover3.xlsm
BCDEFGHIJKLMNOPQRSTUV
10Tiebreak Start Hole -->5
11
12I RankH1H2H3H4H5H6H7H8H9H10H11H12H13H14H15H16H17H18TiebreakRank
13244444444434444444402.0404040404030404040404040404040404041
14244444444434444444402.0404040404030404040404040404040404041
15344444444444544444403.0404040404040405040404040404040404044
16235444444444444444402.0404040404040404040404040404030504043
17
Rank
Cell Formulas
RangeFormula
U13:U16U13=LET(Holes,CONCAT(TEXT(MensLeaderboard2[@[H1]:[H18]],"00")),CONCAT(TEXT([@[I Rank]],"00."),MID(Holes&Holes,V$10*2-1,36)))
V13:V16V13=MATCH([@Tiebreak],SORT([Tiebreak]),0)
 
Upvote 0
Solution
Peter,

Awesome help with a great solution. You are correct, that my idea or thought would not have worked in case there was a double digit score. Although, it shouldn't happen, never leave any doubt!

I initially had everything you stated in the first solution, except I had helper cells doing the tiebreak start hole for me based on a cell value (like you did in solution 2). I didn't think about using a different sort function with text strings. Very Very Smart!

I ended up using your last solution which doesn't require any helper cells. It is working flawlessly and a huge help with the amount of tournaments I run each year. This is the first time I have used the LET function, and definitely now won't be the last! Again, thanks so much for the help!
 
Upvote 0
You're welcome. Glad it is working for you. Thanks for the follow-up. :)
 
Upvote 0

Forum statistics

Threads
1,226,013
Messages
6,188,421
Members
453,473
Latest member
bbugs73

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