SOLVED

'If' statement help needed

%3CLINGO-SUB%20id%3D%22lingo-sub-1193292%22%20slang%3D%22en-US%22%3E'If'%20statement%20help%20needed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1193292%22%20slang%3D%22en-US%22%3E%3CP%3EWhat%20I%20trying%20to%20do%20may%20not%20be%20possible.%20I%20use%20the%20statement%20below%20to%20indicate%20what%20I%20want%20to%20do%20rather%20than%20being%20an%20accurate%20formula.%20What%20I%20need%20to%20to%20test%20a%20cell%20for%20a%20value%20(first%20set%26nbsp%3B%20of%20brackets)%20and%20if%20its%20true%20execute%20the%20activity%20in%20the%20second%20set%20brackets%20and%20if%20not%20execute%20the%20activity%20in%20the%20third%20set%20of%20brackets.%20So%20my%20example%20is%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3DIF('Start%20Sheet'!B5%3D'L')THEN('Score%20Input'!%24D%243%26gt%3B%3D'Course%20Card'!B%2411%2C1%2C0)ELSE('Score%20Input'!%24D%243%26gt%3B%3D'Course%20Card'!B%246%2C1%2C0)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%20any%20takers%3F%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1193292%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1193318%22%20slang%3D%22en-US%22%3ERe%3A%20'If'%20statement%20help%20needed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1193318%22%20slang%3D%22en-US%22%3EIn%20Excel%20this%20would%20read%20as%3A%3CBR%20%2F%3E%3CBR%20%2F%3E%3DIF('Start%20Sheet'!B5%3D%22L%22%2C%20IF('Score%20Input'!%24D%243%26gt%3B%3D'Course%20Card'!B%2411%2C%201%2C%200)%2C%20IF('Score%20Input'!%24D%243%26gt%3B%3D'Course%20Card'!B%246%2C%201%2C%200))%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1193326%22%20slang%3D%22en-US%22%3ERe%3A%20'If'%20statement%20help%20needed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1193326%22%20slang%3D%22en-US%22%3EYour%20example%20does%20not%20tell%20me%20what%20you%20need%20exactly.%20Can%20you%20just%20explain%20in%20words%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1193519%22%20slang%3D%22en-US%22%3ERe%3A%20'If'%20statement%20help%20needed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1193519%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F22322%22%20target%3D%22_blank%22%3E%40Jan%20Karel%20Pieterse%3C%2FA%3E%3C%2FP%3E%3CP%3EHi%20Jan%2C%20yes%2C%20sure.%20Thanks%20for%20coming%20back%20to%20me.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20example%20used%20here%20is%20more%20from%20by%20Basic%20programming%20days%20I%20guess%20in%20concept.%20Here%20is%20the%20formula%20again%3A%3C%2FP%3E%3CP%3E%3DIF('Start%20Sheet'!B5%3D'L')THEN('Score%20Input'!%24D%243%26gt%3B%3D'Course%20Card'!B%2411%2C1%2C0)ELSE('Score%20Input'!%24D%243%26gt%3B%3D'Course%20Card'!B%246%2C1%2C0)%3C%2FP%3E%3CP%3EThe%20actual%20excel%20example%20may%20possibly%20be%20more%20like%3A%3C%2FP%3E%3CP%3E%3DIF('Start%20Sheet'!B5%3D'L')%2C('Score%20Input'!%24D%243%26gt%3B%3D'Course%20Card'!B%2411%2C1%2C0)%2C('Score%20Input'!%24D%243%26gt%3B%3D'Course%20Card'!B%246%2C1%2C0)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20created%20a%20golf%20scoring%20spreadsheet%20already%20(and%20working%20fine)%20only%20to%20find%20that%20if%20ladies%20have%20different%20Stroke%20Indexes%20on%20holes%20and%20different%20pars.%20So%20if%20the%20person%20is%20a%20lady%20then%20I%20have%20to%20do%20a%20the%20same%20calculation%20but%20from%20a%20different%20table%20to%20produce%20a%20correct%20points%20calculation.%20So%20if%20the%20person%20is%20a%20lady%20I%20will%20enter%20'L'%20in%20Start%20Sheet!B5.%20If%20B5%20%3D%20L%20I%20will%20have%20to%20go%20to%20the%20ladies%20table%20(Course%20Card'!B%2411)%20to%20calculate%20the%20score%20from%20the%20ladies%20card.%20If%20there%20is%20no%20'L'%20in%26nbsp%3BStart%20Sheet!B5%20then%20the%20calculation%20will%20be%20performed%20against%20the%20men's%20table%26nbsp%3B'Course%20Card'!B%246.%20Does%20that%20make%20sense%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1193528%22%20slang%3D%22en-US%22%3ERe%3A%20'If'%20statement%20help%20needed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1193528%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F567670%22%20target%3D%22_blank%22%3E%40Ollie1785%3C%2FA%3E%26nbsp%3BDid%20you%20check%20my%20reply%3F%26nbsp%3B%20I%20think%20I%20already%20posted%20a%20solution.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1193535%22%20slang%3D%22en-US%22%3ERe%3A%20'If'%20statement%20help%20needed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1193535%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F567670%22%20target%3D%22_blank%22%3E%40Ollie1785%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20it%20possible%20for%20you%20to%20upload%20a%20sample%20of%20the%20spreadsheet%20or%20workbook%20you%20are%20working%20with%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20ask%20because%20I%20have%20a%20sense%20that%20there%20may%20be%20another%20way%20to%20do%20this%2C%20using%20a%20%3CSTRONG%3ETable%3C%2FSTRONG%3E%20for%20some%20of%20the%20data%2C%20and%20one%20of%20the%20various%20%3CSTRONG%3ELOOKUP%3C%2FSTRONG%3E%20functions%20rather%20than%20the%20conditional%20%3CSTRONG%3EIF%3C%2FSTRONG%3E%20formulation.%20Especially%20if%20some%20day%20you%20are%20going%20to%20want%20to%20incorporate%20individual%20handicaps%20into%20this%20scoring%20sheet....%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20potential%20weakness%20of%20using%20the%20IF%20function%20at%20the%20heart%20here%20is%20that%20you%20might%20end%20up%20hard-coding%20some%20variables%20that%20would%20become%20harder%20to%20maintain%20over%20the%20long%20term.%20That's%20only%20a%20potential%20problem%2C%20so%20I%20don't%20mean%20to%20over-emphasize%20it.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1193623%22%20slang%3D%22en-US%22%3ERe%3A%20'If'%20statement%20help%20needed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1193623%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F544433%22%20target%3D%22_blank%22%3E%40Savia%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20Savia%2C%20I'll%20check%20it%20out%20and%20let%20you%20know%20if%20it%20does%20the%20job!!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERegards%3C%2FP%3E%3CP%3EKeith%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1193637%22%20slang%3D%22en-US%22%3ERe%3A%20'If'%20statement%20help%20needed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1193637%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F425987%22%20target%3D%22_blank%22%3E%40mathetes%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHi%20Mathetes%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20ys%20I%20was%20wondering%20about%20Lookup.%20HLOOKUP%20could%20work.%20What%20is%20the%20best%20way%20to%20upload%20the%20spreadsheet%3F%20I%20am%20a%20bit%20of%20a%20novice%20in%20this%20group.%20Should%20I%20do%20it%20on%20something%20like%20dropbox%20or%20is%20there%20a%20facility%20within%20this%20group%20to%20do%20it%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERegards%3C%2FP%3E%3CP%3EKeith%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1193657%22%20slang%3D%22en-US%22%3ERe%3A%20'If'%20statement%20help%20needed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1193657%22%20slang%3D%22en-US%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F567670%22%20target%3D%22_blank%22%3E%40Ollie1785%3C%2FA%3E%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%20data-unlink%3D%22true%22%3ETo%20attach%20a%20workbook%2C%20click%20reply%20then%20at%20the%20bottom%20you%20will%20see%20%22%3CSPAN%3EDrag%20and%20drop%20here%20or%26nbsp%3B%3C%2FSPAN%3Ebrowse%26nbsp%3B%3CSPAN%3Efiles%20to%20attach%22%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1195362%22%20slang%3D%22en-US%22%3ERe%3A%20'If'%20statement%20help%20needed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1195362%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F360420%22%20target%3D%22_blank%22%3E%40PReagan%3C%2FA%3E%26nbsp%3Byes%20thanks%20I%20think%20LOOKUP%20may%20well%20make%20things%20a%20bit%20easier.%20I%20set%20this%20file%20up%20using%20my%20rather%20rusty%20Excel%20skills%20so%20its%20pretty%20basic%20I%20think%20in%20structure.%20File%20is%20attached.%20Thanks%20for%20looking%20at%20it.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1195363%22%20slang%3D%22en-US%22%3ERe%3A%20'If'%20statement%20help%20needed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1195363%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F360420%22%20target%3D%22_blank%22%3E%40PReagan%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EJust%20to%20add%20that%20the%20Calculate%20sheet%20is%20where%20the%20main%20work%20is%20done.%20Parts%20of%20others%20sheets%20are%20locked%20to%20prevent%20over%20typing.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1195463%22%20slang%3D%22en-US%22%3ERe%3A%20'If'%20statement%20help%20needed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1195463%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F567670%22%20target%3D%22_blank%22%3E%40Ollie1785%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOh%20my%2C%20you%20may%20be%20%22rusty%20in%20Excel%20skills%22%20but%20you%20are%20clearly%20using%20more%20than%20the%20most%20basic%20functions.%20So%20far%20as%20layout%20is%20concerned%2C%20however%2C%20what%20you've%20done%20is%20not%20only%20ambitious%20but%20a%20bit%20confusing--as%20can%20happen--for%20somebody%20other%20than%20yourself.%20For%20myself%2C%20I%20just%20don't%20have%20time%20today%20to%20try%20to%20navigate%20through%20all%20the%20different%20relationships%20(even%20while%20realizing%20that%20to%20you%20they're%20obvious%20and%20clear).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBut%20I%20do%20wish%20you%20well...I'll%20have%20this%20in%20the%20back%20of%20my%20mind%20all%20day.%20I%20suspect%20that%20if%20I%20do%20come%20back%20to%20you%2C%20it%20will%20be%20with%20some%20recommendation%20to%20change%20the%20whole%20approach%2C%20changing%20the%20input%20side%20of%20things%20to%20more%20of%20a%20database%20of%20the%20results%20of%20all%20of%20the%20teams'%20rounds%2C%20laid%20out%20as%20a%20simple%20flat%20file%20database%20rather%20than%20as%20a%20visual%20portrayal%20of%20an%20actual%20scorecard.%20That's%20just%20a%20suspicion%2C%20but%20it's%20because%20I'm%20constitutionally%20averse%20to%20pretty%20(but%20less%20functional)%20input%20sheets%3B%20Excel%20is%20really%20good%20at%20extracting%20data%20from%20a%20flat%20file%20database%20(or%20even%20from%20multiple%20but%20related%20flat%20file%20databases--i.e.%2C%20a%20relational%20database)%20but%20we%20make%20it%20hard%20for%20ourselves%20when%20we%20set%20up%20the%20raw%20data%20in%20ways%20that%20mimic%20paper%20(or%20score-card)%20record%20keeping%20methods.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1195592%22%20slang%3D%22en-US%22%3ERe%3A%20'If'%20statement%20help%20needed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1195592%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F567670%22%20target%3D%22_blank%22%3E%40Ollie1785%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBeing%20a%20golfer%20myself%2C%20I%20recognise%20what%20you%20are%20trying%20to%20achieve.%20Based%20on%20the%20Course%20Card%2C%20I%20believe%20you%20made%20the%20scoring%20and%20points%20calculation%20unnecessarily%20complex%20and%20it%20doesn't%20seem%20to%20be%20correct%20either.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20added%20a%20calculation%20example%20below%20the%20Course%20Card%20using%20the%20standard%20formula%20for%20points%20per%20hole%3A%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3EPoints%20%3D%202%20%2B%20Strokes%20received%20-%20Strokes%20Played%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3BIn%20turn%20%22strokes%20received%22%20equals%3A%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3EIf%20Stroke%20Index%20%26gt%3B%3D%20Playing%20Hcp%20THEN%20Strokes%20received%20%3D%20Par%2B1%20ELSE%20Strokes%20received%20%3D%20Par%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3ESince%20your%20score%20card%20has%20different%20Pars%20and%20Stroke%20Indices%20for%20Men%20and%20Ladies%2C%20it%20becomes%20a%20bit%20more%20complicated.%20Hence%2C%20the%20use%20of%20INDIRECT%20and%20INDEX.%3C%2FP%3E%3CP%3EPerhaps%20this%20can%20inspire%20you%20to%20revise%20your%20scoring%20system.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1196257%22%20slang%3D%22en-US%22%3ERe%3A%20'If'%20statement%20help%20needed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1196257%22%20slang%3D%22en-US%22%3EThanks%20Mathetes.%20I%20appreciate%20your%20input%20here.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1269146%22%20slang%3D%22en-US%22%3ERe%3A%20'If'%20statement%20help%20needed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1269146%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F544433%22%20target%3D%22_blank%22%3E%40Savia%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYes%20thanks%20it%20does%20work.%20I%20have%20solved%20the%20issue.%20I%20appreciate%20your%20input.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERegards%3C%2FP%3E%3CP%3E%26nbsp%3B%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-1269156%22%20slang%3D%22en-US%22%3ERe%3A%20'If'%20statement%20help%20needed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1269156%22%20slang%3D%22en-US%22%3EYes%2C%20I%20think%20you%20are%20right.%20I%20have%20it%20working%20now%20with%20'IF'%20statements%2C%20but%20it%20is%20really%20complex%2C%20and%20may%20be%20difficult%20to%20come%20back%20to%20in%20a%20year%20or%20two.%20But%2C%20we%20cant%20play%20golf%20at%20the%20moment%20anyhow%20due%20to%20the%20CoronaVirus%20so%20I'll%20put%20some%20effort%20into%20INDEX%20and%20INDIRECT%20over%20the%20coming%20weeks.%20Thanks%20for%20you%20input....Much%20appreciated.%20Keep%20well!%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

What I trying to do may not be possible. I use the statement below to indicate what I want to do rather than being an accurate formula. What I need to to test a cell for a value (first set  of brackets) and if its true execute the activity in the second set brackets and if not execute the activity in the third set of brackets. So my example is:

 

=IF('Start Sheet'!B5='L')THEN('Score Input'!$D$3>='Course Card'!B$11,1,0)ELSE('Score Input'!$D$3>='Course Card'!B$6,1,0)

 

So any takers? 

Thanks

 

 

15 Replies
Highlighted
Best Response confirmed by Ollie1785 (Occasional Contributor)
Solution
In Excel this would read as:

=IF('Start Sheet'!B5="L", IF('Score Input'!$D$3>='Course Card'!B$11, 1, 0), IF('Score Input'!$D$3>='Course Card'!B$6, 1, 0))
Highlighted
Your example does not tell me what you need exactly. Can you just explain in words?
Highlighted

@Jan Karel Pieterse

Hi Jan, yes, sure. Thanks for coming back to me.

 

The example used here is more from by Basic programming days I guess in concept. Here is the formula again:

=IF('Start Sheet'!B5='L')THEN('Score Input'!$D$3>='Course Card'!B$11,1,0)ELSE('Score Input'!$D$3>='Course Card'!B$6,1,0)

The actual excel example may possibly be more like:

=IF('Start Sheet'!B5='L'),('Score Input'!$D$3>='Course Card'!B$11,1,0),('Score Input'!$D$3>='Course Card'!B$6,1,0)

 

 

I have created a golf scoring spreadsheet already (and working fine) only to find that if ladies have different Stroke Indexes on holes and different pars. So if the person is a lady then I have to do a the same calculation but from a different table to produce a correct points calculation. So if the person is a lady I will enter 'L' in Start Sheet!B5. If B5 = L I will have to go to the ladies table (Course Card'!B$11) to calculate the score from the ladies card. If there is no 'L' in Start Sheet!B5 then the calculation will be performed against the men's table 'Course Card'!B$6. Does that make sense?

Highlighted

@Ollie1785 Did you check my reply?  I think I already posted a solution.

Highlighted

@Ollie1785 

 

Is it possible for you to upload a sample of the spreadsheet or workbook you are working with?

 

I ask because I have a sense that there may be another way to do this, using a Table for some of the data, and one of the various LOOKUP functions rather than the conditional IF formulation. Especially if some day you are going to want to incorporate individual handicaps into this scoring sheet....

 

The potential weakness of using the IF function at the heart here is that you might end up hard-coding some variables that would become harder to maintain over the long term. That's only a potential problem, so I don't mean to over-emphasize it.

Highlighted

@Savia 

 

Thanks Savia, I'll check it out and let you know if it does the job!!

 

Regards

Keith

Highlighted

@mathetes 

 

Hi Mathetes

 

Thanks ys I was wondering about Lookup. HLOOKUP could work. What is the best way to upload the spreadsheet? I am a bit of a novice in this group. Should I do it on something like dropbox or is there a facility within this group to do it?

 

Regards

Keith

Highlighted

Hello @Ollie1785,

 

To attach a workbook, click reply then at the bottom you will see "Drag and drop here or browse files to attach"

Highlighted

@PReagan yes thanks I think LOOKUP may well make things a bit easier. I set this file up using my rather rusty Excel skills so its pretty basic I think in structure. File is attached. Thanks for looking at it.

Highlighted

@PReagan 

 

Just to add that the Calculate sheet is where the main work is done. Parts of others sheets are locked to prevent over typing. 

Highlighted

@Ollie1785 

 

Oh my, you may be "rusty in Excel skills" but you are clearly using more than the most basic functions. So far as layout is concerned, however, what you've done is not only ambitious but a bit confusing--as can happen--for somebody other than yourself. For myself, I just don't have time today to try to navigate through all the different relationships (even while realizing that to you they're obvious and clear).

 

But I do wish you well...I'll have this in the back of my mind all day. I suspect that if I do come back to you, it will be with some recommendation to change the whole approach, changing the input side of things to more of a database of the results of all of the teams' rounds, laid out as a simple flat file database rather than as a visual portrayal of an actual scorecard. That's just a suspicion, but it's because I'm constitutionally averse to pretty (but less functional) input sheets; Excel is really good at extracting data from a flat file database (or even from multiple but related flat file databases--i.e., a relational database) but we make it hard for ourselves when we set up the raw data in ways that mimic paper (or score-card) record keeping methods.

Highlighted

@Ollie1785 

Being a golfer myself, I recognise what you are trying to achieve. Based on the Course Card, I believe you made the scoring and points calculation unnecessarily complex and it doesn't seem to be correct either.

 

I have added a calculation example below the Course Card using the standard formula for points per hole:

Points = 2 + Strokes received - Strokes Played

 In turn "strokes received" equals:

If Stroke Index >= Playing Hcp THEN Strokes received = Par+1 ELSE Strokes received = Par

Since your score card has different Pars and Stroke Indices for Men and Ladies, it becomes a bit more complicated. Hence, the use of INDIRECT and INDEX.

Perhaps this can inspire you to revise your scoring system.

 

Highlighted
Thanks Mathetes. I appreciate your input here.
Highlighted

Hi @Savia

 

Yes thanks it does work. I have solved the issue. I appreciate your input.

 

Regards

 

 

 

Highlighted
Yes, I think you are right. I have it working now with 'IF' statements, but it is really complex, and may be difficult to come back to in a year or two. But, we cant play golf at the moment anyhow due to the CoronaVirus so I'll put some effort into INDEX and INDIRECT over the coming weeks. Thanks for you input....Much appreciated. Keep well!