Formula speed / Laptop specification

%3CLINGO-SUB%20id%3D%22lingo-sub-2149019%22%20slang%3D%22en-US%22%3EFormula%20speed%20%2F%20Laptop%20specification%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2149019%22%20slang%3D%22en-US%22%3E%3CP%3EHello%3C%2FP%3E%3CP%3EI%20am%20a%20regular%20user%20of%20the%20index%20match%20formula%20between%20spreadsheets%20containing%20over%20400%2C000%20records%20and%20this%20can%20take%20up%20to%2030%20minutes%20to%20complete.%26nbsp%3B%20On%20smaller%20spreadsheets%20the%20formula%20regularly%20takes%205%20to%2010%20minutes.%26nbsp%3B%20I%20have%20tried%20a%20variety%20of%20ways%20to%20improve%20the%20speed%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eworking%20on%20my%20hard%20drive%20instead%20of%20my%20work%20network%3B%3C%2FP%3E%3CP%3Ealways%20pasting%20values%3B%3C%2FP%3E%3CP%3Eturn%20on%20manual%20calculation%3B%3C%2FP%3E%3CP%3Elook%20for%20ways%20of%20cutting%20down%20the%20data%20I%20need%20to%20analyse.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOur%20IT%20department%26nbsp%3Btell%20me%20I%20have%26nbsp%3Bthe%20maximum%20ram%20on%20my%20laptop%20which%20is%20a%20core%20i5%20elitebook.%26nbsp%3B%20they%20loaned%20me%20a%20notebook%2C%20the%20highest%20spec%20they%20provide%2C%20but%20it%20made%20little%20to%20no%20difference%20so%20I%20didn't%20think%20it%20was%20worth%20the%20expense.%26nbsp%3B%20No%20one%20in%20IT%20seems%20to%20be%20able%20to%20direct%20me%20to%20a%20solution%20other%20than%20to%20tell%20me%20to%20use%20other%26nbsp%3Bsoftware%20but%20then%20can't%20tell%20me%20what%20that%20is%20other%20than%20Tableau%20which%20just%20wouldn't%20work%20for%20me%20or%20my%20department.%26nbsp%3B%26nbsp%3BOn%20top%20of%20the%26nbsp%3BExcel%2013%20I%20already%20had%20they%20have%20me%20Excel%202010%2064%20but%20this%20just%20causes%26nbsp%3Bissues%26nbsp%3Band%20sometimes%20the%20formula%20doesn't%20recognise%20i'm%20working%20between%202%20spreadsheets%20so%20I%20have%20to%26nbsp%3Bclose%20and%20reopen.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20not%20well%20up%20on%20laptop%20specifications%20so%20can't%20tell%20you%20exactly%20what%20spec%20the%20notebook%20was.%26nbsp%3B%20they%20even%20gave%20me%20a%20virtual%20desktop%20which%20made%20no%20difference%20at%20all.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20CPU%20on%20my%20laptop%20occasionally%20reaches%2099%25%20but%20even%20when%20it%20doesn't%20it%20is%20extremely%20slow%20during%20calculations.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20currently%20working%20from%20home%20too%20but%20to%20be%20fair%20I%20had%20the%20same%20problem%20when%20I%20worked%20in%20the%20office%20and%20its%20been%20going%20on%20for%202%20years.%26nbsp%3B%20We%20use%20citrix%20but%20am%20more%20than%20happy%20to%20work%20of%20the%20hard%20drive%20if%26nbsp%3Bthe%20formula%26nbsp%3Bworked%20faster%2C%20which%20it%20currently%20doesn't.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20there%20anyone%20who%20can%20advise%20me%20on%20the%20spec%20of%20laptop%20that%20I%20would%20need%20to%20quickly%20carry%20out%20such%20a%20formula%20or%20am%20I%20destined%20to%20sit%20watching%20the%20%25%20on%20my%20status%20bar%20crawl%20to%20100%25%20for%20the%20rest%20of%20my%20days%3F%26nbsp%3B%20Is%20this%20what%20other%20people%20have%20to%20deal%20with%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAll%20advice%2Fdirection%20is%20welcomed.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAllison%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2149019%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2149084%22%20slang%3D%22en-US%22%3ERe%3A%20Formula%20speed%20%2F%20Laptop%20specification%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2149084%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F972128%22%20target%3D%22_blank%22%3E%40Al_Dyas%3C%2FA%3E%26nbsp%3BYou%20haven't%20really%20explained%20what%20you%20are%20indexing%20and%20matching.%20Comparing%2Fmatching%20such%20large%20data%20sets%20could%20perhaps%20be%20done%20with%20Power%20Query.%20It%20allows%20you%20to%20connect%20to%20the%20data%20without%20loading%20it%20into%20an%20Excel%20sheet.%20Not%20sure%2C%20though%2C%20if%20this%20could%20work%20you.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2149284%22%20slang%3D%22en-US%22%3ERe%3A%20Formula%20speed%20%2F%20Laptop%20specification%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2149284%22%20slang%3D%22en-US%22%3EExact%20match%20lookups%20can%20take%20a%20very%20long%20time%20with%20large%20spreadsheets.%20You%20might%20consider%20an%20alternate%20design%2C%20perhaps%20a%20database%20or%20using%20power%20query%20as%20suggested.%3CBR%20%2F%3E%3CBR%20%2F%3EOr%2C%20if%20your%20data%20can%20be%20sorted%20on%20the%20column%20containing%20your%20key%2C%20then%20you%20might%20make%20use%20of%20the%20approximate%20match%20option.%20For%20example%2C%20say%20the%20table%20is%20in%20A2%3AB8%20and%20the%20value%20I'm%20trying%20to%20match%20is%20in%20D2%2C%20then%20use%20an%20IF%20statement%20to%20return%20the%20value%20it%20actually%20matched%20to%20and%20confirm%20it%20is%20an%20exact%20match%20and%2C%20if%20so%2C%20return%20the%20value%20I%20want%20out%20of%20Column%20B.%20Approximate%20match%20lookups%20used%20in%20this%20fashion%20(binary%20lookup)%20are%20exponentially%20faster%20on%20large%20data%20sets.%3CBR%20%2F%3E%3CBR%20%2F%3E%3DIF(INDEX(A2%3AA9%2CMATCH(D2%2CA2%3AA9%2C1))%3DD2%2CINDEX(B2%3AB9%2CMATCH(D2%2CA2%3AA9%2C1))%2C0)%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2149469%22%20slang%3D%22en-US%22%3ERe%3A%20Formula%20speed%20%2F%20Laptop%20specification%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2149469%22%20slang%3D%22en-US%22%3E%3CP%3EThank%26nbsp%3Byou%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F403176%22%20target%3D%22_blank%22%3E%40Riny_van_Eekelen%3C%2FA%3E.%26nbsp%3B%20I%20have%20no%20idea%20what%20a%20power%20query%20is%20so%20I%20will%20find%20out%20and%20try%20that.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EA%20sample%20of%20the%20formula%20I%20use%20is%20this%3A%3C%2FP%3E%3CP%3E%3DINDEX('20201109%20MOSL_MDS_SSPID.xlsx'!%24I2%3A%24I229079%2CMATCH(B2%2C'20201109%20MOSL_MDS_SSPID.xlsx'!%24A2%3A%24A229079%2C0))%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThere%20are%20many%20different%20scenarios%20but%20I%20use%20the%20same%20formula%20structure%20for%20the%20majority.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFrom%20a%202016%20file%20I%20am%20looking%20at%20a%202019%20file%20to%20see%20how%20the%20data%26nbsp%3Bchanged%2C%20or%20if%20it%20has%20been%20removed.%26nbsp%3B%20For%20example%20the%20MATCH%20is%20looking%20for%20the%20exact%20sewerage%20point%26nbsp%3Bid%20(SPID)%26nbsp%3Breference%20numbers%20in%20both%20files.%26nbsp%3B%20The%20index%20returns%20the%20status%20of%20the%20SPID%20in%20the%202019%20file.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%20the%20index%20match%20formula%20answer%202%20question%20for%20me%2C%20is%20the%20SPID%20still%20active%20and%20if%20it%20is%20what%20is%20the%20status.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20another%20scenario%3A%20I%20have%20carried%20out%20a%20process%20to%20batch%20update%20the%20status%20field%20of%20a%20large%20number%20of%20SPIDs%20overnight%20and%20the%20following%20day%20I%20run%20an%20index%20match%20against%20today's%20report%20and%20yesterday's%20report%20to%20check%20that%20the%20update%20worked.%26nbsp%3B%20So%20again%20I%20am%20looking%20to%20see%20if%20the%20status%20of%20the%20SPID%20has%20changed%20as%20it%20should%20have.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20hope%20this%20helps%20and%20makes%20sense.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2149500%22%20slang%3D%22en-US%22%3ERe%3A%20Formula%20speed%20%2F%20Laptop%20specification%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2149500%22%20slang%3D%22en-US%22%3E%3CP%3EThank%26nbsp%3Byou%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F675152%22%20target%3D%22_blank%22%3E%40JMB17%3C%2FA%3E%26nbsp%3BI%20think%20I%20am%20starting%20to%20realise%20that%20I%20need%20to%20use%202%20formula%20instead%20of%201.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20hadn't%20made%20in%20clear%20in%20my%20initial%20post%20that%20I%20am%20always%20working%20between%202%20files.%26nbsp%3B%20First%20to%20see%20if%20the%20record%20exists%20in%20both%20files%20and%20second%20the%20return%20an%20exact%20bit%20of%20data%20from%20each%20record.%26nbsp%3B%20So%20i'm%20asking%20for%202%20outcomes%20and%20i'm%20begging%20to%20think%20I%20should%20be%20using%26nbsp%3B2%20different%20formulae%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20will%20definitely%20look%20at%20power%20queries%2C%20as%20I%20said%20in%20my%20last%20reply%2C%20I've%20never%20heard%20of%20these%20but%20will%20do%20some%20digging.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20work%20pretty%20much%20alone%20so%20no%20one%20to%20bounce%20ideas%20off%20so%20I%20am%20very%20grateful%20for%20the%20replies%20I%20have%20received.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAllison%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-2149587%22%20slang%3D%22en-US%22%3ERe%3A%20Formula%20speed%20%2F%20Laptop%20specification%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2149587%22%20slang%3D%22en-US%22%3E%3CP%3EI%20would%20use%20two%20columns%20to%20make%20the%20formulas%20shorter%2Feasier%20to%20follow.%20Also%2C%20if%20you%20are%20returning%20multiples%20columns%2C%20you%20only%20have%20to%20test%20once%20(the%20other%20formulas%20can%20just%20reference%20the%20cell%20that%20performs%20the%20test).%3CBR%20%2F%3E%3CBR%20%2F%3EIf%20your%20table%20in%2020201109%20MOSL_MDS_SSPID.xlsx%20can%20be%20sorted%20in%20ascending%20order%20on%20Column%20A%2C%20then%20you%20could%20try%3A%3CBR%20%2F%3E%3CBR%20%2F%3ETest%20for%20existence%20(let's%20say%20this%20formula%20is%20in%20cell%20C2%2C%26nbsp%3Bnote%20the%20match%20option%20is%201%20and%20not%200)%3A%3CBR%20%2F%3E%3DINDEX('20201109%20MOSL_MDS_SSPID.xlsx'!%24A2%3A%24A229079%2CMATCH(B2%2C'20201109%20MOSL_MDS_SSPID.xlsx'!%24A2%3A%24A229079%2C1))%3DB2%3CBR%20%2F%3E%3CBR%20%2F%3EThen%20test%20C2%20and%20return%20the%20value%20from%20Column%20I%2C%20or%20return%20%22Doesn't%20Exist%22%20(again%20-%20note%20the%20match%20option%20is%201)%3A%3CBR%20%2F%3E%3DIF(C2%2CINDEX('20201109%20MOSL_MDS_SSPID.xlsx'!%24I2%3A%24I229079%2CMATCH(B2%2C'20201109%20MOSL_MDS_SSPID.xlsx'!%24A2%3A%24A229079%2C1))%2C%22Doesn't%20Exist%22)%3CBR%20%2F%3E%3CBR%20%2F%3EThe%20key%20is%20that%20the%20data%20in%20your%20table%20MUST%20be%20able%20to%20be%20sorted%20in%20ascending%20order%20on%20your%20key%20column%20(in%20this%20case%2C%20Column%20A).%20And%2C%20since%20we%20are%20using%20an%20approximate%20match%2C%20you%20must%20perform%20the%20lookup%20twice%20-%20first%20to%20confirm%20the%20key%20it%20matched%20to%20is%20the%20key%20you%20are%20trying%20lookup.%20Then%2C%20if%20the%20key%20matches%2C%20perform%20the%20lookup%20and%20return%20the%20value%20you%20actually%20want%20(which%20makes%20the%20approximate%20match%20lookup%20an%20exact%20match%20lookup).%20Because%20the%20approximate%20match%20lookup%20method%20is%20much%20more%20efficient%2C%20you%20can%20speed%20up%20the%20calculation%20in%20spite%20of%20the%20fact%20that%20you%20are%20performing%20the%20lookup%20twice.%3CBR%20%2F%3E%3CBR%20%2F%3EThere's%20a%20short%20explanation%20here%2C%20but%20you%20can%20find%20more%20information%20if%20you%20google%20'excel%20binary%20lookup.'%3CBR%20%2F%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fwww.powerusersoftwares.com%2Fpost%2F2016%2F12%2F20%2Fmake-your-vlookup-run-a-hundred-times-faster-with-the-double-vlookup-trick%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fwww.powerusersoftwares.com%2Fpost%2F2016%2F12%2F20%2Fmake-your-vlookup-run-a-hundred-times-faster-with-the-double-vlookup-trick%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2149714%22%20slang%3D%22en-US%22%3ERe%3A%20Formula%20speed%20%2F%20Laptop%20specification%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2149714%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F675152%22%20target%3D%22_blank%22%3E%40JMB17%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20speechless%2C%20each%20formula%20worked%20instantly.%26nbsp%3B%20I%20will%20try%20them%20in%20my%20other%20work.%26nbsp%3B%20I%20am%20really%20trying%20not%20to%20get%20too%20excited%20before%20I've%20properly%26nbsp%3Btested%20it%20out%20but%26nbsp%3Bthat%20was%20so%20much%20quicker.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20google%20searched%20a%20few%20times%2C%20when%20I've%20had%20a%20few%20minutes%20spare%2C%26nbsp%3Bbut%20never%20found%20anything%20that%20made%20a%20difference.%26nbsp%3B%20I%20obviously%20wasn't%20looking%20in%20the%20right%20place%20or%20often%20enough.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI've%20just%20had%20a%20look%20at%20power%20query%20and%20yes%20I%20think%20that%20is%20worth%20spending%20more%20time%20investigating%20too%20think%20you%20are%20all%20amazing%20and%20so%20kind%20for%20sharing.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%2C%20I%20am%20so%20grateful.%26nbsp%3B%20You%20have%20no%20idea%20how%20helpful%20you%20have%20just%20been.%3C%2FP%3E%3CP%3EAllison%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2149760%22%20slang%3D%22en-US%22%3ERe%3A%20Formula%20speed%20%2F%20Laptop%20specification%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2149760%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F972128%22%20target%3D%22_blank%22%3E%40Al_Dyas%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20method%20that%20approximate%20matches%20use%20are%20much%20more%20efficient%20due%20to%20the%20data%20being%20sorted.%20The%20exact%20match%20option%20is%20linear%2C%20the%20function%20starts%20at%20the%20top%20and%20looks%20at%20every%20value%20until%20it%20finds%20what%20it's%20looking%20for.%20But%2C%20the%20approximate%20match%20works%20by%20repeatedly%20'guessing'%20by%20selecting%20the%20value%20in%20the%20middle%20of%20your%20table%20and%20testing%20it%20for%20a%20match.%20If%20it%20is%20greater%20than%20what%20you're%20trying%20to%20match%2C%20then%20it%20throws%20away%20the%20bottom%20half%20of%20the%20table.%20If%20less%20than%2C%20then%20it%20throws%20away%20the%20top%20half%20(made%20possible%20because%20the%20data%20is%20sorted).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%2C%20in%20this%20fashion%2C%20it%20can%20throw%20away%20half%20the%20table%20with%20each%20guess%20and%20is%20exponentially%20faster%20(it%20would%20only%20require%2020%20guesses%20to%20perform%20a%20lookup%20on%20a%20table%20that%20took%20up%20all%201%20million%20rows%20of%20a%20worksheet%20-%20and%20the%20table%20size%20could%20double%2C%20but%20it%20would%20only%20add%201%20more%20guess%20the%20function%20would%20have%20to%20perform).%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

Hello

I am a regular user of the index match formula between spreadsheets containing over 400,000 records and this can take up to 30 minutes to complete.  On smaller spreadsheets the formula regularly takes 5 to 10 minutes.  I have tried a variety of ways to improve the speed:

 

working on my hard drive instead of my work network;

always pasting values;

turn on manual calculation;

look for ways of cutting down the data I need to analyse.

 

Our IT department tell me I have the maximum ram on my laptop which is a core i5 elitebook.  they loaned me a notebook, the highest spec they provide, but it made little to no difference so I didn't think it was worth the expense.  No one in IT seems to be able to direct me to a solution other than to tell me to use other software but then can't tell me what that is other than Tableau which just wouldn't work for me or my department.  On top of the Excel 13 I already had they have me Excel 2010 64 but this just causes issues and sometimes the formula doesn't recognise i'm working between 2 spreadsheets so I have to close and reopen.

 

I am not well up on laptop specifications so can't tell you exactly what spec the notebook was.  they even gave me a virtual desktop which made no difference at all.

 

The CPU on my laptop occasionally reaches 99% but even when it doesn't it is extremely slow during calculations.

 

I am currently working from home too but to be fair I had the same problem when I worked in the office and its been going on for 2 years.  We use citrix but am more than happy to work of the hard drive if the formula worked faster, which it currently doesn't. 

 

Is there anyone who can advise me on the spec of laptop that I would need to quickly carry out such a formula or am I destined to sit watching the % on my status bar crawl to 100% for the rest of my days?  Is this what other people have to deal with?

 

All advice/direction is welcomed.

 

Allison

18 Replies

@Al_Dyas You haven't really explained what you are indexing and matching. Comparing/matching such large data sets could perhaps be done with Power Query. It allows you to connect to the data without loading it into an Excel sheet. Not sure, though, if this could work you.

Exact match lookups can take a very long time with large spreadsheets. You might consider an alternate design, perhaps a database or using power query as suggested.

Or, if your data can be sorted on the column containing your key, then you might make use of the approximate match option. For example, say the table is in A2:B8 and the value I'm trying to match is in D2, then use an IF statement to return the value it actually matched to and confirm it is an exact match and, if so, return the value I want out of Column B. Approximate match lookups used in this fashion (binary lookup) are exponentially faster on large data sets.

=IF(INDEX(A2:A9,MATCH(D2,A2:A9,1))=D2,INDEX(B2:B9,MATCH(D2,A2:A9,1)),0)

Thank you @Riny_van_Eekelen.  I have no idea what a power query is so I will find out and try that.

 

A sample of the formula I use is this:

=INDEX('20201109 MOSL_MDS_SSPID.xlsx'!$I2:$I229079,MATCH(B2,'20201109 MOSL_MDS_SSPID.xlsx'!$A2:$A229079,0))

 

There are many different scenarios but I use the same formula structure for the majority.

 

From a 2016 file I am looking at a 2019 file to see how the data changed, or if it has been removed.  For example the MATCH is looking for the exact sewerage point id (SPID) reference numbers in both files.  The index returns the status of the SPID in the 2019 file.

 

So the index match formula answer 2 question for me, is the SPID still active and if it is what is the status.

 

In another scenario: I have carried out a process to batch update the status field of a large number of SPIDs overnight and the following day I run an index match against today's report and yesterday's report to check that the update worked.  So again I am looking to see if the status of the SPID has changed as it should have.

 

I hope this helps and makes sense.

Thank you@JMB17 I think I am starting to realise that I need to use 2 formula instead of 1.

 

I hadn't made in clear in my initial post that I am always working between 2 files.  First to see if the record exists in both files and second the return an exact bit of data from each record.  So i'm asking for 2 outcomes and i'm begging to think I should be using 2 different formulae?

 

I will definitely look at power queries, as I said in my last reply, I've never heard of these but will do some digging.

 

I work pretty much alone so no one to bounce ideas off so I am very grateful for the replies I have received.

 

Allison

 

 

I would use two columns to make the formulas shorter/easier to follow. Also, if you are returning multiples columns, you only have to test once (the other formulas can just reference the cell that performs the test).

If your table in 20201109 MOSL_MDS_SSPID.xlsx can be sorted in ascending order on Column A, then you could try:

Test for existence (let's say this formula is in cell C2, note the match option is 1 and not 0):
=INDEX('20201109 MOSL_MDS_SSPID.xlsx'!$A2:$A229079,MATCH(B2,'20201109 MOSL_MDS_SSPID.xlsx'!$A2:$A229079,1))=B2

Then test C2 and return the value from Column I, or return "Doesn't Exist" (again - note the match option is 1):
=IF(C2,INDEX('20201109 MOSL_MDS_SSPID.xlsx'!$I2:$I229079,MATCH(B2,'20201109 MOSL_MDS_SSPID.xlsx'!$A2:$A229079,1)),"Doesn't Exist")

The key is that the data in your table MUST be able to be sorted in ascending order on your key column (in this case, Column A). And, since we are using an approximate match, you must perform the lookup twice - first to confirm the key it matched to is the key you are trying lookup. Then, if the key matches, perform the lookup and return the value you actually want (which makes the approximate match lookup an exact match lookup). Because the approximate match lookup method is much more efficient, you can speed up the calculation in spite of the fact that you are performing the lookup twice.

There's a short explanation here, but you can find more information if you google 'excel binary lookup.'

https://www.powerusersoftwares.com/post/2016/12/20/make-your-vlookup-run-a-hundred-times-faster-with...

@JMB17

 

I am speechless, each formula worked instantly.  I will try them in my other work.  I am really trying not to get too excited before I've properly tested it out but that was so much quicker.

 

I have google searched a few times, when I've had a few minutes spare, but never found anything that made a difference.  I obviously wasn't looking in the right place or often enough.

 

I've just had a look at power query and yes I think that is worth spending more time investigating too think you are all amazing and so kind for sharing.

 

Thank you, I am so grateful.  You have no idea how helpful you have just been.

Allison

@Al_Dyas 

 

The method that approximate matches use are much more efficient due to the data being sorted. The exact match option is linear, the function starts at the top and looks at every value until it finds what it's looking for. But, the approximate match works by repeatedly 'guessing' by selecting the value in the middle of your table and testing it for a match. If it is greater than what you're trying to match, then it throws away the bottom half of the table. If less than, then it throws away the top half (made possible because the data is sorted).

 

So, in this fashion, it can throw away half the table with each guess and is exponentially faster (it would only require 20 guesses to perform a lookup on a table that took up all 1 million rows of a worksheet - and the table size could double, but it would only add 1 more guess the function would have to perform).

That makes sense. Every day is a school day! I will be keeping all this information in a reference file and also sharing it with my colleagues at work. This will definitely help one or two of them who I know use the same index match formula I do, just not as often.

Thank you @JMB17. I will test this out thoroughly and also check out power query and will feedback here.
Have a smashing weekend
Allison
I used to compare it to how you would look numbers up in a phone book (you wouldn't start at the beginning and check every name, but flip to the middle and see where you land). But, that analogy may be lost on the newer generations as it may be before their time, lol.

Definitely follow through on looking at power query and have a great weekend!

@Al_Dyas 

Reasons for slow computation and poor performance

Volatile functions slow your performance

The term volatile, simply put, means that these formulas are always recalculated.

Conditional formatting makes your file slow

Many complex formulas degrade your performance

Incorrect or too large references lead to a loss of speed

Large workbooks result in slower worksheets

 

Increase the speed and improve the performance

Save your file as a binary workbook for better performance

Use pivot tables

Use conditional formatting carefully for better performance

Avoid volatile functions for more performance

Customize the reference areas and use structured references and names

Improve your formula structure for more speed

Avoid matrix formulas in your files

Replace formulas with fixed values

Avoid links between workbooks

Sort your source data for faster calculations

Use VBA for better performance

Switch to manual calculation

 

Can all workbooks be made faster?

Check links in your file

Remove incorrect or unnecessary formulas

Delete empty cells from memory

Check if you are using volatile functions

Check the references in your formulas

Check your formulas and conditional formatting

 

Finally, I can only recommend you, if none of the above steps help then you should read this article.

These go into detail on the topic and offer alternative paths.

The articles are sometimes a bit very technical and best only for advanced users but still very helpful.

Excel performance: Improving calculation performance

Excel performance: Tips for optimizing performance obstructions

 

Hardware: I recommend an SSD hard drive and at least 16GB RAM (when it comes to that many data sets).

At the same time check whether all processors are activated.

Instructions for the check (example with processor i7):

Press the key combination [Ctrl] + [Alt] + [Del] and select the "Task Manager". Switch to the "Performance" tab and click on "CPU" on the left. In the right area of the window you can now read the number of cores used by Windows under. Your quad-core processor should read "Cores: 4" there.

 

I would be happy to know if I could help.

 

Nikolino

I know I don't know anything (Socrates)

 

* Kindly Mark and Vote this reply if it helps please, as it will be beneficial to more Community members reading here

 

@NikolinoDE 

I have found that Microsoft broke the Worksheet calculation in 64bit versions later than 1902.  Stay away from xlCalculationAutomatic in newer versions of Excel you have large spreadsheets or spreadsheets in which cells are periodically changed.   You must turn off calculation (Application.Calculation = xlCalculationManual) an fire the calculation of sheet only when you need to otherwise risk the total crash of Excel.   I have spent a considerable amount of time and headache, including a ticket with Microsoft until I finally found that Microsoft updates specifically 2012 and 2101 have been totally screwed up!

 

I have about 15 spreadsheet VBA applications running at customer facilities that poll and populate sheets with operational data through a Modbus communication active X (MBAXP), all running anywhere between versions 1708 to 1902, these applications running flawlessly for weeks on end no problem whatsoever.  Then the last two applications I ran into a huge problem.  The same application would hang as soon as it started, I couldn't select any cell it would run for about 10 minutes then the darn Excel would crash and restart with recovered versions of the same application, the recovered application having no difference.  I originally thought it was a computer problem until I started experimenting with other versions Excel!  I downgraded to earlier versions and found that all was good, polling selecting was normal.  Then I experimented with the newer version, specifically 2012, thinking it could be the MBAXP.  After replacing the MBAXP with a timer and a random number generated sheet populating macro I found that the hangup was the sheet calculation, timing the difference between 2012 (2101 was a little better) and the version 1902 at sometimes over 50 times as long in the new versions!!  I had to limit the timer for - again - after about 10 minutes the darn Excel would totally crash and restart. No one at Microsoft (or anywhere else) seems to know why there is such a huge loss in calculation speed.  I can only guess the programmers at Microsoft don't know what they are doing.  While I finally solve the mystery, I am left to wonder whether Microsoft is intent on screwing up the product, leaving me to consider alternatives.  Its quite a bummer.   BTW the following link is a step by step instruction on downgrading to a working Excel version.  Try v1902 it works.  https://answers.microsoft.com/en-us/msoffice/forum/msoffice_install-mso_win10-mso_o365b/revert-to-a-...

@rpbenz 

Everything I could find in microsoft's quiver was sent to you as links. As i'm just a simple member, i can't help anymore.

If this information does not help you, contact Microsoft support.

 

Excel performance: Improving calculation performance

 

Excel performance: Performance and limit improvements

 

Excel performance: Tips for optimizing performance obstructions

 

How to clean up an Excel workbook so that it uses less memory

(Check whether the workbooks were created with earlier Excel versions, if so, change this, maybe this could help).

 

Known issues with Office and Windows 10

 

Thank you for your patience and time.

 

Hope I could help you at least a little.

 

I wish you continued success with Excel...Don't forget, Excel is the best invention since there was chocolate :)).

 

Nikolino

I know I don't know anything (Socrates)

 

Thank you @NikolinoDE there is a lot to go through there but I will and I will feed back to you.

 

I am absolutely blown away by how helpful everyone here has been.  I really didn't expect so many replies.  Lots for me to review and try out and investigate.

 

I will certainly share the hardware spec with my manager to see what she can do for me.  In the meantime I will make a start on reviewing my master workbooks to see where I can follow all the tips and cut out any unnecessary tasks for excel to do.  I've promised to share with my colleagues to as there are other in my team having similar problems.

 

I will go through your list item by item and make a note of any improvements.  Though it may take me a week or two because i'll have to do it all in between work but there will be opportunities as I am going along.

 

Thank you so much for taking the time to share.  I've struggled for two years and there have been tears and tantrums along the way so I am excited to get a bit of control back.

 

Allison 

@Al_Dyas 

By the way, on which edition of Excel you are?

Thank you @rpbenz.  Noted about turning off automatic calculation, I will make more use of this than I am currently doing.

 

I also get a lot of 'Excel not responding' messages and am just left sitting and waiting, or putting a wash on, making a brew, doing a bit of deadheading in the garden (summer obviously).

 

I am not sure i'll be able to swap between excel versions as I am on my employers network which is very restricted but I have lots of tips to work through and if they don't speed things up for me I will certainly be asking the question of our IT department.  I do find 2010 64 bit more problematic and not helpful in that I can't have multiple windows open.

 

Thank you for sharing, its all helpful and informative and I am grateful

Allison

 

Bloomin eck@NikolinoDE that is brilliant.  I will take a look and let you know how I get on.

 

That must have taken a while so thank you for your time.

 

I'd better get crackin.

 

Allison

Hi @Sergei Baklan 

 

So looking in About MS Excel it says:

MS Excel 2013 (15.0.5311.1000) MSO (15.0.5275.100) 32-bit

No idea what the bits in brackets mean but this is the version I use regularly through Citrix.

 

I also have access to:

MS Excel 2010

version 14.0.6023.1000 (64-bit)

I was given access to this version to help with working with the larger spreadsheets but it doesn't and I can't have multiple windows open so I tend to use 2013 most of the time.

 

I hope this answers your question.

 

Allison

 

 

Look I use to have the same problem with a slow Lenovo with amd processor. One day I decide to change the hdd with an ssd and surprise! A laptop with 8g of mem was slower than a 20 year old laptop. You change ssd , do little research on the net and you tube create live usb reinstall win and you will be pleasantly surprised!