Large File and Need to Have Formulas

%3CLINGO-SUB%20id%3D%22lingo-sub-1995556%22%20slang%3D%22en-US%22%3ELarge%20File%20and%20Need%20to%20Have%20Formulas%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1995556%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Everyone%20-%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20working%20on%20a%20large%20data%20file%20and%20was%20looking%20for%20a%20schematic%20(or%20list)%20of%20how%20exactly%20excel%20formulas%20work%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFor%20example%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3Dif(B2%3D1%2C1%2C0)%20-%20would%20just%20look%20at%20one%26nbsp%3Bcolumn%20(B)%20and%20one%20row%20(2)%20and%20compares%20that%20to%20a%20value%20(1)%20so%20the%20processing%20time%20for%20when%20I%20try%20to%20copy%20it%20down%20my%20workbook%20the%20processing%20time%20is%20minimized%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3Dvlookup(1%2CD%3AG%2C3)%20-%20looks%20through%20entire%20column%20D%20for%20matching%20values%20to%201%20then%20it%20searches%20for%20three%20columns%20over%3B%20I%20would%20imagine%20this%20would%20take%20excel%20longer%20to%20complete%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMy%20excel%20file%20is%201%2C000%2C000%20rows%20by%20500%20columns%2C%20so%20I%20would%20imagine%20that%20the%20file%20takes%20a%20lot%20longer%20than%20I'd%20hoped%20for%20because%20it%20has%20multiple%20vlookups.%20I%20could%20be%20completely%20wrong.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20someone%20can%20point%20me%20in%20the%20direction%20of%20a%20schematic%20that%20has%20the%20order%20of%20formulas%20working%2C%20that%20would%20be%20amazing.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20all.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1995556%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-1995593%22%20slang%3D%22en-US%22%3ERe%3A%20Large%20File%20and%20Need%20to%20Have%20Formulas%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1995593%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F904375%22%20target%3D%22_blank%22%3E%40jonathanchi%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECan%20you%20expand%20further%20on%20what%20you%20mean%20by%20%22%3CSPAN%3Ea%20schematic%20that%20has%20the%20order%20of%20formulas%20working%22.%20All%20aggregation%2C%20logical%20and%20lookup%2Freference%20formulas%20will%20work%2C%20it%20depends%20on%20what%20you%20are%20trying%20to%20calculate.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EOne%20warning%20is%20that%20an%20excel%20should%20not%20be%20treated%20as%20a%20database%2C%20as%20it%20is%20very%20limited%20and%20the%20runtime%20to%20do%20any%20operation%20is%20longer%20and%20more%20prone%20to%20crashes.%20If%20you%20are%20interested%20in%20different%20schematics%20to%20work%20with%20your%20data%2C%20I%20would%20recommend%20indexing%20your%20data%20to%20make%20it%20more%20manageable.%20For%20example%2C%20separating%20the%20large%20file%20into%20different%20tables%2Fspreadsheets%20that%20can%20then%20be%20joined%20and%20queried%20through%20PowerQuery%20or%20VBA.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Visitor

Hi Everyone -

 

I am working on a large data file and was looking for a schematic (or list) of how exactly excel formulas work

 

For example:

 

=if(B2=1,1,0) - would just look at one column (B) and one row (2) and compares that to a value (1) so the processing time for when I try to copy it down my workbook the processing time is minimized

 

=vlookup(1,D:G,3) - looks through entire column D for matching values to 1 then it searches for three columns over; I would imagine this would take excel longer to complete

 

My excel file is 1,000,000 rows by 500 columns, so I would imagine that the file takes a lot longer than I'd hoped for because it has multiple vlookups. I could be completely wrong.

 

If someone can point me in the direction of a schematic that has the order of formulas working, that would be amazing.

 

Thanks all.

2 Replies

@jonathanchi 

Can you expand further on what you mean by "a schematic that has the order of formulas working". All aggregation, logical and lookup/reference formulas will work, it depends on what you are trying to calculate.

 

One warning is that an excel should not be treated as a database, as it is very limited and the runtime to do any operation is longer and more prone to crashes. If you are interested in different schematics to work with your data, I would recommend indexing your data to make it more manageable. For example, separating the large file into different tables/spreadsheets that can then be joined and queried through PowerQuery or VBA.

@jonathanchi 

Of course VLOOKUP() doesn't check cells sequentially one by one, that's more complex mechanism. And it depends on which version of Excel you are, couple of years ago performance of such functions was dramatically improved. Now, in addition to VLOOKUP() and INDEX/MATCH we have XLOOKUP().

 

More about that is here

Excel performance - Tips for optimizing performance obstructions | Microsoft Docs

Excel performance - Performance and limit improvements | Microsoft Docs

Excel performance - Improving calculation performance | Microsoft Docs