SOLVED

Using Excel lookup based on multiple criteria

%3CLINGO-SUB%20id%3D%22lingo-sub-103076%22%20slang%3D%22en-US%22%3EUsing%20Excel%20lookup%20based%20on%20multiple%20criteria%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-103076%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20All%2C%3C%2FP%3E%3CP%3EPlease%20help%20me%20as%20i%20am%20frustrated%20to%20the%20point%20of%20giving%20up.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20trying%20to%20use%20excel%20to%20lookup%20a%20value%2C%20based%20on%20that%20value%20look%20with%20another%20cell%20and%20find%20the%20highest%20number%20associated%20to%20that%20said%20value%2C%20and%20output%20the%20value%20froma%20a%20cell%20adjacent%20to%20it.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EEg.%3C%2FP%3E%3CTABLE%3E%3CTBODY%3E%3CTR%3E%3CTD%3EWeek%3C%2FTD%3E%3CTD%3EDate%3C%2FTD%3E%3CTD%3EWorkout%3C%2FTD%3E%3CTD%3ESet%3C%2FTD%3E%3CTD%3ERep%3C%2FTD%3E%3CTD%3EKG%3C%2FTD%3E%3CTD%3ETotal%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3EWeek%201%3C%2FTD%3E%3CTD%3E4%2F09%2F2017%3C%2FTD%3E%3CTD%3EDead%20lift%3C%2FTD%3E%3CTD%3E1%3C%2FTD%3E%3CTD%3E12%3C%2FTD%3E%3CTD%3E20%3C%2FTD%3E%3CTD%3E240%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3EWeek%201%3C%2FTD%3E%3CTD%3E4%2F09%2F2017%3C%2FTD%3E%3CTD%3EOne%20Arm%20Floor%20Press%3C%2FTD%3E%3CTD%3E1%3C%2FTD%3E%3CTD%3E12%3C%2FTD%3E%3CTD%3E15%3C%2FTD%3E%3CTD%3E180%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3EWeek%201%3C%2FTD%3E%3CTD%3E4%2F09%2F2017%3C%2FTD%3E%3CTD%3EBarbell%20Shrug%20(Behind%20Back)%3C%2FTD%3E%3CTD%3E1%3C%2FTD%3E%3CTD%3E12%3C%2FTD%3E%3CTD%3E8.75%3C%2FTD%3E%3CTD%3E105%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3EWeek%201%3C%2FTD%3E%3CTD%3E4%2F09%2F2017%3C%2FTD%3E%3CTD%3EMedow%20Row%3C%2FTD%3E%3CTD%3E1%3C%2FTD%3E%3CTD%3E12%3C%2FTD%3E%3CTD%3E20%3C%2FTD%3E%3CTD%3E240%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3EWeek%201%3C%2FTD%3E%3CTD%3E4%2F09%2F2017%3C%2FTD%3E%3CTD%3ESkull%20Crushers%3C%2FTD%3E%3CTD%3E1%3C%2FTD%3E%3CTD%3E12%3C%2FTD%3E%3CTD%3E10%3C%2FTD%3E%3CTD%3E120%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3EWeek%201%3C%2FTD%3E%3CTD%3E4%2F09%2F2017%3C%2FTD%3E%3CTD%3ESide%20bends%3C%2FTD%3E%3CTD%3E1%3C%2FTD%3E%3CTD%3E12%3C%2FTD%3E%3CTD%3E20%3C%2FTD%3E%3CTD%3E240%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3EWeek%201%3C%2FTD%3E%3CTD%3E4%2F09%2F2017%3C%2FTD%3E%3CTD%3ELying%20Doubble%20Leg%20Raise%3C%2FTD%3E%3CTD%3E1%3C%2FTD%3E%3CTD%3E12%3C%2FTD%3E%3CTD%3E0%3C%2FTD%3E%3CTD%3E0%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3EWeek%201%3C%2FTD%3E%3CTD%3E4%2F09%2F2017%3C%2FTD%3E%3CTD%3ELunges%3C%2FTD%3E%3CTD%3E1%3C%2FTD%3E%3CTD%3E12%3C%2FTD%3E%3CTD%3E0%3C%2FTD%3E%3CTD%3E0%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3EWeek%201%3C%2FTD%3E%3CTD%3E4%2F09%2F2017%3C%2FTD%3E%3CTD%3EStraight%20Arm%20Pulldown%3C%2FTD%3E%3CTD%3E1%3C%2FTD%3E%3CTD%3E12%3C%2FTD%3E%3CTD%3E10.2%3C%2FTD%3E%3CTD%3E122.4%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3EWeek%201%3C%2FTD%3E%3CTD%3E4%2F09%2F2017%3C%2FTD%3E%3CTD%3EFace%20Pull%3C%2FTD%3E%3CTD%3E1%3C%2FTD%3E%3CTD%3E6%3C%2FTD%3E%3CTD%3E13.6%3C%2FTD%3E%3CTD%3E81.6%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3EWeek%201%3C%2FTD%3E%3CTD%3E4%2F09%2F2017%3C%2FTD%3E%3CTD%3EMachine%20Rope%20Hammer%20Curls%3C%2FTD%3E%3CTD%3E1%3C%2FTD%3E%3CTD%3E12%3C%2FTD%3E%3CTD%3E6.8%3C%2FTD%3E%3CTD%3E81.6%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3EWeek%201%3C%2FTD%3E%3CTD%3E4%2F09%2F2017%3C%2FTD%3E%3CTD%3EReverse%20Cable%20Side%20Bends%3C%2FTD%3E%3CTD%3E1%3C%2FTD%3E%3CTD%3E12%3C%2FTD%3E%3CTD%3E10.2%3C%2FTD%3E%3CTD%3E122.4%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3EWeek%201%3C%2FTD%3E%3CTD%3E4%2F09%2F2017%3C%2FTD%3E%3CTD%3ESquats%3C%2FTD%3E%3CTD%3E1%3C%2FTD%3E%3CTD%3E12%3C%2FTD%3E%3CTD%3E25%3C%2FTD%3E%3CTD%3E300%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3EWeek%201%3C%2FTD%3E%3CTD%3E4%2F09%2F2017%3C%2FTD%3E%3CTD%3ESingle%20arm%20Lat%20Pulldowns%3C%2FTD%3E%3CTD%3E1%3C%2FTD%3E%3CTD%3E11%3C%2FTD%3E%3CTD%3E10.2%3C%2FTD%3E%3CTD%3E112.2%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3EWeek%201%3C%2FTD%3E%3CTD%3E4%2F09%2F2017%3C%2FTD%3E%3CTD%3EBench%20Press%20(Supinated%20Grip)%3C%2FTD%3E%3CTD%3E1%3C%2FTD%3E%3CTD%3E11%3C%2FTD%3E%3CTD%3E6%3C%2FTD%3E%3CTD%3E66%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3EWeek%201%3C%2FTD%3E%3CTD%3E4%2F09%2F2017%3C%2FTD%3E%3CTD%3ELandmine%20Later%20Raise%3C%2FTD%3E%3CTD%3E1%3C%2FTD%3E%3CTD%3E12%3C%2FTD%3E%3CTD%3E8.75%3C%2FTD%3E%3CTD%3E105%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3EWeek%201%3C%2FTD%3E%3CTD%3E4%2F09%2F2017%3C%2FTD%3E%3CTD%3EIncline%20Tricep%20Extension%3C%2FTD%3E%3CTD%3E1%3C%2FTD%3E%3CTD%3E8%3C%2FTD%3E%3CTD%3E0%3C%2FTD%3E%3CTD%3E0%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3EWeek%201%3C%2FTD%3E%3CTD%3E4%2F09%2F2017%3C%2FTD%3E%3CTD%3EIncline%20Dumbell%20Curls%3C%2FTD%3E%3CTD%3E1%3C%2FTD%3E%3CTD%3E12%3C%2FTD%3E%3CTD%3E10%3C%2FTD%3E%3CTD%3E120%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3EWeek%201%3C%2FTD%3E%3CTD%3E4%2F09%2F2017%3C%2FTD%3E%3CTD%3EPushups%3C%2FTD%3E%3CTD%3E1%3C%2FTD%3E%3CTD%3E12%3C%2FTD%3E%3CTD%3E10%3C%2FTD%3E%3CTD%3E120%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%3EWeek%202%3C%2FTD%3E%3CTD%3E4%2F09%2F2017%3C%2FTD%3E%3CTD%3EDead%20lift%3C%2FTD%3E%3CTD%3E1%3C%2FTD%3E%3CTD%3E10%3C%2FTD%3E%3CTD%3E50%3C%2FTD%3E%3CTD%3E500%3C%2FTD%3E%3C%2FTR%3E%3C%2FTBODY%3E%3C%2FTABLE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECell%201%3A%20Define%20a%20lookup%20value%3A%20E.g%20%60Dead%20Lift%60%26nbsp%3B%3C%2FP%3E%3CP%3ECell%202%3A%20Based%20on%20the%20lookup%20value%20%60Dead%20Lift%60%20find%20the%20heaviest%20lift%20and%20return%20the%20KG.%3C%2FP%3E%3CP%3ECell%203%3A%20Based%20on%20the%20heaviest%20lift%20KG%20return%20the%20adjacent%26nbsp%3B%60Rep%60%20cell%3C%2FP%3E%3CP%3ECell%204%3A%20Based%20on%20the%20lookup%20value%20%60Dead%20lift%60%20find%20the%20second%20heviest%20lift%20and%20return%20the%20KG%3C%2FP%3E%3CP%3ECell%205%3A%20Based%20on%20the%20second%20heviest%20lift%20%26nbsp%3Bin%20KG%20return%20the%20adjacent%20%60Rep%60%20cell.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20feel%20like%20this%20should%20be%20easy%20but%20i%20am%20having%20to%20much%20trouble%20trying%20to%20do%20this.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20attached%20the%20spreadsheet%20for%20additonal%20reference.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20in%20advance.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-103076%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EFormulas%20%26amp%3B%20Functions%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ENeed%20Help%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-110773%22%20slang%3D%22en-US%22%3ERe%3A%20Using%20Excel%20lookup%20based%20on%20multiple%20criteria%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-110773%22%20slang%3D%22en-US%22%3E%3CP%3ESergei%2C%3C%2FP%3E%3CP%3EThis%20is%20great%2C%20i%20dont%20want%20to%20ask%20to%20much%20of%20you%20and%20so%20as%20long%20as%20it%20is%20working%20I%20am%20very%20greatful.%20It%20all%20looks%20to%20be%20working%20to%20me.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20just%20need%20to%20expand%20the%20forumulas%20to%20include%20alld%20the%20empty%20cells%20below%20to%20include%20future%20data%20entries.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20are%20very%20proficient%20at%20exel%20and%20if%20i%20wore%20a%20hat%20it%20would%20go%20off%20to%20you%20%3CLI-EMOJI%20id%3D%22lia_slightly-smiling-face%22%20title%3D%22%3Aslightly_smiling_face%3A%22%3E%3C%2FLI-EMOJI%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-110595%22%20slang%3D%22en-US%22%3ERe%3A%20Using%20Excel%20lookup%20based%20on%20multiple%20criteria%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-110595%22%20slang%3D%22en-US%22%3E%22I%20feel%20like%20this%20should%20be%20easy%20but%20i%20am%20having%20to%20much%20trouble%20trying%20to%20do%20this.%20%22%3CBR%20%2F%3E%3CBR%20%2F%3Ewhile%20as%20a%20human%20we%20can%20quickly%20get%20to%20pick%20this%20up%20there%20is%20a%20lot%20going%20on%20as%20it%20is%20you%20have%205%20Cell%20rules%20with%20a%20lot%20of%20implied%20logic%20%22the%20second%20heaviest%20left%22%20for%20example.%3CBR%20%2F%3Eand%20as%20you%20can%20see%20in%20some%20of%20the%20%22code%22%20supplied%20this%20is%20what%20Excel%20has%20to%20do%20to%20get%20the%20result%20you%20need.%3CBR%20%2F%3E%3CBR%20%2F%3EI%20think%20you%20should%20consider%20other%20tools%20(excel%20is%20a%20spreadsheet%20not%20a%20database)%20have%20a%20try%20at%20ACCESS%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-110535%22%20slang%3D%22en-US%22%3ERe%3A%20Using%20Excel%20lookup%20based%20on%20multiple%20criteria%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-110535%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20David%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHere%20are%20update%20formulas%2C%20first%20two%20are%20array%20ones%3C%2FP%3E%3CPRE%3ESet%20%20%20Formula%0AHighest%20Rep%20to%20weight%20%7B%3DINDEX(Tracking!%24D%243%3A%24L%244%2C%20MATCH('1RM'!%24C%241%2CTracking!%24C%243%3A%24C%244%2C0)%2CMATCH(LARGE(OFFSET(Tracking!%24D%242%2CMATCH('1RM'!%24C%241%2CTracking!%24C%243%3A%24C%244%2C0)%2C0%2C%2C9)*OFFSET(Tracking!%24D%242%2CMATCH('1RM'!%24C%241%2CTracking!%24C%243%3A%24C%244%2C0)%2C1%2C%2C9)*%7B1%2C0%2C1%2C0%2C1%2C0%2C1%2C0%2C1%7D%2C1)%2COFFSET(Tracking!%24D%242%2CMATCH('1RM'!%24C%241%2CTracking!%24C%243%3A%24C%244%2C0)%2C0%2C%2C9)*OFFSET(Tracking!%24D%242%2CMATCH('1RM'!%24C%241%2CTracking!%24C%243%3A%24C%244%2C0)%2C1%2C%2C9)*%7B1%2C0%2C1%2C0%2C1%2C0%2C1%2C0%2C1%7D%2C0))%7D%0ASecond%20Highest%20Rep%20to%20weight%20%7B%3DINDEX(Tracking!%24D%243%3A%24L%244%2C%20MATCH('1RM'!%24C%241%2CTracking!%24C%243%3A%24C%244%2C0)%2CMATCH(LARGE(OFFSET(Tracking!%24D%242%2CMATCH('1RM'!%24C%241%2CTracking!%24C%243%3A%24C%244%2C0)%2C0%2C%2C9)*OFFSET(Tracking!%24D%242%2CMATCH('1RM'!%24C%241%2CTracking!%24C%243%3A%24C%244%2C0)%2C1%2C%2C9)*%7B1%2C0%2C1%2C0%2C1%2C0%2C1%2C0%2C1%7D%2C2)%2COFFSET(Tracking!%24D%242%2CMATCH('1RM'!%24C%241%2CTracking!%24C%243%3A%24C%244%2C0)%2C0%2C%2C9)*OFFSET(Tracking!%24D%242%2CMATCH('1RM'!%24C%241%2CTracking!%24C%243%3A%24C%244%2C0)%2C1%2C%2C9)*%7B1%2C0%2C1%2C0%2C1%2C0%2C1%2C0%2C1%7D%2C0))%7D%0ARep%20Difference%20%20%3D10-(G26-G27)%0AHighest%20Weight%20%20%3DAGGREGATE(14%2C6%2C1%2F(Tracking!%24C%243%3A%24C%244%3D'1RM'!%24C%241)*Tracking!%24D%243%3A%24L%244*Tracking!%24E%243%3A%24M%244*%7B1%2C0%2C1%2C0%2C1%2C0%2C1%2C0%2C1%2C0%7D%2C1)%0AHighest%20Weight%20per%20Rep%20%3DG29%2FG26%0ASecond%20Highest%20Weight%20%3DAGGREGATE(14%2C6%2C1%2F(Tracking!%24C%243%3A%24C%244%3D'1RM'!%24C%241)*Tracking!%24D%243%3A%24L%244*Tracking!%24E%243%3A%24M%244*%7B1%2C0%2C1%2C0%2C1%2C0%2C1%2C0%2C1%2C0%7D%2C2)%0ASecond%20Highest%20Weight%20per%20Rep%20%3DG31%2FG27%0AWeight%20Difference%20%3DG29-G31%0AKG%20Per%20Rep%20%20%3DG33%2FG28%3C%2FPRE%3E%3CP%3EThey%20are%20in%20attached%20file%20below%20the%20previous%20variant.%20Perhaps%20first%20two%20could%20be%20simplified%2C%20not%20sure%20right%20now%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-110471%22%20slang%3D%22en-US%22%3ERe%3A%20Using%20Excel%20lookup%20based%20on%20multiple%20criteria%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-110471%22%20slang%3D%22en-US%22%3E%3CP%3EDavid%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%20you%20find%20highest%20one%20as%20highest%20(KG*REP)%2C%20not%20as%20highest%20KG.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOkay%2C%20i'll%20try%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-110395%22%20slang%3D%22en-US%22%3ERe%3A%20Using%20Excel%20lookup%20based%20on%20multiple%20criteria%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-110395%22%20slang%3D%22en-US%22%3E%3CP%3ESergei%2C%3CBR%20%2F%3EI%20found%20an%20issues%20that%20I%20was%20hoping%20you%20could%20help%20correct.%20What%20i%20want%20to%20do%20is%20find%20the%20highest%20rep%20and%20weight%20total%20and%20second%20highest%20rep%20and%20weight%20total.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFor%20example%2C%20currently%20the%20Highest%20Rep%20and%20Weight%20is%20showing%3A%3CBR%20%2F%3EHighest%20rep%3A%206%3CBR%20%2F%3EHighest%20Weight%3A%2065%3CBR%20%2F%3ESecond%20Highest%20rep%3A%208%3CBR%20%2F%3ESecond%20Highest%20Weight%3A%2055%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EWhat%20it%20should%20be%20is%3A%3C%2FSTRONG%3E%3CBR%20%2F%3EHighest%20rep%3A%2010%3CBR%20%2F%3EHighest%20Weight%3A%2050%3CBR%20%2F%3ESecond%20Highest%20rep%3A%208%3CBR%20%2F%3ESecond%20Highest%20Weight%3A%2055%3C%2FP%3E%3CP%3E10%20*%2050%20%3D%20500%3CBR%20%2F%3E8*55%20%3D%20440%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFrom%20there%20the%201RM%20is%20calculated%20in%20the%20Notes%20sheet%26nbsp%3Bbased%20on%20the%20results.%20Sorry%20to%20be%20a%20pain%20but%20would%20this%20be%20difficult%20to%20correct%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20updated%20the%20spreadsheet%20in%20hope%20to%20provide%20greater%20detail%20as%20to%20what%20i%20am%20trying%20to%20do%2C%20changes%20made%20on%20the%20Tracking%20sheet%20for%20simplification.%20Eventually%20this%20data%20would%20be%20moved%20to%20the%20notes%20sheet.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-110307%22%20slang%3D%22en-US%22%3ERe%3A%20Using%20Excel%20lookup%20based%20on%20multiple%20criteria%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-110307%22%20slang%3D%22en-US%22%3E%3CP%3EDavid%2C%20you%20are%20welcome.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOkay%2C%20i'll%20try%20to%20comment%20the%20formulas%2C%20perhaps%20more%20close%20to%20weekend.%3C%2FP%3E%3CP%3EArray%20formulas%20are%20quite%20powerful%26nbsp%3Bbut%20very%20slow%20on%20large%20ranges.%20In%20such%20cases%20if%20possible%20to%20avoid%20them%20-%20better%20to%20avoid.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-110300%22%20slang%3D%22en-US%22%3ERe%3A%20Using%20Excel%20lookup%20based%20on%20multiple%20criteria%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-110300%22%20slang%3D%22en-US%22%3E%3CP%3EGenius%2C%3C%2FP%3E%3CP%3EThanks%20so%20much%20honestly%2C%20this%20was%20over%20my%20head.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20sheet%20seems%20to%20be%20responding%20much%20faster%20without%20the%20Array%20formulas%20too.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-110292%22%20slang%3D%22en-US%22%3ERe%3A%20Using%20Excel%20lookup%20based%20on%20multiple%20criteria%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-110292%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20David%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20updated%20the%20rest%20of%20formulas%20with%20how%20i%20understood%20that%20logic%3C%2FP%3E%3CPRE%3ESet%20%20%20Formula%0AHighest%20Rep%20%20%3DINDEX(Tracking!%24A%243%3A%24M%2420%2CMATCH('1RM'!%24C%241%2CTracking!%24C%243%3A%24C%2420%2C0)%2CMATCH(G20%2COFFSET(Tracking!%24A%243%2CMATCH('1RM'!%24C%241%2CTracking!%24C%243%3A%24C%2420%2C0)-1%2C0%2C1%2C13)%2C0)-1)%0ASecond%20Highest%20Rep%20%3DINDEX(Tracking!%24A%243%3A%24M%2420%2CMATCH('1RM'!%24C%241%2CTracking!%24C%243%3A%24C%2420%2C0)%2CMATCH(G21%2COFFSET(Tracking!%24A%243%2CMATCH('1RM'!%24C%241%2CTracking!%24C%243%3A%24C%2420%2C0)-1%2C0%2C1%2C13)%2C0)-1)%0ARep%20Difference%20%20%3DIF(G16%26gt%3BG15%2C0%2CG15-G16)%0AWeight%20Difference%20%3DIF(G21%26gt%3BG20%2C0%2CG20-G21)%0AKG%20per%20Rep%20%20%3DIF(HighestRep-SecondHighestRep%3D0%2CWeightDifference%2F1%2CIF(G17%26lt%3B%3D0%2CWeightDifference%2F(SecondHighestRep-HighestRep)%2CG18%2FG17))%0AHighest%20Weight%20%20%3DAGGREGATE(14%2C6%2C1%2F(Tracking!%24C%243%3A%24C%2420%3D'1RM'!%24C%241)*Tracking!%24D%243%3A%24M%2420*%7B0%2C1%2C0%2C1%2C0%2C1%2C0%2C1%2C0%2C1%7D%2C1)%0ASecond%20Higest%20Weight%20%3DAGGREGATE(14%2C6%2C1%2F(Tracking!%24C%243%3A%24C%2420%3D'1RM'!%24C%241)*Tracking!%24D%243%3A%24M%2420*%7B0%2C1%2C0%2C1%2C0%2C1%2C0%2C1%2C0%2C1%7D%2C2)%3C%2FPRE%3E%3CP%3EPlease%20note%2C%20in%201RM%20i%20took%20cell%20C1%20to%20find%20the%20record%20(not%20B1%20with%20incorrect%20list%20of%20values).%20No%20one%20array%20formula%20above.%3C%2FP%3E%3CP%3EFile%20is%20attached%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-110220%22%20slang%3D%22en-US%22%3ERe%3A%20Using%20Excel%20lookup%20based%20on%20multiple%20criteria%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-110220%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20David%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENot%20sure%20about%20formulas%20with%20rows%2Fcolumns%2C%20i'm%20back%20to%20AGGREGATE.%20The%20idea%20is%20to%20take%20instead%20of%20single%20column%20the%20range%20from%20D%20to%20M%20columns%20and%20apply%20filter%20to%20use%20every%20first%2Fsecond%20column%2C%20like%20for%20Highest%20weight%3C%2FP%3E%3CPRE%3E%3DAGGREGATE(14%2C6%2C1%2F(Tracking!%24C%243%3A%24C%2420%3D'1RM'!%24C%241)*Tracking!%24D%243%3A%24M%2420*%7B0%2C1%2C0%2C1%2C0%2C1%2C0%2C1%2C0%2C1%7D%2C1)%3C%2FPRE%3E%3CP%3EHad%20no%20time%20to%20play%20with%20other%20calculations%2C%20shall%20be%20similar.%20Please%20see%20the%20yellow%20cell%20in%20attached.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-109869%22%20slang%3D%22en-US%22%3ERe%3A%20Using%20Excel%20lookup%20based%20on%20multiple%20criteria%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-109869%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Sergei%2C%3C%2FP%3E%3CP%3EI%20have%20updated%20the%20spreadsheet%20to%20provide%20more%20details.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETABS%3A%3C%2FP%3E%3CP%3ETracking%20-%20Data%20that%20will%20be%20recording%20from%20my%20workouts%3C%2FP%3E%3CP%3E1RM%20-%20Calculator%20for%201RM%20based%20on%20the%20number%20in%20%60Notes%60%3C%2FP%3E%3CP%3ENotes%20-%20This%20is%20where%20the%20fomulas%20are%20to%20get%20the%20highes%20rep%2C%20second%20hights%20rep%20and%20weights%20from%20my%20very%20first%20post.%20I%20used%20the%20fomulas%20from%20Yuri%20to%20get%20this%20all%20working.%20Happy%20to%20is%20it%20working%20with%20your%20formulas.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20was%20curious%20if%20it%20was%20possible%20to%20do%20it%20horizontaly%20vs%20vertially%20to%20save%20having%20to%20type%20the%20exercise%204%20-%205%20for%20each%20workout.%20Seemed%20more%20logical%20with%20approach.%20Open%20to%20any%20other%20suggestion%2C%20i%20am%20trying%20to%20simplfy%20the%20repetiviness.%20I%20still%20have%20not%20work%20out%20a%20way%20from%20not%20have%20to%20type%20week%201%2C%20week%202%20etc%20and%20the%20date%20the%20exercise%20was%20done%2C%20could%20do%20a%20macro%20bust%20seems%20like%20overkill%20to%20me.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-109673%22%20slang%3D%22en-US%22%3ERe%3A%20Using%20Excel%20lookup%20based%20on%20multiple%20criteria%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-109673%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20David%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20general%20everything%20is%20possible.%20Your%20sample%20is%20empty%20except%20errors%20in%20the%20cells.%20If%20you%20provide%20some%20sample%20with%20numbers%20and%20where%20you'd%20like%20to%20have%20which%20result%20that%20will%20be%20easier%20-%20bit%20hard%20to%20recover%20the%20logic%20of%20your%20model%20without%20the%20knowledge%20of%20what's%20that%20about.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-109162%22%20slang%3D%22en-US%22%3ERe%3A%20Using%20Excel%20lookup%20based%20on%20multiple%20criteria%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-109162%22%20slang%3D%22en-US%22%3E%3CP%3EHI%20All%2C%3CBR%20%2F%3EOut%20of%20interest%20would%20it%20be%20possible%20to%20do%20the%20lookup%20horizontally%20instead%20of%20vertically%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESee%20attached%20as%20an%20example.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-103376%22%20slang%3D%22en-US%22%3ERe%3A%20Using%20Excel%20lookup%20based%20on%20multiple%20criteria%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-103376%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20David%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENo%20problem%2C%20in%20my%20formula%20weight%20filter%20was%20missed.%20In%20general%20you%20may%20add%20as%20many%20filters%20as%20needed%20adding%20the%20multiplier.%20Formulas%20are%3C%2FP%3E%3CPRE%3E%3DAGGREGATE(14%2C6%2C(1%2F(%24C%242%3A%24C%24500%3D%24K%241))*(E2%3AE500)*(%24F2%3A%24F%24500%3D%24L%249)%2C1)%0A%3DAGGREGATE(14%2C6%2C(1%2F(%24C%242%3A%24C%24500%3D%24K%241))*(E2%3AE500)*(%24F2%3A%24F%24500%3D%24L%2410)%2C1)%0A%3DL4-L5%0A%3DL9-L10%0A%3DL7%2FL6%0A%3DAGGREGATE(14%2C6%2C(1%2F(%24C%242%3A%24C%24500%3D%24K%241))*(F2%3AF500)%2C1)%0A%3DAGGREGATE(14%2C6%2C(1%2F(%24C%242%3A%24C%24500%3D%24K%241))*(F2%3AF500)%2C2)%3C%2FPRE%3E%3CP%3Eand%20in%20attached%20file%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-103303%22%20slang%3D%22en-US%22%3ERe%3A%20Using%20Excel%20lookup%20based%20on%20multiple%20criteria%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-103303%22%20slang%3D%22en-US%22%3E%3CP%3EYury%20%3D%20Champion.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20mate%2C%20this%20was%20driving%20me%20crazy.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMicrosoft%20should%20make%20this%20into%20a%20function%2C%20I%20can%20see%20this%20being%20a%20common%20scenario%20and%20do%20a%20simple%20google%20shows%20im%20not%20the%20only%20one%20asking.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20again.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-103302%22%20slang%3D%22en-US%22%3ERe%3A%20Using%20Excel%20lookup%20based%20on%20multiple%20criteria%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-103302%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Sergei%2C%3C%2FP%3E%3CP%3EJust%20letting%20you%20know%20your%20solution%20works%20however%20it%20was%20not%20quite%20what%20i%20was%20trying%20to%20achive.%20The%20result%20would%20sometimes%20be%20the%20wrong%20value%20and%20so%20i%20went%20with%20the%20array%20solution.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20appreciate%20you%20taking%20the%20time%20to%20assist%20me%20though.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-103097%22%20slang%3D%22en-US%22%3ERe%3A%20Using%20Excel%20lookup%20based%20on%20multiple%20criteria%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-103097%22%20slang%3D%22en-US%22%3E%3CP%3EAnother%20variant%20is%20without%20array%20formulas%3C%2FP%3E%3CP%3EFirst%20largest%3C%2FP%3E%3CPRE%3E%3DAGGREGATE(14%2C6%2C(1%2F(%24C%242%3A%24C%24500%3D%24K%241))*(E2%3AE500)%2C1)%3C%2FPRE%3E%3CP%3ESecond%20largest%3C%2FP%3E%3CPRE%3E%3DAGGREGATE(14%2C6%2C(1%2F(%24C%242%3A%24C%24500%3D%24K%241))*(E2%3AE500)%2C2)%3C%2FPRE%3E%3CP%3Eetc.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-103090%22%20slang%3D%22en-US%22%3ERe%3A%20Using%20Excel%20lookup%20based%20on%20multiple%20criteria%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-103090%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20David%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eplease%20see%20attached%20for%20the%20sample%20solution.%20For%20the%20second%20highest%20rep%20I%20used%20the%20following%20formula%20(array%20entered)%3A%3C%2FP%3E%3CP%3E%7B%3DINDEX(%24E%242%3A%24E%24500%2CLARGE(IF(%24C%242%3A%24C%24500%3DK1%2CROW(%24C%242%3A%24C%24500)-ROW(INDEX(%24C%242%3A%24C%24500%2C1%2C1))%2B1)%2C2))%7D%3C%2FP%3E%3CP%3ESimilarily%2C%20for%20the%20second%20highest%20weight%20I%20used%3C%2FP%3E%3CP%3E%7B%3DINDEX(%24F%242%3A%24F%24500%2CLARGE(IF(%24C%242%3A%24C%24500%3DK1%2CROW(%24C%242%3A%24C%24500)-ROW(INDEX(%24C%242%3A%24C%24500%2C1%2C1))%2B1)%2C2))%7D%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHope%20this%20helps%3C%2FP%3E%3CP%3ERegards%3C%2FP%3E%3CP%3EYury%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

Hi All,

Please help me as i am frustrated to the point of giving up.

 

I am trying to use excel to lookup a value, based on that value look with another cell and find the highest number associated to that said value, and output the value froma a cell adjacent to it.

 

Eg.

WeekDateWorkoutSetRepKGTotal
Week 14/09/2017Dead lift11220240
Week 14/09/2017One Arm Floor Press11215180
Week 14/09/2017Barbell Shrug (Behind Back)1128.75105
Week 14/09/2017Medow Row11220240
Week 14/09/2017Skull Crushers11210120
Week 14/09/2017Side bends11220240
Week 14/09/2017Lying Doubble Leg Raise11200
Week 14/09/2017Lunges11200
Week 14/09/2017Straight Arm Pulldown11210.2122.4
Week 14/09/2017Face Pull1613.681.6
Week 14/09/2017Machine Rope Hammer Curls1126.881.6
Week 14/09/2017Reverse Cable Side Bends11210.2122.4
Week 14/09/2017Squats11225300
Week 14/09/2017Single arm Lat Pulldowns11110.2112.2
Week 14/09/2017Bench Press (Supinated Grip)111666
Week 14/09/2017Landmine Later Raise1128.75105
Week 14/09/2017Incline Tricep Extension1800
Week 14/09/2017Incline Dumbell Curls11210120
Week 14/09/2017Pushups11210120
Week 24/09/2017Dead lift11050500

 

Cell 1: Define a lookup value: E.g `Dead Lift` 

Cell 2: Based on the lookup value `Dead Lift` find the heaviest lift and return the KG.

Cell 3: Based on the heaviest lift KG return the adjacent `Rep` cell

Cell 4: Based on the lookup value `Dead lift` find the second heviest lift and return the KG

Cell 5: Based on the second heviest lift  in KG return the adjacent `Rep` cell. 

 

 

I feel like this should be easy but i am having to much trouble trying to do this. 

 

I have attached the spreadsheet for additonal reference.

 

Thanks in advance.

17 Replies
Highlighted
Best Response confirmed by David Attard (Occasional Contributor)
Solution

Hi David,

 

please see attached for the sample solution. For the second highest rep I used the following formula (array entered):

{=INDEX($E$2:$E$500,LARGE(IF($C$2:$C$500=K1,ROW($C$2:$C$500)-ROW(INDEX($C$2:$C$500,1,1))+1),2))}

Similarily, for the second highest weight I used

{=INDEX($F$2:$F$500,LARGE(IF($C$2:$C$500=K1,ROW($C$2:$C$500)-ROW(INDEX($C$2:$C$500,1,1))+1),2))}

 

Hope this helps

Regards

Yury 

 

 

Highlighted

Another variant is without array formulas

First largest

=AGGREGATE(14,6,(1/($C$2:$C$500=$K$1))*(E2:E500),1)

Second largest

=AGGREGATE(14,6,(1/($C$2:$C$500=$K$1))*(E2:E500),2)

etc.

Highlighted

Hi Sergei,

Just letting you know your solution works however it was not quite what i was trying to achive. The result would sometimes be the wrong value and so i went with the array solution.

 

I appreciate you taking the time to assist me though.

Highlighted

Yury = Champion.

 

Thanks mate, this was driving me crazy.

 

Microsoft should make this into a function, I can see this being a common scenario and do a simple google shows im not the only one asking. 

 

Thanks again.

Highlighted

Hi David,

 

No problem, in my formula weight filter was missed. In general you may add as many filters as needed adding the multiplier. Formulas are

=AGGREGATE(14,6,(1/($C$2:$C$500=$K$1))*(E2:E500)*($F2:$F$500=$L$9),1)
=AGGREGATE(14,6,(1/($C$2:$C$500=$K$1))*(E2:E500)*($F2:$F$500=$L$10),1)
=L4-L5
=L9-L10
=L7/L6
=AGGREGATE(14,6,(1/($C$2:$C$500=$K$1))*(F2:F500),1)
=AGGREGATE(14,6,(1/($C$2:$C$500=$K$1))*(F2:F500),2)

and in attached file

 

 

Highlighted

HI All,
Out of interest would it be possible to do the lookup horizontally instead of vertically?

 

See attached as an example.

Highlighted

Hi David,

 

In general everything is possible. Your sample is empty except errors in the cells. If you provide some sample with numbers and where you'd like to have which result that will be easier - bit hard to recover the logic of your model without the knowledge of what's that about.

 

Thank you

Highlighted

Hi Sergei,

I have updated the spreadsheet to provide more details.

 

TABS:

Tracking - Data that will be recording from my workouts

1RM - Calculator for 1RM based on the number in `Notes`

Notes - This is where the fomulas are to get the highes rep, second hights rep and weights from my very first post. I used the fomulas from Yuri to get this all working. Happy to is it working with your formulas.

 

I was curious if it was possible to do it horizontaly vs vertially to save having to type the exercise 4 - 5 for each workout. Seemed more logical with approach. Open to any other suggestion, i am trying to simplfy the repetiviness. I still have not work out a way from not have to type week 1, week 2 etc and the date the exercise was done, could do a macro bust seems like overkill to me.

Highlighted

Hi David,

 

Not sure about formulas with rows/columns, i'm back to AGGREGATE. The idea is to take instead of single column the range from D to M columns and apply filter to use every first/second column, like for Highest weight

=AGGREGATE(14,6,1/(Tracking!$C$3:$C$20='1RM'!$C$1)*Tracking!$D$3:$M$20*{0,1,0,1,0,1,0,1,0,1},1)

Had no time to play with other calculations, shall be similar. Please see the yellow cell in attached.

Highlighted

Hi David,

 

I updated the rest of formulas with how i understood that logic

Set			Formula
Highest Rep		=INDEX(Tracking!$A$3:$M$20,MATCH('1RM'!$C$1,Tracking!$C$3:$C$20,0),MATCH(G20,OFFSET(Tracking!$A$3,MATCH('1RM'!$C$1,Tracking!$C$3:$C$20,0)-1,0,1,13),0)-1)
Second Highest Rep	=INDEX(Tracking!$A$3:$M$20,MATCH('1RM'!$C$1,Tracking!$C$3:$C$20,0),MATCH(G21,OFFSET(Tracking!$A$3,MATCH('1RM'!$C$1,Tracking!$C$3:$C$20,0)-1,0,1,13),0)-1)
Rep Difference		=IF(G16>G15,0,G15-G16)
Weight Difference	=IF(G21>G20,0,G20-G21)
KG per Rep		=IF(HighestRep-SecondHighestRep=0,WeightDifference/1,IF(G17<=0,WeightDifference/(SecondHighestRep-HighestRep),G18/G17))
Highest Weight		=AGGREGATE(14,6,1/(Tracking!$C$3:$C$20='1RM'!$C$1)*Tracking!$D$3:$M$20*{0,1,0,1,0,1,0,1,0,1},1)
Second Higest Weight	=AGGREGATE(14,6,1/(Tracking!$C$3:$C$20='1RM'!$C$1)*Tracking!$D$3:$M$20*{0,1,0,1,0,1,0,1,0,1},2)

Please note, in 1RM i took cell C1 to find the record (not B1 with incorrect list of values). No one array formula above.

File is attached

 

Highlighted

Genius,

Thanks so much honestly, this was over my head.

 

The sheet seems to be responding much faster without the Array formulas too.

Highlighted

David, you are welcome.

 

Okay, i'll try to comment the formulas, perhaps more close to weekend.

Array formulas are quite powerful but very slow on large ranges. In such cases if possible to avoid them - better to avoid. 

Highlighted

Sergei,
I found an issues that I was hoping you could help correct. What i want to do is find the highest rep and weight total and second highest rep and weight total.

 

For example, currently the Highest Rep and Weight is showing:
Highest rep: 6
Highest Weight: 65
Second Highest rep: 8
Second Highest Weight: 55

 

What it should be is:
Highest rep: 10
Highest Weight: 50
Second Highest rep: 8
Second Highest Weight: 55

10 * 50 = 500
8*55 = 440

 

From there the 1RM is calculated in the Notes sheet based on the results. Sorry to be a pain but would this be difficult to correct?

 

I have updated the spreadsheet in hope to provide greater detail as to what i am trying to do, changes made on the Tracking sheet for simplification. Eventually this data would be moved to the notes sheet.

Highlighted

David,

 

So you find highest one as highest (KG*REP), not as highest KG.

 

Okay, i'll try

Highlighted

Hi David,

 

Here are update formulas, first two are array ones

Set			Formula
Highest Rep to weight	{=INDEX(Tracking!$D$3:$L$4, MATCH('1RM'!$C$1,Tracking!$C$3:$C$4,0),MATCH(LARGE(OFFSET(Tracking!$D$2,MATCH('1RM'!$C$1,Tracking!$C$3:$C$4,0),0,,9)*OFFSET(Tracking!$D$2,MATCH('1RM'!$C$1,Tracking!$C$3:$C$4,0),1,,9)*{1,0,1,0,1,0,1,0,1},1),OFFSET(Tracking!$D$2,MATCH('1RM'!$C$1,Tracking!$C$3:$C$4,0),0,,9)*OFFSET(Tracking!$D$2,MATCH('1RM'!$C$1,Tracking!$C$3:$C$4,0),1,,9)*{1,0,1,0,1,0,1,0,1},0))}
Second Highest Rep to weight	{=INDEX(Tracking!$D$3:$L$4, MATCH('1RM'!$C$1,Tracking!$C$3:$C$4,0),MATCH(LARGE(OFFSET(Tracking!$D$2,MATCH('1RM'!$C$1,Tracking!$C$3:$C$4,0),0,,9)*OFFSET(Tracking!$D$2,MATCH('1RM'!$C$1,Tracking!$C$3:$C$4,0),1,,9)*{1,0,1,0,1,0,1,0,1},2),OFFSET(Tracking!$D$2,MATCH('1RM'!$C$1,Tracking!$C$3:$C$4,0),0,,9)*OFFSET(Tracking!$D$2,MATCH('1RM'!$C$1,Tracking!$C$3:$C$4,0),1,,9)*{1,0,1,0,1,0,1,0,1},0))}
Rep Difference		=10-(G26-G27)
Highest Weight		=AGGREGATE(14,6,1/(Tracking!$C$3:$C$4='1RM'!$C$1)*Tracking!$D$3:$L$4*Tracking!$E$3:$M$4*{1,0,1,0,1,0,1,0,1,0},1)
Highest Weight per Rep	=G29/G26
Second Highest Weight	=AGGREGATE(14,6,1/(Tracking!$C$3:$C$4='1RM'!$C$1)*Tracking!$D$3:$L$4*Tracking!$E$3:$M$4*{1,0,1,0,1,0,1,0,1,0},2)
Second Highest Weight per Rep	=G31/G27
Weight Difference	=G29-G31
KG Per Rep		=G33/G28

They are in attached file below the previous variant. Perhaps first two could be simplified, not sure right now

 

Highlighted
"I feel like this should be easy but i am having to much trouble trying to do this. "

while as a human we can quickly get to pick this up there is a lot going on as it is you have 5 Cell rules with a lot of implied logic "the second heaviest left" for example.
and as you can see in some of the "code" supplied this is what Excel has to do to get the result you need.

I think you should consider other tools (excel is a spreadsheet not a database) have a try at ACCESS
Highlighted

Sergei,

This is great, i dont want to ask to much of you and so as long as it is working I am very greatful. It all looks to be working to me. 

 

I just need to expand the forumulas to include alld the empty cells below to include future data entries.

 

You are very proficient at exel and if i wore a hat it would go off to you :)