Forum Discussion
Sum error Excel 2016 (Insider) Windows 10 Pro x64 (1809)
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.
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
- SergeiBaklanApr 15, 2019Diamond Contributor
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
simple model is attached
- SergeiBaklanApr 15, 2019Diamond Contributor
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.
- TheOldPuterManApr 15, 2019Brass Contributor
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
- TheOldPuterManApr 18, 2019Brass Contributor
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