Home

How to make changes ranges in an array/formula without manually modifying it each time

%3CLINGO-SUB%20id%3D%22lingo-sub-370077%22%20slang%3D%22en-US%22%3EHow%20to%20make%20changes%20ranges%20in%20an%20array%2Fformula%20without%20manually%20modifying%20it%20each%20time%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-370077%22%20slang%3D%22en-US%22%3E%3CP%3EWhen%20I%20copy%2Fpaste%20data%20into%20a%20spreadsheet%2C%20the%20array%20below%20looks%20at%20ranges%20in%20columns%20O%20and%20B.%20However%2C%20the%20next%20time%20I%20copy%2Fpaste%20data%20in%20the%20columns%20may%20be%20different.....column%20O%20and%20A%2C%20or%20H%20and%20L.%20Is%20there%20a%20way%20to%20be%20able%20to%20make%20this%20change%20without%20manually%20modifying%20the%20array%20each%20time%3F%20Perhaps%20inputting%20a%20letter%20(%22H%22)%20into%20a%20cell%20and%20it%20will%20make%20the%20change%20from%20O2%3AO245%20to%20H2%3AH245%20for%20example%3F%20Or%20a%20drop%20down%20menu%20that%20has%20all%20the%20possible%20options%20available%20(A2%3AA245%2C%20B2%3AB245%2C%20C2%3AC245%2C%20etc)%20and%20that%20gets%20inputted%20into%20the%20array%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%7B%3DIFERROR(INDEX(O2%3AO245%2C%20SMALL(IF(U%241%3DB2%3AB244%2C%20ROW(O2%3AO244)-1%2C%22%22)%2C%20ROW()-1))%2C%22%22)%7D%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ELet%20me%20know%20if%20you%20can%20help!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%2C%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EGreg%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-370077%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-383432%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20make%20changes%20ranges%20in%20an%20array%2Fformula%20without%20manually%20modifying%20it%20each%20time%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-383432%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%20would%20consider%20tables%20as%20the%20ideal%20way%20of%20holding%20the%20initial%20input%20and%20reference%20data%20for%20a%20model.%26nbsp%3B%20My%20aim%20when%20developing%20a%20solution%20is%20to%20capture%20as%20much%20structure%20as%20I%20can%20within%20the%20solution%20and%2C%20also%2C%20to%20link%20it%20as%20tightly%20as%20possible%20to%20the%20terminology%20and%20assumptions%20of%20the%20application%20domain.%20%26nbsp%3B%3C%2FP%3E%3CP%3EThat%20rather%20contrasts%20with%20the%20normal%20'tips%20and%20tricks'%20genre%20aimed%20at%20achieving%20(bad%3F)%20solutions%20faster.%26nbsp%3B%20Speed%20is%20good%20but%20it%20should%20not%20be%20the%20main%20objective.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-383412%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20make%20changes%20ranges%20in%20an%20array%2Fformula%20without%20manually%20modifying%20it%20each%20time%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-383412%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F214174%22%20target%3D%22_blank%22%3E%40Peter%20Bartholomew%3C%2FA%3E%26nbsp%3B-%20yes%2C%20agree.%20Named%20ranges%2Fformulas%20in%20general%20are%20not%20very%20popular%2C%20even%20tables%20which%20in%20some%20extent%20could%20be%20considered%20as%20dynamic%20named%20ranges.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-383409%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20make%20changes%20ranges%20in%20an%20array%2Fformula%20without%20manually%20modifying%20it%20each%20time%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-383409%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%20think%20the%20use%20of%20SUMPRODUCT%20as%20a%20wrapper%20for%20array%20formulas%20is%20reasonably%20well%20known%2C%20though%20some%20would%20deny%20that%20they%20are%20actually%20performing%20an%20array%20calculation%20simply%20because%20they%20didn't%20need%20CSE.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20find%20it%20less%20well-known%20that%20a%20formula%20placed%20into%20the%20'refers%20to'%20box%20of%20a%20Name%20will%20also%20be%20evaluated%20as%20an%20array%20every%20time%20the%20Name%20is%20referenced.%26nbsp%3B%20Thus%3C%2FP%3E%3CP%3E%3DSUM(%20myArrayFormulaByName%20)%3C%2FP%3E%3CP%3Edoes%20not%20need%20CSE%20even%20though%20it%20would%20if%20the%20%3CSPAN%3Eparameter%3C%2FSPAN%3E%20were%20an%20e%3CSPAN%3Explicitly%20written%20%3C%2FSPAN%3Earray%20formula.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-383020%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20make%20changes%20ranges%20in%20an%20array%2Fformula%20without%20manually%20modifying%20it%20each%20time%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-383020%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F214174%22%20target%3D%22_blank%22%3E%40Peter%20Bartholomew%3C%2FA%3E%26nbsp%3B%2C%20you%20may%20wrap%20array%20calculations%20by%20AGGREGATE%2C%20SUMPRODUCT%2C...%20without%20named%20ranges%2C%20isn't%20it%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-383016%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20make%20changes%20ranges%20in%20an%20array%2Fformula%20without%20manually%20modifying%20it%20each%20time%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-383016%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F301000%22%20target%3D%22_blank%22%3E%40ILikePi%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDon't%20let%20the%20inadequacies%20of%20the%20user%20interface%20put%20you%20off%20the%20clarity%20of%20thought%20that%20comes%20with%20array%20formulas.%26nbsp%3B%20Virtually%20no%20one%20uses%20array%20formulas%20so%20it%20is%20not%20surprising%20that%20the%20user%20interface%20is%20clunky%20and%20inconvenient%20(I%20once%20suggested%20that%20the%20defaults%20should%20be%20reversed%20and%20those%20who%20wish%20to%20use%20implicit%20intersection%20to%20destroy%20arrays%20should%20be%20forced%20to%20go%20through%20the%20inconvenience%20of%20CSE!)%3C%2FP%3E%3CP%3EFor%20this%20question%2C%20I%20had%20waded%20through%20the%20sea%20of%20direct%20notation%2C%20if%20finished%20with%3C%2FP%3E%3CP%3E%7B%3D%20IFERROR(%20INDEX(%20ValueArray%2C%20SMALL(%20IF(%20TestArray%3DCriterion%2C%20k%20)%2C%20k%20)%20)%2C%20%22%22)%7D%3C%2FP%3E%3CP%3EHow%20one%20defines%20ValueArray%20is%20a%20separate%20issue%3B%20it%20would%20normally%20be%20absolute%20but%20could%20be%20defined%20as%20column%20relative%20or%20movable%20through%20the%20use%20of%20OFFSET.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhat%20is%20now%20possible%20with%20dynamic%20arrays%20is%20to%20reduce%20the%20whole%20formula%20to%3C%2FP%3E%3CP%3E%3D%20FILTER(%20ValueArray%2C%20TestArray%3DCriterion%2C%20%22Null%22%20)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMy%20other%20observation%20would%20be%20that%20a%20formula%20defined%20as%20Named%20formula%20always%20has%20been%20protected%20against%20the%20ravages%20of%20implicit%20intersection.%26nbsp%3B%20That%20provides%20an%20alternative%20strategy%20to%20hiding%20array%20calculations%20in%20one%20of%20the%20few%20functions%20that%20work%20properly%20with%20arrays%20(AGGREGATE%2C%20SUMPRODUCT%2C%20LOOKUP%20etc.)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-382936%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20make%20changes%20ranges%20in%20an%20array%2Fformula%20without%20manually%20modifying%20it%20each%20time%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-382936%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F301000%22%20target%3D%22_blank%22%3E%40ILikePi%3C%2FA%3E%20%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20your%20case%20you%20may%20use%20AGGREGATE%20to%20avoid%20array%20formula.%20And%2C%20as%20variant%2C%20if%20your%20ranges%20are%20always%20start%20from%20the%20same%20row%20(second%20one)%20and%20they%20are%20of%20same%20height%2C%20OFFSET%20could%20be%20used%20for%20the%20reference.%20If%20number%20of%20columns%20to%20offset%20from%20column%20A%20are%20parametrised%20in%20cells%20A1%20and%20B1%20that%20could%20be%20like%3C%2FP%3E%0A%3CPRE%3E%3DIFERROR(INDEX(OFFSET(%24A%241%2C1%2C%24B%241%2C250)%2CAGGREGATE(15%2C6%2C1%2F(%24U%241%3DOFFSET(%24A%241%2C1%2C%24A%241%2C250))*(ROW(%24C%242%3A%24C%2425)-1)%2C(ROW()-1)))%2C%22%22)%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-370237%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20make%20changes%20ranges%20in%20an%20array%2Fformula%20without%20manually%20modifying%20it%20each%20time%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-370237%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F301568%22%20target%3D%22_blank%22%3E%40gms4b%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThat's%20awesome%2C%20and%20interesting.%26nbsp%3B%3C%2FP%3E%3CP%3EI've%20always%20hated%20array%20formula's%20because%20of%20the%20whole%20Ctrl%2BEnter%20thing.%20If%20this%20works%20you%20could%20technically%20build%20a%20whole%20formula%20in%20cell%20A1%20(minus%20the%20curly%20brackets%7B%7D).%20and%20then%20make%20your%20array%20formula%20only%20the%20indirect%20i.e.%20%3D%7BINDIRECT(A1)%7D%20if%20that%20maintains%20the%20Ctrl%20enter%2C%20you%20could%20make%20changes%20without%20the%20worry%20of%20accidentally%20not%20hitting%20Ctrl%2BEnter.%3C%2FP%3E%3CP%3EAlthough%20that%20only%20works%20if%20you%20only%20have%20the%20formula%20in%201%20cell%20and%20aren't%20filling%20down%20the%20formula.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAnyway%20glad%20your%20workbook%20is%20working.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-370231%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20make%20changes%20ranges%20in%20an%20array%2Fformula%20without%20manually%20modifying%20it%20each%20time%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-370231%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F301000%22%20target%3D%22_blank%22%3E%40ILikePi%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHoly%20crap!%20That%20worked!!!!!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%20awesome......thank%20you%20so%20much%20for%20your%20help!!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-370215%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20make%20changes%20ranges%20in%20an%20array%2Fformula%20without%20manually%20modifying%20it%20each%20time%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-370215%22%20slang%3D%22en-US%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20believe%20you%20could%20use%20Indirect%2C%3C%2FP%3E%3CP%3EI%20am%20only%20going%20to%20update%20the%20first%20O%20reference%20in%20the%20below%20example.%20I%20am%20going%20to%20put%20the%20reference%20letter%20%22H%22%20in%20Cell%20A1%20to%20change%20it%20to%20H%20or%20whatever%20letter%20you%20put%20in%20Cell%20A1.%20I%20have%20never%20done%20this%20(used%20indirect)%20within%20an%20array%20function%20before%20so%20I%20am%20crossing%20fingers.%3C%2FP%3E%3CP%3EYours%3A%3C%2FP%3E%3CP%3E%3CSPAN%3E%7B%3DIFERROR(INDEX(%3CSTRONG%3EO2%3AO245%3C%2FSTRONG%3E%2C%20SMALL(IF(U%241%3DB2%3AB244%2C%20ROW(O2%3AO244)-1%2C%22%22)%2C%20ROW()-1))%2C%22%22)%7D%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EO2%3AO245%20is%20replaced%20with%26nbsp%3BINDIRECT(A1%20%26amp%3B%20%222%3A%22%26amp%3B%20A1%20%26amp%3B%22245%22)%26nbsp%3B%20in%20mine.%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3E%7B%3DIFERROR(INDEX(%3CSTRONG%3EINDIRECT(A1%20%26amp%3B%20%222%3A%22%26amp%3B%20A1%20%26amp%3B%22245%22)%3C%2FSTRONG%3E%2C%20SMALL(IF(U%241%3DB2%3AB244%2C%20ROW(O2%3AO244)-1%2C%22%22)%2C%20ROW()-1))%2C%22%22)%7D%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EIf%20you%20use%20the%20Evaluate%20formula%20tool%20in%20the%20formulas%20tab%20and%20step%20through%20this%20you%20will%20see%26nbsp%3BINDIRECT(A1%20%26amp%3B%20%222%3A%22%26amp%3B%20A1%20%26amp%3B%22245%22)%26nbsp%3B%20get%20replaced%20with%20H2%3AH245.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EYou%20could%20also%20build%20the%20text%20in%20a%20separate%20cell%20and%20then%20reference%20it%2C%20for%20example%20keeping%20A1%20as%20%22H%22%20in%20Cell%20B1%20you%20could%20have%20a%20formula%20%3D%20A1%20%26amp%3B%20%222%3A%22%20%26amp%3B%20A1%20%26amp%3B%22245%22%20you%20would%20then%20see%20%22H2%3AH245%22%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3Eand%20then%3A%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%7B%3DIFERROR(INDEX(%3CSTRONG%3EINDIRECT(B1)%3C%2FSTRONG%3E%2C%20SMALL(IF(U%241%3DB2%3AB244%2C%20ROW(O2%3AO244)-1%2C%22%22)%2C%20ROW()-1))%2C%22%22)%7D%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EGood%20luck%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
gms4b
Contributor

When I copy/paste data into a spreadsheet, the array below looks at ranges in columns O and B. However, the next time I copy/paste data in the columns may be different.....column O and A, or H and L. Is there a way to be able to make this change without manually modifying the array each time? Perhaps inputting a letter ("H") into a cell and it will make the change from O2:O245 to H2:H245 for example? Or a drop down menu that has all the possible options available (A2:A245, B2:B245, C2:C245, etc) and that gets inputted into the array?

 

{=IFERROR(INDEX(O2:O245, SMALL(IF(U$1=B2:B244, ROW(O2:O244)-1,""), ROW()-1)),"")}

 

Let me know if you can help!

 

Thanks,


Greg

 

 

9 Replies

 

I believe you could use Indirect,

I am only going to update the first O reference in the below example. I am going to put the reference letter "H" in Cell A1 to change it to H or whatever letter you put in Cell A1. I have never done this (used indirect) within an array function before so I am crossing fingers.

Yours:

{=IFERROR(INDEX(O2:O245, SMALL(IF(U$1=B2:B244, ROW(O2:O244)-1,""), ROW()-1)),"")}

 

O2:O245 is replaced with INDIRECT(A1 & "2:"& A1 &"245")  in mine. 

 

{=IFERROR(INDEX(INDIRECT(A1 & "2:"& A1 &"245"), SMALL(IF(U$1=B2:B244, ROW(O2:O244)-1,""), ROW()-1)),"")}

 

If you use the Evaluate formula tool in the formulas tab and step through this you will see INDIRECT(A1 & "2:"& A1 &"245")  get replaced with H2:H245.

 

You could also build the text in a separate cell and then reference it, for example keeping A1 as "H" in Cell B1 you could have a formula = A1 & "2:" & A1 &"245" you would then see "H2:H245"

and then:

{=IFERROR(INDEX(INDIRECT(B1), SMALL(IF(U$1=B2:B244, ROW(O2:O244)-1,""), ROW()-1)),"")}

 

 

Good luck

@ILikePi 

 

Holy crap! That worked!!!!!

 

So awesome......thank you so much for your help!!

 

@gms4b 

That's awesome, and interesting. 

I've always hated array formula's because of the whole Ctrl+Enter thing. If this works you could technically build a whole formula in cell A1 (minus the curly brackets{}). and then make your array formula only the indirect i.e. ={INDIRECT(A1)} if that maintains the Ctrl enter, you could make changes without the worry of accidentally not hitting Ctrl+Enter.

Although that only works if you only have the formula in 1 cell and aren't filling down the formula.

 

Anyway glad your workbook is working.

@ILikePi ,

 

I your case you may use AGGREGATE to avoid array formula. And, as variant, if your ranges are always start from the same row (second one) and they are of same height, OFFSET could be used for the reference. If number of columns to offset from column A are parametrised in cells A1 and B1 that could be like

=IFERROR(INDEX(OFFSET($A$1,1,$B$1,250),AGGREGATE(15,6,1/($U$1=OFFSET($A$1,1,$A$1,250))*(ROW($C$2:$C$25)-1),(ROW()-1))),"")

@ILikePi 

Don't let the inadequacies of the user interface put you off the clarity of thought that comes with array formulas.  Virtually no one uses array formulas so it is not surprising that the user interface is clunky and inconvenient (I once suggested that the defaults should be reversed and those who wish to use implicit intersection to destroy arrays should be forced to go through the inconvenience of CSE!)

For this question, I had waded through the sea of direct notation, if finished with

{= IFERROR( INDEX( ValueArray, SMALL( IF( TestArray=Criterion, k ), k ) ), "")}

How one defines ValueArray is a separate issue; it would normally be absolute but could be defined as column relative or movable through the use of OFFSET.

 

What is now possible with dynamic arrays is to reduce the whole formula to

= FILTER( ValueArray, TestArray=Criterion, "Null" )

 

My other observation would be that a formula defined as Named formula always has been protected against the ravages of implicit intersection.  That provides an alternative strategy to hiding array calculations in one of the few functions that work properly with arrays (AGGREGATE, SUMPRODUCT, LOOKUP etc.)

 

@Peter Bartholomew , you may wrap array calculations by AGGREGATE, SUMPRODUCT,... without named ranges, isn't it?

@Sergei Baklan 

I think the use of SUMPRODUCT as a wrapper for array formulas is reasonably well known, though some would deny that they are actually performing an array calculation simply because they didn't need CSE.

 

I find it less well-known that a formula placed into the 'refers to' box of a Name will also be evaluated as an array every time the Name is referenced.  Thus

=SUM( myArrayFormulaByName )

does not need CSE even though it would if the parameter were an explicitly written array formula.

@Peter Bartholomew - yes, agree. Named ranges/formulas in general are not very popular, even tables which in some extent could be considered as dynamic named ranges.

@Sergei Baklan 

I would consider tables as the ideal way of holding the initial input and reference data for a model.  My aim when developing a solution is to capture as much structure as I can within the solution and, also, to link it as tightly as possible to the terminology and assumptions of the application domain.  

That rather contrasts with the normal 'tips and tricks' genre aimed at achieving (bad?) solutions faster.  Speed is good but it should not be the main objective.

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
22 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
flashing a white screen while open new tab
cntvertex in Discussions on
13 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
28 Replies
IIS extension is not working - WAC 1909
HotCakeX in Windows Admin Center on
11 Replies