Home

comparing cell values to determine which is highest, then returning the name assocaited with it

%3CLINGO-SUB%20id%3D%22lingo-sub-901681%22%20slang%3D%22en-US%22%3Ecomparing%20cell%20values%20to%20determine%20which%20is%20highest%2C%20then%20returning%20the%20name%20assocaited%20with%20it%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-901681%22%20slang%3D%22en-US%22%3E%3CP%3EOkay%2C%20so%20I've%20exhausted%20everything%20I%20can%20find%20and%20I'm%20still%20nowhere%20on%20this.%20The%20problem%20is%20this%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EPart%201%3A%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20200px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F136055i9DE2E6BA98E710A1%2Fimage-size%2Fsmall%3Fv%3D1.0%26amp%3Bpx%3D200%22%20alt%3D%22Capture.PNG%22%20title%3D%22Capture.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20formula%20to%20look%20at%20both%20A2%20and%20B2%20to%20determine%20which%20is%20highest%2C%20then%20in%20C2%20output%20the%20'header'%20for%20the%20winner.%20In%20the%20example%20above%2C%20%22Yellow%22%20for%20C2%2C%20%22Blue%22%20for%20C3%20etc.%20To%20add%20an%20additional%20twist%2C%20the%20minimum%20'winner'%20would%20need%20to%20be%20above%20the%20number%201000.%20If%20below%20then%20return%20something%20like%2C%20%22no%20winner%22%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20also%20require%20the%20opposite%2C%20which%20I%20guess%20would%20be%20simple%20to%20work%20out%20once%20the%20above%20is%20figured%20out%2C%20whereby%20it%20would%20display%20to%20the%20biggest%20loser%2C%20but%20this%20time%20with%20a%20maximum%20return%20value%20of%201000%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EPart%202%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3ENow%20to%20add%20a%20twist%20of%20lemon%20to%20the%20cocktail.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20200px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F136057i8754030C9818B586%2Fimage-size%2Fsmall%3Fv%3D1.0%26amp%3Bpx%3D200%22%20alt%3D%22Capture.PNG%22%20title%3D%22Capture.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3ESame%20as%20above%2C%20however%2C%20this%20time%20it%20takes%20a%20mean%20average%20of%20all%20entries%20in%20a%20row%20with%20a%20%221%22%20associated%20with%20it%20to%20determine%20which%20is%20again%20the%20'winner%2Floser'.%20So%20D2%20would%20simply%20be%20the%20winner%20between%20B2%20and%20C2%2C%20but%20D4%20would%20be%20the%20winner%20between%20the%20average%20of%20B2%20and%20B4%2C%20and%20C2%20and%20C4.%3C%2FP%3E%3CP%3E--%3C%2FP%3E%3CP%3EI%20have%20looked%20high%20and%20low%2C%20and%20can't%20find%20anything%20on%20it.%20It%20may%20be%20due%20to%20not%20knowing%20the%20parlance%20which%20describes%20the%20issue%20properly%2C%20but%20the%20closest%20I%20can%20find%20is%20some%20kind%20of%20vlookup%20or%20indexing%2C%20which%20doesn't%20seem%20to%20get%20me%20there%20%3CLI-EMOJI%20id%3D%22lia_disappointed-face%22%20title%3D%22%3Adisappointed_face%3A%22%3E%3C%2FLI-EMOJI%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20in%20advance%20to%20anyone%20that%20can%20help%3B%20its%20driving%20me%20up%20the%20wall%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-LABS%20id%3D%22lingo-labs-901681%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-901871%22%20slang%3D%22en-US%22%3ERe%3A%20comparing%20cell%20values%20to%20determine%20which%20is%20highest%2C%20then%20returning%20the%20name%20assocaited%20with%20it%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-901871%22%20slang%3D%22en-US%22%3E%3CP%3EHI%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F422781%22%20target%3D%22_blank%22%3E%40kemble999%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBoth%20scenarios%20of%20%3CSTRONG%3Epart%201%3C%2FSTRONG%3E%20are%20done%20and%20attached%20in%20sample%20file%20for%20your%20reference.%20Please%20let%20me%20know%20if%20it%20works%20as%20desired%20.%3C%2FP%3E%3CP%3EPlease%20elaborate%20more%20the%20second%20part%20of%20your%20requirement%2C%20for%20example%20what%20criteria%20you%20need%20for%20D3%2C%20D5%20or%20D6.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3CP%3ETauqeer%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-901874%22%20slang%3D%22en-US%22%3ERe%3A%20comparing%20cell%20values%20to%20determine%20which%20is%20highest%2C%20then%20returning%20the%20name%20assocaited%20with%20it%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-901874%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F422781%22%20target%3D%22_blank%22%3E%40kemble999%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFor%20such%20sample%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20462px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F136066i37B80ADCF20E1BB9%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22image.png%22%20title%3D%22image.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3Efor%20the%20first%20case%20formula%20could%20be%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3E%3DIF(MAX(A2%3AB2)%26lt%3B1000%2C%20%22no%20winner%22%2C%20INDEX(%24A%241%3A%24B%241%2C(B2%26gt%3BA2)%2B1))%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3Efor%20the%20second%20one%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3E%3DIF(%20MAX(F2%3AG2)%3CMAX%3EAGGREGATE(14%2C6%2C1%2F(%24E%242%3A%24E%246%3D%24E2)*%24F%242%3A%24F%246%2C1))%2B1))%3C%2FMAX%3E%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-902176%22%20slang%3D%22en-US%22%3ERe%3A%20comparing%20cell%20values%20to%20determine%20which%20is%20highest%2C%20then%20returning%20the%20name%20assocaited%20with%20it%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-902176%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F239215%22%20target%3D%22_blank%22%3E%40tauqeeracma%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHey%2C%20Thanks%20for%20taking%20the%20time%20to%20look%20at%20this%2C%20for%20me.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20not%20sure%20your%20solution%20is%20correct.%20I%20changed%20the%20blue%20to%20a%20lower%20value%20than%20the%20yellow%2C%20and%20it%20returned%20no%20winner%20each%20time%2C%20instead%20of%20yellow%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20200px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F136073i05D47CD28EF3E82F%2Fimage-size%2Fsmall%3Fv%3D1.0%26amp%3Bpx%3D200%22%20alt%3D%22Capture.PNG%22%20title%3D%22Capture.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EAs%20for%20part%202%2C%20it%20is%20essentially%20the%20same%20problem%2C%20however%20it%20is%20looking%20at%20an%20aggregate%20of%20numbers%2C%20rather%20than%20just%20one%20number%20to%20compare.%20To%20reword%20it%2C%20instead%20of%201%2C2%20lets%20call%20them%20Q1%2C%20Q2%2C%20Q3%2C%20Q4%20of%20a%20year%20for%20example.%20I%20want%20to%20look%20at%20what%20the%20average%20'Blue'%20number%20was%20in%20say%20'Q1'%20going%20back%20in%20time%2C%20and%20compare%20that%20against%20its%20'Yellow'%20counterpart%20to%20determine%20which%20is%20higher%2Flower.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20167px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F136075iBC83952376369E18%2Fimage-size%2Fsmall%3Fv%3D1.0%26amp%3Bpx%3D200%22%20alt%3D%22Capture.PNG%22%20title%3D%22Capture.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3ESo%20in%20the%20image%20above%2C%20I've%20highlighted%20Q1%20for%20the%20sake%20of%20ease.%20so%20in%20cell%20D1%2C%20it%20would%20just%20be%20the%20winner%20between%20B2%20and%20C2%2C%20which%20is%20Blue%20(and%20loser%20in%20the%20opposite%20condition).%20when%20we%20get%20to%20cell%20D6%2C%20it%20would%20then%20be%20the%20mean%20average%20of%20B2%20and%20B6%20vs%20the%20mean%20average%20of%20C2%20and%20C6.%20Then%20in%20cell%20D10%2C%20it%20would%20be%20the%20average%20of%20B2%2C%20B6%20and%20B10%2C%20vs%20C2%2C%20C6%2C%20C10%20ad%20nauseam.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDo%20let%20me%20know%20if%20that%20makes%20more%20sense%2C%20and%20thanks%20again%20for%20your%20time%20on%20this!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-902207%22%20slang%3D%22en-US%22%3ERe%3A%20comparing%20cell%20values%20to%20determine%20which%20is%20highest%2C%20then%20returning%20the%20name%20assocaited%20with%20it%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-902207%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F521%22%20target%3D%22_blank%22%3E%40Sergei%20Baklan%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20for%20looking%20at%20this%20problem%20for%20me.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20your%20solution%20for%20part%202%2C%20there%20are%20two%20instances%20of%20no%20winners%2C%20when%20there%20is%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20200px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F136077i36D50D17EF2DFF90%2Fimage-size%2Fsmall%3Fv%3D1.0%26amp%3Bpx%3D200%22%20alt%3D%22Capture.PNG%22%20title%3D%22Capture.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EH2%20would%20show%20yellow%20as%20the%20winner%20as%20being%20higher%20than%20blue%201183%20vs%201001%2C%20and%20the%20same%20for%20H3%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDo%20let%20me%20know%20if%20I%20need%20to%20expound%20on%20my%20explanation%20of%20the%20problem%2C%20and%20thanks%20again%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-902208%22%20slang%3D%22en-US%22%3ERe%3A%20comparing%20cell%20values%20to%20determine%20which%20is%20highest%2C%20then%20returning%20the%20name%20assocaited%20with%20it%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-902208%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F422781%22%20target%3D%22_blank%22%3E%40kemble999%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20general%2C%20better%20if%20you%20attach%20your%20sample%20file%20to%20the%20post%20together%20with%20screenshorts%20-%20you'll%20save%20time%20for%20the%20people%20who%20are%20answering%20on%20generating%20new%20test%20file%20copying%20your%20data%20from%20the%20screen%20into%20Excel%20sheet.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-901885%22%20slang%3D%22en-US%22%3ERe%3A%20comparing%20cell%20values%20to%20determine%20which%20is%20highest%2C%20then%20returning%20the%20name%20assocaited%20with%20it%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-901885%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F422781%22%20target%3D%22_blank%22%3E%40kemble999%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHi%3C%2FP%3E%3CP%3EPlease%20take%20a%20look%20at%20attached%20file%20which%20hopefully%20covers%20both%20cases%20(part%201%20and%20part%202).%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fkteamch-my.sharepoint.com%2F%3Ax%3A%2Fg%2Fpersonal%2Fpascal_kiefer_kteam_ch%2FERyix6L1a2BOr74NSmaZxjABlX0mzT_DpgSZEaF2uCcF9A%3Fe%3D0ufQlc%26amp%3BDownload%3D1%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EFile%3C%2FA%3E%3C%2FP%3E%3CP%3ELet%20me%20know%20if%20this%20solved%20the%20issue%20or%20if%20I%20misunderstood%20your%20requirement%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-902214%22%20slang%3D%22en-US%22%3ERe%3A%20comparing%20cell%20values%20to%20determine%20which%20is%20highest%2C%20then%20returning%20the%20name%20assocaited%20with%20it%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-902214%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F422781%22%20target%3D%22_blank%22%3E%40kemble999%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWhen%20I%20misunderstood%20your%20logic.%20In%20second%20case%20I%20checked%20all%20pairs%20marked%20as%201%20(or%202%2C%20etc.)%2C%20found%20among%20them%20highest%20result%20and%20for%20this%20pair%20return%20the%20winner.%20All%20other%20%221%22%20pairs%20are%20not%20winners.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-902218%22%20slang%3D%22en-US%22%3ERe%3A%20comparing%20cell%20values%20to%20determine%20which%20is%20highest%2C%20then%20returning%20the%20name%20assocaited%20with%20it%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-902218%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F422781%22%20target%3D%22_blank%22%3E%40kemble999%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EStill%20not%20sure%20I%20understood%20the%20issue%2C%20does%20attached%20file%20do%20the%20job%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-902224%22%20slang%3D%22en-US%22%3ERe%3A%20comparing%20cell%20values%20to%20determine%20which%20is%20highest%2C%20then%20returning%20the%20name%20assocaited%20with%20it%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-902224%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F422482%22%20target%3D%22_blank%22%3E%40PascalKTeam%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHey%2C%20and%20thanks%20for%20helping%20me%20on%20this%20problem.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20think%20its%20almost%20correct%2C%20however%2C%20every%20other%20cell%20under%20E%20is%20empty%3F%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20200px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F136082i7BFF391FFFBF20F8%2Fimage-size%2Fsmall%3Fv%3D1.0%26amp%3Bpx%3D200%22%20alt%3D%22Capture.PNG%22%20title%3D%22Capture.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-902260%22%20slang%3D%22en-US%22%3ERe%3A%20comparing%20cell%20values%20to%20determine%20which%20is%20highest%2C%20then%20returning%20the%20name%20assocaited%20with%20it%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-902260%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F422781%22%20target%3D%22_blank%22%3E%40kemble999%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ei%20thought%20part%202%20was%20only%20for%20rows%20which%20are%20marked%20with%20%221%22.%20But%20then%20it's%20the%20same%20for%20the%20rows%20with%20%222%22.%20Check%20out%20the%20new%20file%20and%20see%20if%20it%20works%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-902244%22%20slang%3D%22en-US%22%3ERe%3A%20comparing%20cell%20values%20to%20determine%20which%20is%20highest%2C%20then%20returning%20the%20name%20assocaited%20with%20it%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-902244%22%20slang%3D%22en-US%22%3ENoted%2C%20Thanks%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-902302%22%20slang%3D%22en-US%22%3ERe%3A%20comparing%20cell%20values%20to%20determine%20which%20is%20highest%2C%20then%20returning%20the%20name%20assocaited%20with%20it%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-902302%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F422781%22%20target%3D%22_blank%22%3E%40kemble999%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAs%20far%20as%20the%20first%20part%20is%20concerned%20it%20is%20showing%20'no%20winner'%20in%20all%20cases%20because%20of%20the%20below%20condition%20that%20you%20mentioned%20in%20in%20your%20first%20post%2C%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3E%3CFONT%20color%3D%22%230000FF%22%3E'the%20minimum%20'winner'%20would%20need%20to%20be%20above%20the%20number%201000.%20If%20below%20then%20return%20something%20like%2C%20%22no%20winner%22%3C%2FFONT%3E%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20you%20simply%20input%201001%2C%20it%20will%20show%20Yellow%20as%20winner%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20280px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F136085iC1DB11E7AE226B7E%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22Part_1.JPG%22%20title%3D%22Part_1.JPG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CDIV%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%3CP%3EThanks%3C%2FP%3E%3CDIV%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-902323%22%20slang%3D%22en-US%22%3ERe%3A%20comparing%20cell%20values%20to%20determine%20which%20is%20highest%2C%20then%20returning%20the%20name%20assocaited%20with%20it%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-902323%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F422482%22%20target%3D%22_blank%22%3E%40PascalKTeam%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20200px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F136087i9A5EC0363A86D03D%2Fimage-size%2Fsmall%3Fv%3D1.0%26amp%3Bpx%3D200%22%20alt%3D%22Capture.PNG%22%20title%3D%22Capture.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3ECouple%20observations.%20I%20changed%20the%20first%20set%20to%20below%201000%20each%2C%20and%20yet%20yellow%20is%20showing%20as%20the%20winner%20still%20in%20part%202%20rather%20than%20no%20winner.%20Also%2C%20how%20would%20the%20formula%20look%20to%20show%20the%20opposite%2C%20ie%20the%20lowest%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20application%2C%20I%20will%20be%20looking%20to%20put%20this%20across%20maybe%20100%20different%20inputs%20(blue%2C%20yellow%2C%20etc)%20and%20I'm%20essentially%20looking%20for%20the%20highest%20colour%20from%201000%20and%20the%20lowest%20colour%20from%201000.%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-902328%22%20slang%3D%22en-US%22%3ERe%3A%20comparing%20cell%20values%20to%20determine%20which%20is%20highest%2C%20then%20returning%20the%20name%20assocaited%20with%20it%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-902328%22%20slang%3D%22en-US%22%3EAh%2C%20I%20think%20there%20has%20been%20a%20misunderstanding.%20The%20winning%20entry%20so%20to%20speak%20must%20be%20above%20the%201000%20mark%20to%20be%20the%20winner%2C%20but%20what%20its%20comparing%20against%20could%20very%20well%20be%20below%201000%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-902386%22%20slang%3D%22en-US%22%3ERe%3A%20comparing%20cell%20values%20to%20determine%20which%20is%20highest%2C%20then%20returning%20the%20name%20assocaited%20with%20it%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-902386%22%20slang%3D%22en-US%22%3EHi%2C%3CBR%20%2F%3E%3CBR%20%2F%3EIts%20still%20showing%20no%20winner%20if%20yellow%20is%20below%201000.%20I've%20looked%20at%20your%20formula%2C%20and%20to%20be%20honest%2C%20I%20don't%20know%20where%20to%20start%20to%20adjust%20it!%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-904732%22%20slang%3D%22en-US%22%3ERe%3A%20comparing%20cell%20values%20to%20determine%20which%20is%20highest%2C%20then%20returning%20the%20name%20assocaited%20with%20it%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-904732%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F422781%22%20target%3D%22_blank%22%3E%40kemble999%3C%2FA%3E%2C%26nbsp%3B%3C%2FP%3E%3CP%3ETo%20enhance%20the%20flavor%20of%20your%20cocktail%2C%20I%20added%20a%20red%20color%20in%20the%20attached%20file.%20The%20formula%20in%20D3%20is%3A%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3E%3DIF(MAX(A3%3AC3)%26gt%3BD%241%2C%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3ELOOKUP(2%2C1%2F(FREQUENCY(0%2C1%2FA3%3AC3))%2CA%242%3AC%242)%2C%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3E%22None%22)%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EConversely%2C%20the%20array%20formula%20(entered%20with%20Ctrl%2BShift%2BEnter)%20in%20J3%20is%3A%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3E%3DIF(MAX(MMULT(TRANSPOSE(--(F%243%3AF3%3DF3))%2CG%243%3AI3))%26gt%3BJ%241%2C%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3ELOOKUP(2%2C1%2F(FREQUENCY(0%2C1%2FMMULT(TRANSPOSE(--(F%243%3AF3%3DF3))%2CG%243%3AI3)))%2CG%242%3AI%242)%2C%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3E%22None%22)%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3ENote%20that%20the%20values%20in%20K7%3AM14%20were%20presented%20only%20for%20verification%20purposes.%20Thus%2C%20they%20are%20not%20referred%20to%20in%20the%20foregoing%20formula.%26nbsp%3B%3C%2FP%3E%3CP%3ECheers%2C%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F280482%22%20target%3D%22_blank%22%3E%40Twifoo%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-902380%22%20slang%3D%22en-US%22%3ERe%3A%20comparing%20cell%20values%20to%20determine%20which%20is%20highest%2C%20then%20returning%20the%20name%20assocaited%20with%20it%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-902380%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F422781%22%20target%3D%22_blank%22%3E%40kemble999%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOK%20the%201000%20rules%20also%20needs%20to%20be%20in%20part%202%2C%20I%20didn't%20know.%20Find%20attached%20the%20new%20version.%3C%2FP%3E%3CP%3EIf%20this%20is%20anything%20close%20to%20the%20result%20you%20would%20like%20to%20have%20maybe%20you%20can%20try%20to%20do%20the%20finetuning%20of%20the%20formulare%20yourself%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
kemble999
Occasional Contributor

Okay, so I've exhausted everything I can find and I'm still nowhere on this. The problem is this:

 

Part 1:

 

Capture.PNG

 

The formula to look at both A2 and B2 to determine which is highest, then in C2 output the 'header' for the winner. In the example above, "Yellow" for C2, "Blue" for C3 etc. To add an additional twist, the minimum 'winner' would need to be above the number 1000. If below then return something like, "no winner"

 

I also require the opposite, which I guess would be simple to work out once the above is figured out, whereby it would display to the biggest loser, but this time with a maximum return value of 1000

 

Part 2

Now to add a twist of lemon to the cocktail.

Capture.PNG

Same as above, however, this time it takes a mean average of all entries in a row with a "1" associated with it to determine which is again the 'winner/loser'. So D2 would simply be the winner between B2 and C2, but D4 would be the winner between the average of B2 and B4, and C2 and C4.

--

I have looked high and low, and can't find anything on it. It may be due to not knowing the parlance which describes the issue properly, but the closest I can find is some kind of vlookup or indexing, which doesn't seem to get me there

 

Thank you in advance to anyone that can help; its driving me up the wall

 

 

 

17 Replies

HI@kemble999 

 

Both scenarios of part 1 are done and attached in sample file for your reference. Please let me know if it works as desired .

Please elaborate more the second part of your requirement, for example what criteria you need for D3, D5 or D6. 

 

Thanks

Tauqeer

@kemble999 

For such sample

image.png

for the first case formula could be

=IF(MAX(A2:B2)<1000, "no winner", INDEX($A$1:$B$1,(B2>A2)+1))

for the second one

=IF( MAX(F2:G2)<MAX(AGGREGATE(14,6,1/($E$2:$E$6=$E2)*$G$2:$G$6,1),AGGREGATE(14,6,1/($E$2:$E$6=$E2)*$F$2:$F$6,1))+(MAX(F2:G2)<1000), "no winner", INDEX(F$1:G$1,(AGGREGATE(14,6,1/($E$2:$E$6=$E2)*$G$2:$G$6,1)>AGGREGATE(14,6,1/($E$2:$E$6=$E2)*$F$2:$F$6,1))+1))

@kemble999 

 

Hi

Please take a look at attached file which hopefully covers both cases (part 1 and part 2). 

File

Let me know if this solved the issue or if I misunderstood your requirement

@tauqeeracma 

 

Hey, Thanks for taking the time to look at this, for me.

 

I'm not sure your solution is correct. I changed the blue to a lower value than the yellow, and it returned no winner each time, instead of yellow

Capture.PNG

As for part 2, it is essentially the same problem, however it is looking at an aggregate of numbers, rather than just one number to compare. To reword it, instead of 1,2 lets call them Q1, Q2, Q3, Q4 of a year for example. I want to look at what the average 'Blue' number was in say 'Q1' going back in time, and compare that against its 'Yellow' counterpart to determine which is higher/lower.

Capture.PNG

So in the image above, I've highlighted Q1 for the sake of ease. so in cell D1, it would just be the winner between B2 and C2, which is Blue (and loser in the opposite condition). when we get to cell D6, it would then be the mean average of B2 and B6 vs the mean average of C2 and C6. Then in cell D10, it would be the average of B2, B6 and B10, vs C2, C6, C10 ad nauseam.

 

Do let me know if that makes more sense, and thanks again for your time on this!

@Sergei Baklan 

 

Thank you for looking at this problem for me.

 

In your solution for part 2, there are two instances of no winners, when there is:

Capture.PNG

H2 would show yellow as the winner as being higher than blue 1183 vs 1001, and the same for H3

 

Do let me know if I need to expound on my explanation of the problem, and thanks again

@kemble999 

In general, better if you attach your sample file to the post together with screenshorts - you'll save time for the people who are answering on generating new test file copying your data from the screen into Excel sheet.

@kemble999 

When I misunderstood your logic. In second case I checked all pairs marked as 1 (or 2, etc.), found among them highest result and for this pair return the winner. All other "1" pairs are not winners.

@kemble999 

 

Still not sure I understood the issue, does attached file do the job?

@PascalKTeam 

 

Hey, and thanks for helping me on this problem.

 

I think its almost correct, however, every other cell under E is empty?

Capture.PNG

@kemble999 

 

i thought part 2 was only for rows which are marked with "1". But then it's the same for the rows with "2". Check out the new file and see if it works

 

Hi @kemble999 

 

As far as the first part is concerned it is showing 'no winner' in all cases because of the below condition that you mentioned in in your first post, 

'the minimum 'winner' would need to be above the number 1000. If below then return something like, "no winner"

 

If you simply input 1001, it will show Yellow as winner

Part_1.JPG

 
 

Thanks

 
 
 

 

@PascalKTeam 

 

Capture.PNG

Couple observations. I changed the first set to below 1000 each, and yet yellow is showing as the winner still in part 2 rather than no winner. Also, how would the formula look to show the opposite, ie the lowest?

 

In application, I will be looking to put this across maybe 100 different inputs (blue, yellow, etc) and I'm essentially looking for the highest colour from 1000 and the lowest colour from 1000.

 

 

Ah, I think there has been a misunderstanding. The winning entry so to speak must be above the 1000 mark to be the winner, but what its comparing against could very well be below 1000

@kemble999 

 

OK the 1000 rules also needs to be in part 2, I didn't know. Find attached the new version.

If this is anything close to the result you would like to have maybe you can try to do the finetuning of the formulare yourself

Hi,

Its still showing no winner if yellow is below 1000. I've looked at your formula, and to be honest, I don't know where to start to adjust it!

Hi @kemble999

To enhance the flavor of your cocktail, I added a red color in the attached file. The formula in D3 is: 

=IF(MAX(A3:C3)>D$1,
LOOKUP(2,1/(FREQUENCY(0,1/A3:C3)),A$2:C$2),
"None")

Conversely, the array formula (entered with Ctrl+Shift+Enter) in J3 is: 

=IF(MAX(MMULT(TRANSPOSE(--(F$3:F3=F3)),G$3:I3))>J$1,
LOOKUP(2,1/(FREQUENCY(0,1/MMULT(TRANSPOSE(--(F$3:F3=F3)),G$3:I3))),G$2:I$2),
"None")

Note that the values in K7:M14 were presented only for verification purposes. Thus, they are not referred to in the foregoing formula. 

Cheers, 

@Twifoo 

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
46 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
30 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
13 Replies