Comparing Data from Two Excels - Most Views One & Most Engagements

%3CLINGO-SUB%20id%3D%22lingo-sub-2521185%22%20slang%3D%22en-US%22%3EComparing%20Data%20from%20Two%20Excels%20-%20Most%20Views%20One%20%26amp%3B%20Most%20Engagements%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2521185%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20two%20excel%20sheets.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOne%2C%20I've%20sorted%20by%20%22most%20engagements%22%20and%20the%20other%20sorted%20by%20%22most%20views.%22%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EEach%20sheet%20has%20the%20same%20emails%20for%20each%20employee.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'd%20like%20to%20compare%20data%20from%20the%20two%20sheets%20together%20and%20find%20out%20from%20the%20individuals%20with%20the%20%22most%20views%22%20who%20from%20that%20list%20has%20the%20%22most%20engagements.%22%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECould%20folks%20recommend%20the%20best%20way.%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3EI%20assume%20what%20way%20could%20be%20combine%20data%20using%20the%20pivot%20table%20with%20the%20emails%20as%20the%20common%20denominator%20and%20match%20engagements%20to%20the%20%22views%22%20list%20by%20email.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThen%20sort%20first%20by%20%22views%22%20then%20%22engagements%22.%3CBR%20%2F%3E%3CBR%20%2F%3EIf%20that's%20the%20best%20way%2C%20could%20someone%20share%20the%20easy-to-follow%20instructions%20for%20pivot%20tables%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2521185%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2526089%22%20slang%3D%22en-US%22%3ERe%3A%20Comparing%20Data%20from%20Two%20Excels%20-%20Most%20Views%20One%20%26amp%3B%20Most%20Engagements%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2526089%22%20slang%3D%22en-US%22%3EYou%20could%20do%20an%20xlookup%20here%2C%20using%20the%20employee%20email%2C%20on%20the%20Most%20Views%20sheet%2C%20look%20up%20the%20number%20of%20engagements%20for%20that%20same%20email%20on%20your%20engagements%20sheet.%20This%20will%20list%20out%20engagements%20along%20side%20views%20so%20you%20can%20have%20views%20and%20engagements%20side%20by%20side.%20Then%20use%20a%20%22Custom%20sort%22%20with%20two%20levels%2C%20to%20sort%20first%20by%20views%20then%20engagements.%3CBR%20%2F%3E%3CBR%20%2F%3ELet%20me%20know%20if%20you%20need%20a%20more%20in%20depth%20explanation!%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2532848%22%20slang%3D%22en-US%22%3ERe%3A%20Comparing%20Data%20from%20Two%20Excels%20-%20Most%20Views%20One%20%26amp%3B%20Most%20Engagements%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2532848%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1097122%22%20target%3D%22_blank%22%3E%40Paul_PP%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'll%20use%20two%20lists%20side%20by%20side%20so%20it'll%20be%20easier%20to%20show%2C%20but%20this%20will%20work%20across%20sheets%20too.%20So%20I%20would%20combine%20your%20two%20data%20lists%20using%20a%20look%20up%2C%20starting%20with%20this%20(your%20two%20sheets)%3A%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%20image-alt%3D%22DKoontz_0-1625849183743.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F294686i1BCD137097F3E132%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22DKoontz_0-1625849183743.png%22%20alt%3D%22DKoontz_0-1625849183743.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Exlookup%20in%20column%20C%26nbsp%3B%20%3D%2BXLOOKUP(A33%2CE%3AE%2CF%3AF%2C%22%22)%26nbsp%3B%20this%20transfers%20engagements%20from%20sheet%202%2C%20no%20matter%20what%20the%20order%2C%20and%20matches%20to%20the%20correct%20person%20or%20email%20in%20your%20case.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22DKoontz_1-1625849283381.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F294687iE3C431E18C5DF98A%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22DKoontz_1-1625849283381.png%22%20alt%3D%22DKoontz_1-1625849283381.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESelect%20your%20data%20on%20sheet%20one%20and%20custom%20Sort%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22DKoontz_2-1625849374588.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F294688iAED742150247685E%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22DKoontz_2-1625849374588.png%22%20alt%3D%22DKoontz_2-1625849374588.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThen%20add%20two%20sort%20by%20levels%2C%20first%20by%20views%20largest%20to%20smallest%2C%20then%20engagements%20largest%20to%20smallest%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22DKoontz_3-1625849433694.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F294689i04C164D40A9646E9%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22DKoontz_3-1625849433694.png%22%20alt%3D%22DKoontz_3-1625849433694.png%22%20%2F%3E%3C%2FSPAN%3E%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-2536756%22%20slang%3D%22en-US%22%3ERe%3A%20Comparing%20Data%20from%20Two%20Excels%20-%20Most%20Views%20One%20%26amp%3B%20Most%20Engagements%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2536756%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F993615%22%20target%3D%22_blank%22%3E%40DKoontz%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20able%20to%20partially%20set%20up%20the%20LOOKUP%2C%20but%20I%20can%20get%20the%20formula%20to%20go%20through.%20I%20set%20up%20the%20sheet%20like%20this%2C%20but%20keep%20getting%20a%20%22%23NAME%3F%22%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Screen%20Shot%202021-07-11%20at%206.22.15%20PM.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F294914i51E365B2FF33DF79%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Screen%20Shot%202021-07-11%20at%206.22.15%20PM.png%22%20alt%3D%22Screen%20Shot%202021-07-11%20at%206.22.15%20PM.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%E2%80%83Then%20I've%20tried%20multiple%20formulaS%20in%20C3%20for%20the%20column%20C%3A%20%22%3DXlookup(A3%2CE3%3AE35%2CF3%3AF35)%22%20%3B%26nbsp%3B%3D%2BLOOKUP(A3%2CE%3AE%2CF%3AF)%20.%20Nothing%20is%20working.%20Can%20you%20tell%20where%20I'm%20missing%20something%3F%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%20image-alt%3D%22Screen%20Shot%202021-07-11%20at%207.42.03%20PM.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F294917iD80F564486F5D00D%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Screen%20Shot%202021-07-11%20at%207.42.03%20PM.png%22%20alt%3D%22Screen%20Shot%202021-07-11%20at%207.42.03%20PM.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%E2%80%83%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2537025%22%20slang%3D%22en-US%22%3ERe%3A%20Comparing%20Data%20from%20Two%20Excels%20-%20Most%20Views%20One%20%26amp%3B%20Most%20Engagements%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2537025%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1097122%22%20target%3D%22_blank%22%3E%40Paul_PP%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAs%20a%20comment%2C%20discussion%20could%20much%20more%20efficient%20if%20share%20sample%20file%2C%20not%20screenshots.%20%22Nothing%20is%20working%22%20is%20too%20abstract.%20Screenshot%20says%20only%20that%20XLOOKUP()%20is%20available%20in%20your%20environment.%20But%20returns%20result%20which%20you%20don't%20expect%2C%20and%20from%20screenshot%20is%20not%20clear%20which%20one.%20%23NAME!%20error%20could%20be%20caused%20by%20few%20reasons%2C%20without%20the%20file%20it's%20long%20discussion%20to%20understand%20by%20which%20one%20exactly.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2537608%22%20slang%3D%22en-US%22%3ERe%3A%20Comparing%20Data%20from%20Two%20Excels%20-%20Most%20Views%20One%20%26amp%3B%20Most%20Engagements%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2537608%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%3EI%20know%20XLOOKUP%20works%20with%20the%20web%20version%20of%20Excel%2C%20as%20for%20desktop%20versions%2C%20I%20think%20it%20is%20available%20from%20Office%202019%20onwards.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20alternative%20is%20VLOOKUP%2C%20Syntax%3A%20VLOOKUP(%3CVALUE%20to%3D%22%22%20lookup%3D%22%22%3E%2C%20%3CRANGE%20of%3D%22%22%20data%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2F%22%20with%3D%22%22%20lookup%3D%22%22%20field%3D%22%22%20on%3D%22%22%20the%3D%22%22%20left%3D%22%22%20of%3D%22%22%20the%3D%22%22%20range%3D%22%22%3E%2C%20%3CCOLUMN%20number%3D%22%22%20to%3D%22%22%20of%3D%22%22%20the%3D%22%22%20range%3D%22%22%20to%3D%22%22%20return%3D%22%22%3E%2C%20FALSE).%26nbsp%3B%20The%20lookup%20value%20must%20be%20in%20the%20first%20column%20of%20the%20range.%3C%2FCOLUMN%3E%3C%2FRANGE%3E%3C%2FVALUE%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EExample%20based%20on%20your%20data%3A%3C%2FP%3E%3CTABLE%20border%3D%221%22%20width%3D%2263.957597173144876%25%22%3E%3CTBODY%3E%3CTR%3E%3CTD%20width%3D%2216.666666666666668%25%22%3E%26nbsp%3B%3C%2FTD%3E%3CTD%20width%3D%2216.666666666666668%25%22%3EA%3C%2FTD%3E%3CTD%20width%3D%228.333333333333334%25%22%3EB%3C%2FTD%3E%3CTD%20width%3D%224.166666666666667%25%22%3ED%3C%2FTD%3E%3CTD%20width%3D%222.0833333333333335%25%22%3EE%3C%2FTD%3E%3CTD%20width%3D%222.0833333333333335%25%22%3EF%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%20width%3D%2216.666666666666668%25%22%3E1%3C%2FTD%3E%3CTD%20width%3D%2216.666666666666668%25%22%3ESN%20Name%3C%2FTD%3E%3CTD%20width%3D%228.333333333333334%25%22%3ESN%20Leads%20Saved%3C%2FTD%3E%3CTD%20width%3D%224.166666666666667%25%22%3E%26nbsp%3B%3C%2FTD%3E%3CTD%20width%3D%222.0833333333333335%25%22%3ESN%20Name%3C%2FTD%3E%3CTD%20width%3D%222.0833333333333335%25%22%3EResult%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%20width%3D%2216.666666666666668%25%22%3E2%3C%2FTD%3E%3CTD%20width%3D%2216.666666666666668%25%22%3EYago%3C%2FTD%3E%3CTD%20width%3D%228.333333333333334%25%22%3E641%3C%2FTD%3E%3CTD%20width%3D%224.166666666666667%25%22%3E%26nbsp%3B%3C%2FTD%3E%3CTD%20width%3D%222.0833333333333335%25%22%3EMal%3C%2FTD%3E%3CTD%20width%3D%222.0833333333333335%25%22%3E314%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%20width%3D%2216.666666666666668%25%22%3E3%3C%2FTD%3E%3CTD%20width%3D%2216.666666666666668%25%22%3EMichael%3C%2FTD%3E%3CTD%20width%3D%228.333333333333334%25%22%3E327%3C%2FTD%3E%3CTD%20width%3D%224.166666666666667%25%22%3E%26nbsp%3B%3C%2FTD%3E%3CTD%20width%3D%222.0833333333333335%25%22%3E%26nbsp%3B%3C%2FTD%3E%3CTD%20width%3D%222.0833333333333335%25%22%3E%26nbsp%3B%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%20width%3D%2216.666666666666668%25%22%3E4%3C%2FTD%3E%3CTD%20width%3D%2216.666666666666668%25%22%3EMal%3C%2FTD%3E%3CTD%20width%3D%228.333333333333334%25%22%3E314%3C%2FTD%3E%3CTD%20width%3D%224.166666666666667%25%22%3E%26nbsp%3B%3C%2FTD%3E%3CTD%20width%3D%222.0833333333333335%25%22%3E%26nbsp%3B%3C%2FTD%3E%3CTD%20width%3D%222.0833333333333335%25%22%3E%26nbsp%3B%3C%2FTD%3E%3C%2FTR%3E%3C%2FTBODY%3E%3C%2FTABLE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20the%20example%20above%2C%20the%20cell%20in%20F2%20has%20%3DVLOOKUP(E2%2CA2%3AB4%2C2%2CFALSE).%26nbsp%3B%20A2%3AB4%20is%20the%20range%20to%20look%20up%20the%20value%20with%202%20being%20the%202nd%20column%20of%20the%20range.%26nbsp%3B%20The%20False%20on%20the%20end%20dictates%20if%20you%20want%20an%20exact%20value%20or%20the%20closest%20match%20(False%20%3D%20Exact%20Match%2C%20True%20%3D%20Closest%20Match)%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2537635%22%20slang%3D%22en-US%22%3ERe%3A%20Comparing%20Data%20from%20Two%20Excels%20-%20Most%20Views%20One%20%26amp%3B%20Most%20Engagements%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2537635%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1085122%22%20target%3D%22_blank%22%3E%40Mathew_Vaughan%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENope%2C%20it's%20not%20on%202019.%20Supported%20version%20are%20mentioned%20here%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fsupport.microsoft.com%2Fen-us%2Foffice%2Fxlookup-function-b7fd680e-6d10-43e6-84f9-88eae8bf5929%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EXLOOKUP%20function%20-%20Office%20Support%20(microsoft.com)%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EIMHO%2C%20much%20better%20alternative%20for%20XLOOKUP%20is%20INDEX%2FMATCH.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

I have two excel sheets.

 

One, I've sorted by "most engagements" and the other sorted by "most views."

 

Each sheet has the same emails for each employee.

 

I'd like to compare data from the two sheets together and find out from the individuals with the "most views" who from that list has the "most engagements."

 

Could folks recommend the best way. 

I assume what way could be combine data using the pivot table with the emails as the common denominator and match engagements to the "views" list by email. 

 

Then sort first by "views" then "engagements".

If that's the best way, could someone share the easy-to-follow instructions for pivot tables?

 

Thanks

15 Replies
You could do an xlookup here, using the employee email, on the Most Views sheet, look up the number of engagements for that same email on your engagements sheet. This will list out engagements along side views so you can have views and engagements side by side. Then use a "Custom sort" with two levels, to sort first by views then engagements.

Let me know if you need a more in depth explanation!

@DKoontz Thanks for pointing me in the right direction.

 

As I'm a newbie with , if you could provide me with a more in-depth explanation, I'd be most grateful.

@Paul_PP 

I'll use two lists side by side so it'll be easier to show, but this will work across sheets too. So I would combine your two data lists using a look up, starting with this (your two sheets):

 

DKoontz_0-1625849183743.png

 

xlookup in column C  =+XLOOKUP(A33,E:E,F:F,"")  this transfers engagements from sheet 2, no matter what the order, and matches to the correct person or email in your case.

DKoontz_1-1625849283381.png

 

Select your data on sheet one and custom Sort:

DKoontz_2-1625849374588.png

 

Then add two sort by levels, first by views largest to smallest, then engagements largest to smallest:

DKoontz_3-1625849433694.png

 

 

 

@DKoontz 

 

I'm able to partially set up the LOOKUP, but I can get the formula to go through. I set up the sheet like this, but keep getting a "#NAME?"

Screen Shot 2021-07-11 at 6.22.15 PM.png

 Then I've tried multiple formulaS in C3 for the column C: "=Xlookup(A3,E3:E35,F3:F35)" ; =+LOOKUP(A3,E:E,F:F) . Nothing is working. Can you tell where I'm missing something?

 

Screen Shot 2021-07-11 at 7.42.03 PM.png

@Paul_PP 

As a comment, discussion could much more efficient if share sample file, not screenshots. "Nothing is working" is too abstract. Screenshot says only that XLOOKUP() is available in your environment. But returns result which you don't expect, and from screenshot is not clear which one. #NAME! error could be caused by few reasons, without the file it's long discussion to understand by which one exactly. 

@Sergei Baklan 

I know XLOOKUP works with the web version of Excel, as for desktop versions, I think it is available from Office 2019 onwards.

 

The alternative is VLOOKUP, Syntax: VLOOKUP(<value to lookup>, <range of data with lookup field on the left of the range>, <column number to of the range to return>, FALSE).  The lookup value must be in the first column of the range.

 

Example based on your data:

 ABDEF
1SN NameSN Leads Saved SN NameResult
2Yago641 Mal314
3Michael327   
4Mal314   

 

In the example above, the cell in F2 has =VLOOKUP(E2,A2:B4,2,FALSE).  A2:B4 is the range to look up the value with 2 being the 2nd column of the range.  The False on the end dictates if you want an exact value or the closest match (False = Exact Match, True = Closest Match)

@Mathew_Vaughan 

Nope, it's not on 2019. Supported version are mentioned here XLOOKUP function - Office Support (microsoft.com)

IMHO, much better alternative for XLOOKUP is INDEX/MATCH.

Thanks, I can confirm it's only available on web-based platforms (including iPad, Android). Been using tablets for too long.
Index/Match is a bit less intuitive, especially if you aren't familiar with how lookups work.

@DKoontz 

True. I only would like to say that XLOOKUP was designed to take power of INDEX/MATCH in more intuitive form.

Thanks @Sergei Baklan for the prompt. Here's the data. I appreciate you and @DKoontz looking at this.

No problem! I see where the mistake was, in your formula you have =+Xlookup(A3,E:E:F:F), it should be =+Xlookup(A3,E:E,F:F), you had an extra : where it should have been a comma. If you fill down this formula, it'll bring over all of the shares for each person. Where it returns an #N/A, that person isn't represented in column E, the share data set.
To add to this, =+XLOOKUP(A3,E:E,F:F,0), the extra 0, will return 0 if not found instead of #N/A. Which may be helpful

@DKoontz It still does not seem to be working. I'm using Excel 2016, so could that be at play?

@Paul_PP 

Excel 2016 doesn't support XLOOKUP(). Formula like this could work

=IFNA(
  INDEX($F3:INDEX($F$3:$F$10000,COUNTA($E$3:$E$10000)),
        MATCH($A3, $E3:INDEX($E$3:$E$10000,COUNTA($E$3:$E$10000)), 0)),
 "no match")

Please check attached.