Forum Discussion

Dave_Moyse's avatar
Dave_Moyse
Copper Contributor
Jun 27, 2022

Golf Handicap spreadsheet, fixing cells

I have set up a golf handicap spreadsheet for 12 people in my playing group that calculates the best 8 scores from a list of 12 then averages them out to create a playing handicap.  When I insert new scores the calculator drops a cell, i.e. when working on the sum of lines 2 to 21 it changes to 3 to 22.  The same players do not play each week so I cannot drag all 12 lines down. 

  • nwree's avatar
    nwree
    Copper Contributor

    To fix your golf handicap spreadsheet, use absolute cell references. In the formula for calculating the best 8 scores, use $A$2:$A$13 (assuming player names are in column A), and when averaging, use $B$2:$B$13 for handicaps. This way, when you insert new scores, the formula won't shift, ensuring accurate calculations regardless of varying player participation.

  • Dave_Moyse 

    =AVERAGE(SMALL(INDIRECT("C5:C"&MAX(IF(C:C<>"",ROW(C:C)))),ROW(1:8)))

    Is the attached example similar to what you want to do? Enter the formula with ctrl+shift+enter if you don't work with Office365 or 2021.

     

    In the example the formula remains in cell E9 and additional scores of the 12 players can be entered in columns A, B and C.

     

    • Dave_Moyse's avatar
      Dave_Moyse
      Copper Contributor
      Thanks, I want to always show 12 players and their 20 last scores. This example is quite sophisticated, I don't know how I could use it to suit my own purpose.
    • Elda_Vinci's avatar
      Elda_Vinci
      Copper Contributor

      OliverScheurich

      Te devuelvo tu excel, fijate como se haría si en vez de utilizar rangos de celdas, utilizas nombres de tablas.

       

      te he dejado tu formula y al lado he puesto la misma con el nombre de la tabla.

      Inserta nuevos datos para ver como cambia el resumen.

       

      Un saludo 

      • OliverScheurich's avatar
        OliverScheurich
        Gold Contributor

        Elda_Vinci 

        Very good solution, thank you. With the named ranges can we as well calculate the average of the best 8 results of the last 12 scores? The formula with cell ranges and the expected result is in cell E18 in the attached file.

  • Elda_Vinci's avatar
    Elda_Vinci
    Copper Contributor
    Hola, no sé que es lo que quieres.
    Si quieres manda el excel, o explica un poco que es lo que quieres que haga el excel.
    Si no quieres que al arrastrar baje una celda, por las direcciones de las celdas precedidas por $

    en vez de poner A2:A21, pon $A$2:$A$21.
    No sé si es esto lo que quieres
    • Dave_Moyse's avatar
      Dave_Moyse
      Copper Contributor
      Unfortunately when I insert in line C5 for example with a new score the total column then ignores that cell, even if the $ is included. The cells are generally '=C5-724' through to '=C24-72' with the calculation showing '=AVERAGE(SMALL($C5:$C24,ROW($1:$8)))'.
      • Elda_Vinci's avatar
        Elda_Vinci
        Copper Contributor

        Dave_Moyse 

        Si lo he entendido bien, tu problema es que si insertas nuevas puntuaciones, estas no se actualizan en la formula.
        Lo mejor es que crees una Tabla. Selecciona desde el encabezado hasta el ultimo dato que tengas y haces click en MENU INSERTAR-TABLA, le pones un nombre y a partir de ahora, en las formulas, haces referencia a la tabla y al encabezado de cada columna.
        Ejemplo si tu tabla se llama T_Datos y los encabezados de las Columnas de esa tabla son FECHA - NOMBRE - PUNTUACION.
        en la formula tendrás que sustituir $C 5:$ 24 por T_Datos[PUNTUACION], así cuando agregues otro dato esta formula lo tendrá en cuenta.

         

        Te mando un excel de ejemplo para ver si es algo asi lo que quieres

        Pon nuevos datos en la celda A18, para ver como afecta a las otras tablas.

         

        Un saludo

Resources