Help please. Formula for Children's Athletics 100m Handicap.

%3CLINGO-SUB%20id%3D%22lingo-sub-1797932%22%20slang%3D%22en-US%22%3EHelp%20please.%20Formula%20for%20Children's%20Athletics%20100m%20Handicap.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1797932%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Excel%20Community.%3C%2FP%3E%3CP%3EI%20have%20been%20given%20the%20task%20of%20creating%20a%20spreadsheet%20to%20map%20the%20100m%20handicaps%20for%20our%20local%20athletics%20club.%3C%2FP%3E%3CP%3EI%20have%20attached%20a%20pdf%20copy%20of%20the%20formula%20and%20what%20I%20have%20done%20so%20far.%3C%2FP%3E%3CP%3EWould%20there%20happen%20to%20be%20any%20Excel%20Guru's%20out%20there%20willing%20to%20lend%20me%20a%20hand%3F%3C%2FP%3E%3CP%3EMany%20thanks%2C%3C%2FP%3E%3CP%3ENeil.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1797932%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1797952%22%20slang%3D%22en-US%22%3ERe%3A%20Help%20please.%20Formula%20for%20Children's%20Athletics%20100m%20Handicap.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1797952%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20community.%3C%2FP%3E%3CP%3EPlease%20disregard%20the%20last%20line%20on%20the%20on%20actual%20format%20(All%20Others%20%2B8m).%3C%2FP%3E%3CP%3EThat%20is%20not%20meant%20to%20be%20included.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMany%20thanks%2C%3C%2FP%3E%3CP%3ENeil.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1797989%22%20slang%3D%22en-US%22%3ERe%3A%20Help%20please.%20Formula%20for%20Children's%20Athletics%20100m%20Handicap.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1797989%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F838583%22%20target%3D%22_blank%22%3E%40Neilo420%3C%2FA%3E%26nbsp%3BPerhaps%20better%20to%20upload%20your%20Excel%20workbook%20(with%20some%20made-up%20names)%2C%20since%20you%20already%20started%20one.%20And%20please%20indicate%20in%20a%20few%20examples%20what%20results%20you%20expect%20any%20formula%20to%20come%20up%20with.%20Difficult%20to%20visualise%20what%20you%20have%2Fneed%20on%20the%20basis%20of%20a%20PDF%20alone.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1802017%22%20slang%3D%22en-US%22%3ERe%3A%20Help%20please.%20Formula%20for%20Children's%20Athletics%20100m%20Handicap.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1802017%22%20slang%3D%22en-US%22%3EThanks%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F403176%22%20target%3D%22_blank%22%3E%40Riny_van_Eekelen%3C%2FA%3E.%20I'll%20look%20to%20attach%20a%20mock%20up%20spreadsheet%20as%20soon%20as%20I%20get%20the%20go%20ahead%20from%20our%20Club%20President.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1835194%22%20slang%3D%22en-US%22%3ERe%3A%20Help%20please.%20Formula%20for%20Children's%20Athletics%20100m%20Handicap.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1835194%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F403176%22%20target%3D%22_blank%22%3E%40Riny_van_Eekelen%3C%2FA%3E.%20Sorry%20for%20the%20delay.%3C%2FP%3E%3CP%3EI%20have%20attached%20our%20spreadsheet.%3C%2FP%3E%3CP%3EThe%20formula%20in%20question%20is%20on%20the%20Track%20Points%20sheet%20and%20starts%20on%20Column%20T%2C%20and%20follows%20suit%20AB%2C%20AJ%2C%20AR%20etc.%20This%20sheet%20will%20eventually%20be%20locked%20as%20it%20will%20be%20a%20data%20only%20sheet.%3C%2FP%3E%3CP%3EIt%20relates%20back%20to%20the%20Track%20Results%20sheet%2C%20which%20is%20the%20input%20data%20sheet.%3C%2FP%3E%3CP%3EI%20have%20entered%20both%20attendance%20(ATT)%2C%20and%20placings%20(in%20R3%2F100m%20column%20only%20as%20this%20is%20the%20handicap%20race)%20for%20the%20first%20few%20meets%20so%20you%20can%20see%20how%20it%20works%20to%20date.%3C%2FP%3E%3CP%3EAny%20assistance%20or%20thoughts%20would%20be%20much%20appreciated.%3C%2FP%3E%3CP%3EMany%20thanks.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1836446%22%20slang%3D%22en-US%22%3ERe%3A%20Help%20please.%20Formula%20for%20Children's%20Athletics%20100m%20Handicap.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1836446%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F838583%22%20target%3D%22_blank%22%3E%40Neilo420%3C%2FA%3E%26nbsp%3BThanks%20for%20sharing%20the%20worksheet.%20When%20I%20opened%20it%20and%20started%20changing%20things%20a%20bit%20my%20machine%20became%20very%20slow.%20I%20noticed%20that%20you%20had%2014%20hidden%20sheets%2C%20full%20with%20formulae%20and%20many%20hidden%20rows%20in%20the%20two%20visible%20sheet%2C%20also%20filled%20with%20formulae%20and%20conditional%20formats.%20So%20I%20just%20extracted%20the%2012%20example%20rows%20(6%20from%20Results%20and%206%20from%20Points)%20and%20put%20them%20in%20one%20single%20sheet%20to%20see%20what%20you%20where%20trying%20to%20achieve%20with%20all%20the%20nested%20IFs%20and%20AND%20functions%2C%20in%20relation%20to%20your%20original%20PDF.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAnd%20then%20I%20got%20lost%20and%20started%20from%20scratch%2C%20though%20trying%20to%20follow%20your%20logic.%20The%20result%20is%20attached.%20A%20small%20sheet%20with%20just%20a%20few%20races%20to%20test%20the%20different%20scenarios%20with.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou'll%20notice%20that%20I%20used%20a%20beginning%20hcp%20and%20hcp%2B%2F-%20after%20every%20race%20and%20that%20I%20calculated%20them%20in%20the%20Results%20area.%20Now%2C%20I'm%20not%20sure%20why%20you%20also%20want%20to%20have%20it%20in%20the%20Points%20area%2C%20but%20I%20left%20the%20accumulated%20hcp%20in%20there%20(linked%20to%20the%20calculations%20in%20Results)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20biggest%20change%20is%20that%20I%20got%20rid%20of%20all%20the%20nested%20IF%20statements%20and%20replaced%20them%20by%20CHOOSE.%20Easier%20to%20follow%20and%20maintain%2C%20should%20you%20ever%20want%20to%20change%20the%20rules.%20And%20to%20satisfy%20the%20consecutive%20winner%20criterion%2C%20I%20used%20a%20VLOOKUP%20in%20the%20hcp%2B%2F-%20columns%20for%20the%202nd%20race%20and%20the%20ones%20thereafter.%20Not%20very%20elegant%20but%20it%20works.%20If%20you%20are%20on%20an%20older%20version%20of%20Excel%2C%20you%20might%20have%20to%20re-enter%20these%20formulae%20and%20confirm%20the%20with%20Ctrl-Shift-Enter%20rather%20than%20with%20the%20regular%20Enter%20alone.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20this%20is%20indeed%20in%20accordance%20with%20what%20you%20require%2C%20you%20can%20just%20copy%20columns%20AB%3AAH%20and%20paste%20it%20into%20AI%20to%20track%20the%20next%20race.%20If%20it%20is%20not%2C%20you%20need%20to%20explain%20more%20or%20perhaps%20just%20copy%20some%20of%20the%20mechanics%20of%20my%20sheet%20into%20your%20own.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1839817%22%20slang%3D%22en-US%22%3ERe%3A%20Help%20please.%20Formula%20for%20Children's%20Athletics%20100m%20Handicap.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1839817%22%20slang%3D%22en-US%22%3EThank%20you%20very%20much%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F403176%22%20target%3D%22_blank%22%3E%40Riny_van_Eekelen%3C%2FA%3E%2C%3CBR%20%2F%3EI'll%20have%20a%20good%20look%20at%20it%20and%20have%20a%20play%20and%20see%20if%20it%20does%20what's%20needed.%3CBR%20%2F%3EReally%20appreciate%20your%20assistance%20with%20this.%3CBR%20%2F%3EKind%20regards%2C%3CBR%20%2F%3ENeil.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1841579%22%20slang%3D%22en-US%22%3ERe%3A%20Help%20please.%20Formula%20for%20Children's%20Athletics%20100m%20Handicap.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1841579%22%20slang%3D%22en-US%22%3EHi%20again%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F403176%22%20target%3D%22_blank%22%3E%40Riny_van_Eekelen%3C%2FA%3E.%3CBR%20%2F%3EThe%20formula%20is%20about%2090%25%20there%20thanks%20-%20only%20problem%20is%20that%20it%20doesn't%20calculate%20the%20last%20variation%20correctly.%20I%20have%20ran%20a%20couple%20of%20different%20scenarios%20and%20manually%20calculated%20the%20'Unless%20Last%20Contestant%20Winner%20Again'%2C%20and%20have%20had%20different%20results.%3CBR%20%2F%3EBefore%20I%20ask%20if%20you%20could%20Kindly%20relook%20at%20the%20formula%2C%20may%20I%20ask%20you%20to%20explain%20your%20formula%20step%20by%20step%20(in%20layman%20terms%20please!)%20and%20I%20will%20see%20if%20I%20can%20find%20the%20fix.%3CBR%20%2F%3EMany%20thanks%20once%20again.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1841899%22%20slang%3D%22en-US%22%3ERe%3A%20Help%20please.%20Formula%20for%20Children's%20Athletics%20100m%20Handicap.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1841899%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F838583%22%20target%3D%22_blank%22%3E%40Neilo420%3C%2FA%3E%26nbsp%3BI'll%20try%20to%20explain%20what%20I%20had%20in%20mind.%20And%20since%20you%20did%20not%20mention%20you%20received%20an%20error%20message%20(just%20an%20unexpected%20result)%20I%20assume%20your%20Excel%20version%20can%20handle%20the%20VLOOKUP%20part%20of%20the%20formula.%20The%20formula%20in%20the%20%22hcp%2B%2F-%22%20column%20S%20is%20like%20this%3A%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-excel%22%3E%3CCODE%3EIF(IFERROR(VLOOKUP(1%2CJ%2415%3AJ%2420*Q%2415%3AQ%2420%2C1%2C0)%2C0)%3D1%2C%3CSAME%20winner%3D%22%22%20as%3D%22%22%20previous%3D%22%22%20race%3D%22%22%3E%2C%20%3CDIFFERENT%20winner%3D%22%22%3E)*%3CATTENDED%3E%3C%2FATTENDED%3E%3C%2FDIFFERENT%3E%3C%2FSAME%3E%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3EThe%20part%20J%2415%3AJ%2420*Q%2415%3AQ%2420%20creates%20an%20array%20of%20numbers%20where%20each%20cell%20in%20J%20is%20multiplied%20by%20its%20corresponding%20cell%20in%20Q.%20Only%20if%20the%20winner%20in%20the%20current%20race%20(Q)%20is%20the%20same%20as%20the%20previous%20(J)%20this%20array%20will%20contain%20a%20number%201.%20VLOOKUP%20thus%20looks%20if%20there%20is%20a%20number%201%20in%20that%20array.%20If%20it%20exists%20it%20will%20return%201%2C%20if%20not%20%23NA!.%20To%20get%20rid%20of%20the%20%23NA!%20error%2C%20I%20wrapped%20the%20formula%20in%20an%20IFERROR.%20So%2C%20now%20the%20outcome%20is%20either%201%20or%20zero.%3C%2FP%3E%3CP%3EThe%20IF%20function%20then%20tests%20this%20outcome.%20IF%201%20then%20calculate%20handicap%20based%20on%20%22rules%20for%20same%20winner%22%20else%20calculate%20handicap%20based%20on%20%22rules%20for%20a%20different%20winner.%22%20Each%20of%20the%20handicap%20calculations%20use%20CHOOSE.%20It%20takes%20the%20result%20(1%2C2%20or%203)%20and%20chooses%20the%20relevant%20handicap%20adjustment%20(0%2C1%2C2%20for%20same%20winner)%20or%20(-2%2C-1%2C0%20for%20different%20winner).%20Is%20a%20runner%20has%20no%20top%20three%20result%20an%20error%20will%20occur.%20Similarly%20to%20what%20I%20described%20before%2C%20the%20IFERROR%20function%20then%20captures%20the%20error%20and%20the%20handicap%20adjustment%20becomes%203%20or%202%20respectively.%3C%2FP%3E%3CP%3EFinally%2C%20I%20multiply%20the%20whole%20lot%20by%20the%20attendance%20number%20(1%20or%200)%20to%20make%20sure%20that%20the%20handicap%20is%20adjusted%20only%20if%20the%20runner%20took%20part%20in%20the%20current%20race.%3C%2FP%3E%3CP%3EHopefully%2C%20this%20helps%20you%20understand%20the%20formula%20and%20resolve%20your%20problem.%20Perhaps%2C%20by%20adjusting%20the%20values%20to%20choose%20from%20in%20case%20the%20winner%20is%20the%20same.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1842653%22%20slang%3D%22en-US%22%3ERe%3A%20Help%20please.%20Formula%20for%20Children's%20Athletics%20100m%20Handicap.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1842653%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F403176%22%20target%3D%22_blank%22%3E%40Riny_van_Eekelen%3C%2FA%3E%26nbsp%3BThanks%20for%20your%20explanation.%3C%2FP%3E%3CP%3EI%20have%20changed%20one%20thing%20on%20the%20first%20Choose%20option%20from%200%2C1%2C2%20to%20-2%2C1%2C2.%3C%2FP%3E%3CP%3EOne%20thing%20I%20do%20not%20understand%20is%20that%20according%20to%20the%20'same%20winner%20again'%20scenario%2C%20the%20attached%20image%20should%20have%20shown%20the%20hcp%2B%2F-%20Z%20column%20as%20such%3B%3C%2FP%3E%3CUL%3E%3CLI%3ERow%2015%20%26nbsp%3B-%20%26nbsp%3B3%3C%2FLI%3E%3CLI%3ERow%2016%20%26nbsp%3B-%20%26nbsp%3B-2%20(winner)%3C%2FLI%3E%3CLI%3ERow%2017%20%26nbsp%3B-%20%26nbsp%3B1%20(second)%3C%2FLI%3E%3CLI%3ERow%2018%20%26nbsp%3B-%20%26nbsp%3B2%20(third)%3C%2FLI%3E%3CLI%3ERow%2019%20%26nbsp%3B-%20%26nbsp%3B3%3C%2FLI%3E%3CLI%3ERow%2020%20%26nbsp%3B-%20%26nbsp%3B3%3C%2FLI%3E%3C%2FUL%3E%3CP%3ETo%20my%20very%20simplistic%20eye%2C%20it%20appears%20that%20the%20formula%20only%20reads%20into%20the%20'same%20winner'%20and%20negates%20the%20other%20placings%2C%20therefore%20using%20the%20standard%20formula%20of%20seconds%20back%201%2C%20thirds%20back%202%2C%20and%20remainder%20forward%202.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHave%20I%20missed%20something%20crucial%20here%2C%20or%20am%20I%20just%20oblivious%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMany%20thanks.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1843348%22%20slang%3D%22en-US%22%3ERe%3A%20Help%20please.%20Formula%20for%20Children's%20Athletics%20100m%20Handicap.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1843348%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F838583%22%20target%3D%22_blank%22%3E%40Neilo420%3C%2FA%3E%26nbsp%3BI%20applied%20the%20change%20you%20indicated%20in%20the%20%22same%20winner%22%20calculation%2C%20and%20arrive%20to%20the%20desired%20handicap%20adjustment.%20Please%20see%20the%20attached%20file%20and%20the%20picture%20below.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Screenshot%202020-11-02%20at%2005.55.05.png%22%20style%3D%22width%3A%20830px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F230760i33F2A380848E4873%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Screenshot%202020-11-02%20at%2005.55.05.png%22%20alt%3D%22Screenshot%202020-11-02%20at%2005.55.05.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EBy%20the%20way%2C%20the%20formulae%20in%20columns%20R%2C%20Y%20and%20AF%20now%20also%20include%20a%20test%20that%20sees%20to%20it%20that%20the%20handicap%20can%20not%20go%20below%200%2C%20as%20I%20believe%20that%20was%20also%20one%20of%20your%20requirements%20from%20reading%20your%20original%20formulae.%20I%20had%20already%20included%20a%20test%20to%20maximise%20the%20handicap%20to%2030.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

Hi Excel Community.

I have been given the task of creating a spreadsheet to map the 100m handicaps for our local athletics club.

I have attached a pdf copy of the formula and what I have done so far.

Would there happen to be any Excel Guru's out there willing to lend me a hand?

Many thanks,

Neil.

15 Replies
Highlighted

Hi community.

Please disregard the last line on the on actual format (All Others +8m).

That is not meant to be included.

 

Many thanks,

Neil.

Highlighted

@Neilo420 Perhaps better to upload your Excel workbook (with some made-up names), since you already started one. And please indicate in a few examples what results you expect any formula to come up with. Difficult to visualise what you have/need on the basis of a PDF alone.

Highlighted
Thanks @Riny_van_Eekelen. I'll look to attach a mock up spreadsheet as soon as I get the go ahead from our Club President.
Highlighted

Hi @Riny_van_Eekelen. Sorry for the delay.

I have attached our spreadsheet.

The formula in question is on the Track Points sheet and starts on Column T, and follows suit AB, AJ, AR etc. This sheet will eventually be locked as it will be a data only sheet.

It relates back to the Track Results sheet, which is the input data sheet.

I have entered both attendance (ATT), and placings (in R3/100m column only as this is the handicap race) for the first few meets so you can see how it works to date.

Any assistance or thoughts would be much appreciated.

Many thanks.

 

Highlighted

@Neilo420 Thanks for sharing the worksheet. When I opened it and started changing things a bit my machine became very slow. I noticed that you had 14 hidden sheets, full with formulae and many hidden rows in the two visible sheet, also filled with formulae and conditional formats. So I just extracted the 12 example rows (6 from Results and 6 from Points) and put them in one single sheet to see what you where trying to achieve with all the nested IFs and AND functions, in relation to your original PDF.

 

And then I got lost and started from scratch, though trying to follow your logic. The result is attached. A small sheet with just a few races to test the different scenarios with.

 

You'll notice that I used a beginning hcp and hcp+/- after every race and that I calculated them in the Results area. Now, I'm not sure why you also want to have it in the Points area, but I left the accumulated hcp in there (linked to the calculations in Results)

 

The biggest change is that I got rid of all the nested IF statements and replaced them by CHOOSE. Easier to follow and maintain, should you ever want to change the rules. And to satisfy the consecutive winner criterion, I used a VLOOKUP in the hcp+/- columns for the 2nd race and the ones thereafter. Not very elegant but it works. If you are on an older version of Excel, you might have to re-enter these formulae and confirm the with Ctrl-Shift-Enter rather than with the regular Enter alone.

 

If this is indeed in accordance with what you require, you can just copy columns AB:AH and paste it into AI to track the next race. If it is not, you need to explain more or perhaps just copy some of the mechanics of my sheet into your own.

Highlighted
Thank you very much @Riny_van_Eekelen,
I'll have a good look at it and have a play and see if it does what's needed.
Really appreciate your assistance with this.
Kind regards,
Neil.
Highlighted
Hi again @Riny_van_Eekelen.
The formula is about 90% there thanks - only problem is that it doesn't calculate the last variation correctly. I have ran a couple of different scenarios and manually calculated the 'Unless Last Contestant Winner Again', and have had different results.
Before I ask if you could Kindly relook at the formula, may I ask you to explain your formula step by step (in layman terms please!) and I will see if I can find the fix.
Many thanks once again.
Highlighted

@Neilo420 I'll try to explain what I had in mind. And since you did not mention you received an error message (just an unexpected result) I assume your Excel version can handle the VLOOKUP part of the formula. The formula in the "hcp+/-" column S is like this:

IF(IFERROR(VLOOKUP(1,J$15:J$20*Q$15:Q$20,1,0),0)=1,<same winner as previous race>, <different winner>)*<attended>

The part J$15:J$20*Q$15:Q$20 creates an array of numbers where each cell in J is multiplied by its corresponding cell in Q. Only if the winner in the current race (Q) is the same as the previous (J) this array will contain a number 1. VLOOKUP thus looks if there is a number 1 in that array. If it exists it will return 1, if not #NA!. To get rid of the #NA! error, I wrapped the formula in an IFERROR. So, now the outcome is either 1 or zero.

The IF function then tests this outcome. IF 1 then calculate handicap based on "rules for same winner" else calculate handicap based on "rules for a different winner." Each of the handicap calculations use CHOOSE. It takes the result (1,2 or 3) and chooses the relevant handicap adjustment (0,1,2 for same winner) or (-2,-1,0 for different winner). Is a runner has no top three result an error will occur. Similarly to what I described before, the IFERROR function then captures the error and the handicap adjustment becomes 3 or 2 respectively.

Finally, I multiply the whole lot by the attendance number (1 or 0) to make sure that the handicap is adjusted only if the runner took part in the current race.

Hopefully, this helps you understand the formula and resolve your problem. Perhaps, by adjusting the values to choose from in case the winner is the same.

 

Highlighted

@Riny_van_Eekelen Thanks for your explanation.

I have changed one thing on the first Choose option from 0,1,2 to -2,1,2.

One thing I do not understand is that according to the 'same winner again' scenario, the attached image should have shown the hcp+/- Z column as such;

  • Row 15  -  3
  • Row 16  -  -2 (winner)
  • Row 17  -  1 (second)
  • Row 18  -  2 (third)
  • Row 19  -  3
  • Row 20  -  3

To my very simplistic eye, it appears that the formula only reads into the 'same winner' and negates the other placings, therefore using the standard formula of seconds back 1, thirds back 2, and remainder forward 2.

 

Have I missed something crucial here, or am I just oblivious?

 

Many thanks.

 

 

Highlighted

@Neilo420 I applied the change you indicated in the "same winner" calculation, and arrive to the desired handicap adjustment. Please see the attached file and the picture below.

Screenshot 2020-11-02 at 05.55.05.png

By the way, the formulae in columns R, Y and AF now also include a test that sees to it that the handicap can not go below 0, as I believe that was also one of your requirements from reading your original formulae. I had already included a test to maximise the handicap to 30.

Highlighted
@Riny_van_Eekelen - Thank you Sir!
Your adjustments have worked on my end too and all the calculations work.

You sir, are a scholar and a gentleman.

Many thanks once again for all of your help here.

Best regards,
Neil.
Highlighted

@Neilo420 You're welcome Sir!

Glad we could work it out.

Highlighted

@Riny_van_Eekelen Hello again.

So - very excited that the formula is working well on your spreadsheet, but when transposing across to my spreadsheet, I have had to tweak it again ever so slightly.

Because I use two seperate pages for my points and results, I have had to link the data from the points page, back to the results page. By doing this, I have lost the 'winner wins again' part (or more likely, I have not linked the correct part to the equation). May I trouble you to please relook at my mess?

 

I have attached a 2 page workbook for you to have a look at.

The part in question is under Track Points AE, whereas AE-8 should read +1, AE-7 should read +2, and the others (apart from AE-4) should read +3

 

Thanks again Riny.

 

P.S. - why have I linked back to Track Results?

Because on Track Points the data isn't 1, 2, 3 as in the results, it is the actual points for placing, i.e., 1st = 5 points, 2nd = 3 points, & 3rd = 1 point.

Highlighted

@Neilo420 Please see attached. Note that I also change the "Points" formula to a CHOOSE function. Much easier. It was already in my original file, but perhaps you overlooked it. I also lined-up the Points and Results schedules (i.e. made sure that the blocks of data for each event are starting in the same column. That makes it easier to write/maintain formulae and copy them across.

Highlighted

@Riny_van_Eekelen It works!!!
Thank you so much. The problem was the Array Formula - I use a Mac, so I transferred the working spreadsheet to a PC and used the 'shift+ctrl+enter' trick, and it worked!!
Thank you and I really appreciate what you have done to help me by figuring this out.
You are a true Guru!!

 

P.S. I tried to find what the equivalent of 'shift+ctrl+enter' would be for Mac, and it didn't work for what ever reason. I came across someone advising you need to use 'shift+command+return', but that didn't seem to work... oh well.