Forum Discussion

pevenden's avatar
pevenden
Copper Contributor
Nov 12, 2023

create custom formula

I would like to create this custom formula to calculate a points awarding system that automatically calculates. P and A are the variables in the formula.

Is this possible?

P = event finishing position
A = event attendance
Φ = fleet factor (B Fleet - 0.33; C Fleet - 0.15)

 

  • JoeUser2004's avatar
    JoeUser2004
    Bronze Contributor

    pevenden HansVogelaar 

     

    If you google "event finishing position" "event attendance" "fleet factor" with quotes, we find the HCA Competitive Ranking formula (click here).

     

    The formula (from page 1) is not proper math.  It might be parsed as follows:

     

     

    The formula f(x) calculates the points assigned to a participant based on the participant's position (P = 1 to A) in a race with "A" participants.

     

    The notation Sigma(f(x), for x=1 to 5) simply means:  sum the points from 5 races.

     

    In particular:  ``the system includes your best five regatta finishes. If you sail fifteen events, we take your very best results for your ranking``.

     

    The table below (from page 2) shows the expected f(x) before applying fleet factor (phi) for finishing positions (P) in races that have A=1 to 20 participants.  It is just an example.

     

     

    Note:  I don't know if it is implicitly suggesting that f(x) should be rounded to 3 decimal places.  Further reading might be necessary.

     

    "The remainder of the solution is left as an excercise for the student". (wink)

  • peiyezhu's avatar
    peiyezhu
    Bronze Contributor
    . P and A are the variables ?
    or constant?

    I guess need some specific variables and expected result to understand this formula.
    • pevenden's avatar
      pevenden
      Copper Contributor

      HansVogelaar 

      Yeah, I was not much at math... so alot of the characters don't mean much to me... however...

      The formula creates a point system for overall points for a sailboat racing season. The points awarded are dependent on the number of entries in the race, and the position of each boat in that race. 

      there is a graph that has the detail but I am trying to put the formula into excel for easier calculation... 

       if it works that is.... 

       

      does that help?

       

      • djclements's avatar
        djclements
        Bronze Contributor

        pevenden as per the new information provided by JoeUser2004 regarding "the system includes your best five regatta finishes", the formula to generate Season Standings in my above response can be modified to sum the results of each team's best 5 finishes as follows:

         

        =LET(
        u, UNIQUE(C4:C20),
        a, BYROW(u, LAMBDA(r, SUM(TAKE(SORT(FILTER(D4:D20, C4:C20=r)), -5)))),
        HSTACK(SEQUENCE(ROWS(u)), SORT(HSTACK(u, a), 2, -1)))

         

        Please see the attached updated workbook (v2).

Resources