Home

Sum error Excel 2016 (Insider) Windows 10 Pro x64 (1809)

%3CLINGO-SUB%20id%3D%22lingo-sub-422302%22%20slang%3D%22en-US%22%3ESum%20error%20Excel%202016%20(Insider)%20Windows%2010%20Pro%20x64%20(1809)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-422302%22%20slang%3D%22en-US%22%3E%3CP%3EHaving%20a%20weird%20error%20trying%20to%20sum%20a%20column%20of%20values.%20The%20formula%20is%20written%20so%20that%20if%20a%20key%20cell%20is%20empty%20(%22%22)%2C%20the%20array%20that%20the%20formula%20(-1)%20will%20be%20summed%20and%20the%20total%20appears%20in%20that%20cell.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20results%20are%20always%200.00%20in%20the%20cell%20until%20you%20look%20at%20the%20execution%20of%20the%20formula.%20When%20the%20condition%20to%20trigger%20the%20SUM%20occurs%20the%20correct%20total%20is%20produced%20(%2B%24224.23)%20BUT%20is%20immediately%20overwritten%20by%20the%20results%20of%20the%20%22FALSE%22%20side%20of%20the%20IF%20statement%20which%20is%20%240.00.%20The%20FALSE%20branch%20would%20be%20taken%20if%20the%20trigger%20column%20was%20not%20%3D%20%22%22...%20but%20not%20when%20it%20is.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENormally%2C%20when%20evaluating%20a%20formula%2C%20if%20you%20hit%20a%20FALSE%20condition%20the%20next%20step%20replaces%20the%20TRUE%20code%20with%20an%20%23N%2FA%20and%20the%20next%20step%20it%20to%20execute%20the%20first%20step%20in%20the%20FALSE%20branch.%20Not%20so%20here.%20Both%20sides%20of%20the%20TRUE%2FFALSE%20statement%20are%20intact%20and%20after%20executing%20the%20FALSE%20statements%20the%20TRUE%20statements%20are%20executed.%3C%2FP%3E%3CP%3EI%20know%2C%20confusing%20but%20I%20am%20stuck!!%3C%2FP%3E%3CP%3EI've%20attempted%20to%20attach%203%20screenshots%20showing%20what%20is%20happening.%20(1)%20shows%20the%20formula%20as%20is%2C%20(3)%20is%20after%20evaluation%20to%20the%20correct%20total%20(%2B%24224.23)%20and%20(4)%20shows%20the%20end%20result%20of%20%240.00.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20hope%20I'm%20just%20really%20tired%20lol%20(Recovering%20from%202%20surgeries%20in%2011%20days%2C%20drugs%20DO%20NOT%20help%20the%20thought%20process).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20to%20anyone%20than%20tosses%20a%20bone%20my%20way.%20If%20the%20screenshots%20didn't%20come%20through%2C%20give%20me%20a%20yell.%20They%20tell%20the%20tale.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETheOldPuterMan%3C%2FP%3E%3CP%3EJohn%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-422302%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-425619%22%20slang%3D%22en-US%22%3ERe%3A%20Sum%20error%20Excel%202016%20(Insider)%20Windows%2010%20Pro%20x64%20(1809)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-425619%22%20slang%3D%22en-US%22%3E%3CP%3EJohn%2C%20I%20was%20not%20able%20to%20reproduce%20on%20a%20simple%20model.%20Are%20you%20on%20the%20latest%20Insiders%20build%20(1904.11601.20042)%3F%20Previous%20one%20was%20quite%20buggy.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F317593%22%20target%3D%22_blank%22%3E%40TheOldPuterMan%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-453689%22%20slang%3D%22en-US%22%3ERe%3A%20Sum%20error%20Excel%202016%20(Insider)%20Windows%2010%20Pro%20x64%20(1809)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-453689%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%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESergei%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYes%2C%20I%20am.%20In%20fact%2C%20the%20(one)%20reason%20I'm%20so%20slow%20in%20getting%20back%20is%20that%20I%20did%20a%20system%20reset%20and%20Microsoft%20left%20me%20in%20in%20a%20bad%20spot.%20The%20updated%20deleted%20ALL%20of%20my%20USB%20drivers%20and%20did%20not%20install%20any%20new%20ones.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20had%20to%20dig%20out%20my%20trusty%20old%20PS%2F2%20keyboard%20and%20remember%20how%20to%20work%20my%20way%20through%20device%20manager%20with%20tab%20and%20cursor%20keys.%20I%20finally%20got%20a%20set%20of%20USB%20drivers%20installed%20for%20the%20mouse%20and%20then%20started%20rebuilding%20my%20system.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20didn't%20lose%20data%20but%20the%20past%20few%20days%20have%20been%26nbsp%3B%3CEM%3EInteresting%3C%2FEM%3E.%20On%20top%20of%20it%20my%20wife%20walked%20in%20with%20the%20chest%2Fhead%20cold%20from%20hades%20and%20had%20to%20share%20it%20with%20me.%20I've%20been%20down%20with%20that%20for%20the%20past%204%20days%20and%20haven't%20done%20anything.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20appreciate%20your%20helpful%20suggestions%20and%20THINK%20I%20have%20an%20inkling%20to%20what's%20happening.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'll%20get%20back%20to%20you%20later%2C%20after%20more%20testing.%3C%2FP%3E%3CP%3ETheOldPuterMan%3C%2FP%3E%3CP%3EJohn%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-455335%22%20slang%3D%22en-US%22%3ERe%3A%20Sum%20error%20Excel%202016%20(Insider)%20Windows%2010%20Pro%20x64%20(1809)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-455335%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%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20think%20what's%20happening%20here%20is%20that%20I'm%20trying%20to%20execute%20a%20new%20set%20of%20commands%20from%20within%20the%20Spill%20of%20the%20Array%20commands%20and%20it's%20getting%20confused.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBelow%20are%20the%20two%20formulas%2C%20the%20first%20that%20works%20most%20of%20the%20time%20and%20the%20second%20that%20produces%20a%20blank%20cell%20(%22%22)%20as%20its%20result.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EWorks%3A%20%3C%2FSTRONG%3E%7B%3DIF(COUNTA(UNIQUE(Transactions!Expense_Center))%2B2%3DROW()%2C%22TOTALS%22%2CSORT(UNIQUE(Transactions!Expense_Center)))%7D%3C%2FP%3E%3CP%3E%3CSTRONG%3EDoesn%E2%80%99t%20Work%3A%3C%2FSTRONG%3E%20%7B%3DIF(COUNTA(UNIQUE(Transactions!Expense_Center))%2B2%3DROW()%2C%22TOTALS%22%2CSORT(UNIQUE(Transactions!Expense_Center)))%7D%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBoth%20are%20running%20against%20a%201%20x%20300%20array%20on%20another%20(Transactions)%20sheet.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhat%20I%20get%2C%20from%20the%20second%2C%20non-working%2C%20formula%20is%20that%20in%20the%20final%20step%2C%20as%20it%20should%20fill%20the%20cell%20with%20%22TOTALS%22%20is%20a%20blank%20cell%20from%20the%20Spill%20of%20the%20UNIQUE%20function.%20Prior%20to%20this%2C%20there%20was%20always%20a%20single%20entry%20of%200%20(zero)%20that%20represented%20the%20blank%20values%20in%20Transactions!Expense_Center.%20The%20above%20formula%20looked%20at%20that%2C%20compared%20the%200%20(zero)%20to%20the%20null%20(%22%22)%20and%20found%20a%20true%20condition%20which%20caused%20the%20cell%20to%20be%20loaded%20with%20%22TOTALS%22.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENow%20though%20seems%20to%20no%20longer%20work.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAs%20far%20as%20I%20know%2C%20I've%20had%20no%20Office%20updates%20and%20other%20than%20the%20messed%20up%20update%20to%201809%20no%20O%2FS%20updates%20that%20should%20affect%20this.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EANY%20help%20here%20I'd%20love%20it.%20I%20have%20tried%20separating%20the%20formula%20into%20different%20steps%20but%20haven't%20had%20success%20there%20yet.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20for%20looking%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETheOldPuterMan%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EJohn%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-455940%22%20slang%3D%22en-US%22%3ERe%3A%20Sum%20error%20Excel%202016%20(Insider)%20Windows%2010%20Pro%20x64%20(1809)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-455940%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20John%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ESorry%20to%20hear%20you%20had%20such%20challenges.%3C%2FP%3E%0A%3CP%3EAs%20for%20the%20formulas%20I%20see%20no%20difference%20between%20these%20two%3C%2FP%3E%0A%3CPRE%3E%7B%3DIF(COUNTA(UNIQUE(Transactions!Expense_Center))%2B2%3DROW()%2C%22TOTALS%22%2CSORT(UNIQUE(Transactions!Expense_Center)))%7D%0A%0A%7B%3DIF(COUNTA(UNIQUE(Transactions!Expense_Center))%2B2%3DROW()%2C%22TOTALS%22%2CSORT(UNIQUE(Transactions!Expense_Center)))%7D%20%3C%2FPRE%3E%0A%3CP%3EDid%20I%20miss%20something%3F%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHowever%2C%20I'll%20try%20to%20play%20some%20later%20based%20on%20your%20description.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-457403%22%20slang%3D%22en-US%22%3ERe%3A%20Sum%20error%20Excel%202016%20(Insider)%20Windows%2010%20Pro%20x64%20(1809)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-457403%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F317593%22%20target%3D%22_blank%22%3E%40TheOldPuterMan%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EJohn%2C%20perhaps%20I%20misunderstood%20the%20issue%2C%20tried%20both%20with%20empty%20and%20null%20cell%20with%20your%20formula%2C%20and%20with%20one%20which%20returns%20the%20same%20(non-array)%3C%2FP%3E%0A%3CPRE%3E%3DIF(LEN(SORT(UNIQUE(exp)))%3D0%2C%22Total%22%2CSORT(UNIQUE(exp)))%3C%2FPRE%3E%0A%3CP%3E-%20all%20work%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20877px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F108976i2C6405210B138071%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22image.png%22%20title%3D%22image.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3Esimple%20model%20is%20attached%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-457871%22%20slang%3D%22en-US%22%3ERe%3A%20Sum%20error%20Excel%202016%20(Insider)%20Windows%2010%20Pro%20x64%20(1809)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-457871%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%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESergei%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20didn't%20miss%20a%20thing%20which%20is%20what%20is%20frustrating%20me%20so%20much.%20The%20formula%20works%20on%20one%20sheet%20and%20not%20another.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20do%20think%20that%20I%20know%20why%20it's%20not%20functioning%20properly%20but%20have%20yet%20to%20come%20up%20with%20another%20way%20to%20express%20what%20I%20want%20to%20do.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThat%20function%20is%20designed%20to%20spill%20if%20it's%20the%20last%20thing%20in%20a%20formula.%20Watching%20the%20execution%20of%20the%20formula%20you%20can%20trace%20it%20through%20the%20elimination%20of%20duplicates%2C%20and%20sorting%2C%20of%20all%20uniques%20in%20the%20array.%20When%20it%20hits%20the%20null%20(blank)%20cells%20it%20produces%20a%200%20(zero)%20entry%20and%20the%20count%20is%20equal%2C%20BUT%20the%20next%20thing%20that%20happens%20is%20the%20final%20spill%20which%20produces%20a%20null%20entry%20which%20wipes%20out%20whatever%20is%20in%20row%2022.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20THINK%20that's%20the%20cause%20of%20the%20apparent%20non-working%20formula.%20I%20have%20yet%20to%20come%20up%20with%20another%20way%20to%20do%20it%20but%20will%20look%20at%20it%20again%20tonight.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20also%20think%20that%20the%20UNIQUE%20function%20was%20tweaked%20since%20it%20was%20first%20released%20because%20it%20always%20put%20out%20one%20extra%20entry%20for%20null%20values%20before.%20In%20fact%2C%20that%20was%20one%20of%20my%20complaints%20about%20it.%26nbsp%3B%20lol%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EJohn%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-472751%22%20slang%3D%22en-US%22%3ERe%3A%20UNIQUE%20and%20SORT%20Functions%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-472751%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F317593%22%20target%3D%22_blank%22%3E%40TheOldPuterMan%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESergei%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20not%20sure%20what%2C%20if%20anything%2C%20is%20broken%20but%20I've%20found%20that%20I%20make%20the%20formulas%20work%20properly%20if%20I%20enter%20them%20as%20if%20they%20were%20the%20old%20Array%20Formulas%20by%20Entering%20the%20formulas%20into%20the%20top%20row%2C%20where%20I%20want%20it%2C%20and%20then%20using%20CTRL-SHIFT-ENTER.%20The%20formulas%20work%20and%20spill%20perfectly.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20I%20simply%20enter%20the%20formula%20in%20a%20blank%20cell%2C%20with%20sufficient%20rows%20for%20the%20spill%2C%20it%20spills%20correctly%20but%20the%20last%20entry%20is%20a%200%20(Zero)%20which%20overwrites%20the%20%22TOTALS%22%20constant.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAs%20I%20understand%20it%20you%20should%20NOT%20have%20to%20do%20that%20with%20the%20new%20Array%20Functions%20but%20that's%20the%20only%20way%20I%20can%20make%20them%20work.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHear%20from%20you%20soon%20with%20any%20ideas%20I%20hope.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETheOldPuterMan%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EJohn%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-473391%22%20slang%3D%22en-US%22%3ERe%3A%20UNIQUE%20and%20SORT%20Functions%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-473391%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F317593%22%20target%3D%22_blank%22%3E%40TheOldPuterMan%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHi%20John%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20guess%20an%20issue%20is%20not%20with%20UNIQUE%20but%20with%20using%20ROW()%20within%20your%20formula.%20Let%20consider%20this%20simple%20sample%20where%20we%20try%20to%20replace%20the%20value%20in%20row%203%20on%20another%20value.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20414px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F109537i35FCAAEE518C4A3A%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22image.png%22%20title%3D%22image.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EWith%3C%2FP%3E%0A%3CPRE%3E%3DIF(ROW()%3D3%2C-1%2CSEQUENCE(3%2C1))%3C%2FPRE%3E%0A%3CP%3Emy%20understanding%20is%20what%20the%20formula%20evaluates%20ROW()%20for%20the%20first%20cell%20in%20which%20you%20type%20it%20and%20after%20that%20keeps%20it%20static.%20Thus%20we%20always%20have%20condition%202%3D3%20and%20formula%20returns%20the%20spill%20without%20any%20changes.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20the%20same%20formula%20convert%20to%20CSE%20one%2C%20ROW()%20will%20be%20evaluating%20for%20each%20element%20of%20the%20array%20and%20we%20receive%20desired%20result.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ESame%20as%20if%20we%20generates%20an%20array%20not%20by%20CSE%20formula%2C%20but%20using%20an%20array%20in%20first%20parameter%20to%20compare%20with%203%20-%20with%20DA%20experience%20each%20element%20will%20be%20compared%20and%20we%20have%20correct%20result.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAnother%20story%20is%20what%20Formula%20Evaluate%20shows%20above%20not%20in%20very%20correct%20way.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ESample%20is%20attached.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ERegards%3C%2FP%3E%3C%2FLINGO-BODY%3E
TheOldPuterMan
Occasional Contributor

Having a weird error trying to sum a column of values. The formula is written so that if a key cell is empty (""), the array that the formula (-1) will be summed and the total appears in that cell.

 

The results are always 0.00 in the cell until you look at the execution of the formula. When the condition to trigger the SUM occurs the correct total is produced (+$224.23) BUT is immediately overwritten by the results of the "FALSE" side of the IF statement which is $0.00. The FALSE branch would be taken if the trigger column was not = ""... but not when it is.

 

Normally, when evaluating a formula, if you hit a FALSE condition the next step replaces the TRUE code with an #N/A and the next step it to execute the first step in the FALSE branch. Not so here. Both sides of the TRUE/FALSE statement are intact and after executing the FALSE statements the TRUE statements are executed.

I know, confusing but I am stuck!!

I've attempted to attach 3 screenshots showing what is happening. (1) shows the formula as is, (3) is after evaluation to the correct total (+$224.23) and (4) shows the end result of $0.00.

 

I hope I'm just really tired lol (Recovering from 2 surgeries in 11 days, drugs DO NOT help the thought process).

 

Thanks to anyone than tosses a bone my way. If the screenshots didn't come through, give me a yell. They tell the tale.

 

Thanks,

 

TheOldPuterMan

John

 

 

8 Replies

John, I was not able to reproduce on a simple model. Are you on the latest Insiders build (1904.11601.20042)? Previous one was quite buggy.

 

@TheOldPuterMan 

@Sergei Baklan 

 

Sergei,

 

Yes, I am. In fact, the (one) reason I'm so slow in getting back is that I did a system reset and Microsoft left me in in a bad spot. The updated deleted ALL of my USB drivers and did not install any new ones.

 

I had to dig out my trusty old PS/2 keyboard and remember how to work my way through device manager with tab and cursor keys. I finally got a set of USB drivers installed for the mouse and then started rebuilding my system.

 

I didn't lose data but the past few days have been Interesting. On top of it my wife walked in with the chest/head cold from hades and had to share it with me. I've been down with that for the past 4 days and haven't done anything.

 

I appreciate your helpful suggestions and THINK I have an inkling to what's happening. 

 

I'll get back to you later, after more testing.

TheOldPuterMan

John

 

@Sergei Baklan 

 

I think what's happening here is that I'm trying to execute a new set of commands from within the Spill of the Array commands and it's getting confused.

 

Below are the two formulas, the first that works most of the time and the second that produces a blank cell ("") as its result.

 

Works: {=IF(COUNTA(UNIQUE(Transactions!Expense_Center))+2=ROW(),"TOTALS",SORT(UNIQUE(Transactions!Expense_Center)))}

Doesn’t Work: {=IF(COUNTA(UNIQUE(Transactions!Expense_Center))+2=ROW(),"TOTALS",SORT(UNIQUE(Transactions!Expense_Center)))}

 

Both are running against a 1 x 300 array on another (Transactions) sheet. 

 

What I get, from the second, non-working, formula is that in the final step, as it should fill the cell with "TOTALS" is a blank cell from the Spill of the UNIQUE function. Prior to this, there was always a single entry of 0 (zero) that represented the blank values in Transactions!Expense_Center. The above formula looked at that, compared the 0 (zero) to the null ("") and found a true condition which caused the cell to be loaded with "TOTALS".

 

Now though seems to no longer work.

 

As far as I know, I've had no Office updates and other than the messed up update to 1809 no O/S updates that should affect this.

 

ANY help here I'd love it. I have tried separating the formula into different steps but haven't had success there yet.

 

Thanks for looking,

 

TheOldPuterMan

 

John

Hi John,

 

Sorry to hear you had such challenges.

As for the formulas I see no difference between these two

{=IF(COUNTA(UNIQUE(Transactions!Expense_Center))+2=ROW(),"TOTALS",SORT(UNIQUE(Transactions!Expense_Center)))}

{=IF(COUNTA(UNIQUE(Transactions!Expense_Center))+2=ROW(),"TOTALS",SORT(UNIQUE(Transactions!Expense_Center)))} 

Did I miss something?

 

However, I'll try to play some later based on your description.

@TheOldPuterMan 

John, perhaps I misunderstood the issue, tried both with empty and null cell with your formula, and with one which returns the same (non-array)

=IF(LEN(SORT(UNIQUE(exp)))=0,"Total",SORT(UNIQUE(exp)))

- all work

image.png

simple model is attached

@Sergei Baklan 

 

Sergei,

 

You didn't miss a thing which is what is frustrating me so much. The formula works on one sheet and not another.

 

I do think that I know why it's not functioning properly but have yet to come up with another way to express what I want to do.

 

That function is designed to spill if it's the last thing in a formula. Watching the execution of the formula you can trace it through the elimination of duplicates, and sorting, of all uniques in the array. When it hits the null (blank) cells it produces a 0 (zero) entry and the count is equal, BUT the next thing that happens is the final spill which produces a null entry which wipes out whatever is in row 22.

 

I THINK that's the cause of the apparent non-working formula. I have yet to come up with another way to do it but will look at it again tonight.

 

I also think that the UNIQUE function was tweaked since it was first released because it always put out one extra entry for null values before. In fact, that was one of my complaints about it.  lol

 

John

@TheOldPuterMan 

 

Sergei,

 

I'm not sure what, if anything, is broken but I've found that I make the formulas work properly if I enter them as if they were the old Array Formulas by Entering the formulas into the top row, where I want it, and then using CTRL-SHIFT-ENTER. The formulas work and spill perfectly.

 

If I simply enter the formula in a blank cell, with sufficient rows for the spill, it spills correctly but the last entry is a 0 (Zero) which overwrites the "TOTALS" constant.

 

As I understand it you should NOT have to do that with the new Array Functions but that's the only way I can make them work.

 

Thanks,

 

Hear from you soon with any ideas I hope.

 

TheOldPuterMan

 

John

@TheOldPuterMan 

 

Hi John,

 

I guess an issue is not with UNIQUE but with using ROW() within your formula. Let consider this simple sample where we try to replace the value in row 3 on another value.

image.png

With

=IF(ROW()=3,-1,SEQUENCE(3,1))

my understanding is what the formula evaluates ROW() for the first cell in which you type it and after that keeps it static. Thus we always have condition 2=3 and formula returns the spill without any changes.

 

If the same formula convert to CSE one, ROW() will be evaluating for each element of the array and we receive desired result.

 

Same as if we generates an array not by CSE formula, but using an array in first parameter to compare with 3 - with DA experience each element will be compared and we have correct result.

 

Another story is what Formula Evaluate shows above not in very correct way.

 

Sample is attached.

 

Regards

Related Conversations
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
28 Replies
Tabs and Dark Mode
cjc2112 in Discussions on
2 Replies
Early preview of Microsoft Edge group policies
Sean Lyndersay in Discussions on
65 Replies
*Updated 9/3* Syncing in Microsoft Edge Preview Channels
Elliot Kirk in Articles on
205 Replies