unexplained error in simple non-contiguous sum function

%3CLINGO-SUB%20id%3D%22lingo-sub-3009428%22%20slang%3D%22en-US%22%3Eunexplained%20error%20in%20simple%20non-contiguous%20sum%20function%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3009428%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20a%20simple%20spreadsheet%20where%20im%20trying%20to%20total%20every%20other%20cell%20in%20a%20row.%26nbsp%3B%3C%2FP%3E%3CP%3Efor%20some%20reason%20it%20is%20not%20picking%20up%20all%20the%20cells%20included%20in%20the%20range.%20I%20have%20made%20sure%20formatted%20as%20numbers%2C%20double%20clicked%20into%20formula%20to%20see%20that%20all%20cells%20are%20visually%20displayed%2C%20checked%20the%20formula%20has%20no%20errors%2C%20gaps%20etc%2C%20traced%20precedents%20and%20they%20show%20up%20as%20the%20correct%20cells..%20yet%20it%20is%20returning%20a%20sum%20that%20is%20less%20than%20total%20should%20be.%20this%20is%20a%20simple%20excel%20function%20ive%20used%20for%2020%2B%20years%20adn%20I%20have%20no%20idea%20why%20its%20not%20working%20now...%20any%20ideas%3F%20using%20Excel%20for%20Mac%20version%2016.51%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3009428%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EExcel%20on%20Mac%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3009484%22%20slang%3D%22en-US%22%3ERe%3A%20unexplained%20error%20in%20simple%20non-contiguous%20sum%20function%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3009484%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1230686%22%20target%3D%22_blank%22%3E%40burkemch%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3DSUMPRODUCT((MOD(COLUMN(A1%3AI1)%2C2)%3D0)*A6%3AI6)%3C%2FP%3E%3CP%3E%3DSUMPRODUCT((MOD(COLUMN(A1%3AI1)%2C2)%26lt%3B%26gt%3B0)*A6%3AI6)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDo%20you%20work%20with%20formulas%20like%20the%20above%20ones%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3009486%22%20slang%3D%22en-US%22%3ERe%3A%20unexplained%20error%20in%20simple%20non-contiguous%20sum%20function%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3009486%22%20slang%3D%22en-US%22%3E%3CP%3Eno..%20just%20very%20simple%20sum%20function%20with%20commas%20separating%20cells...%3CBR%20%2F%3E%3DSUM(D5%2CF5%2CH5%2CJ5%2CL5%2CN5%2CP5%2CR5%3CT5%3E%3C%2FT5%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20dont%20know%20why%20it%20appears%20to%20summaries%20some%20of%20the%20cells%20references%20to%20these%20inequalities%20for%20instance%20%22R5%3CT5%3E%3C%2FT5%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3009550%22%20slang%3D%22en-US%22%3ERe%3A%20unexplained%20error%20in%20simple%20non-contiguous%20sum%20function%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3009550%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1230686%22%20target%3D%22_blank%22%3E%40burkemch%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20entered%20the%20formula%20in%20my%20spreadsheet%20(removed%20all%20the%20%26lt%3B%20signs)%20and%20copied%20and%20pasted%20it%20and%20it%20seems%20to%20work.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECan%20you%20attach%20the%20file%20you%20work%20with%3F%20Then%20i%20can%20see%20the%20long%20version%20of%20your%20formula%20in%20comparison%20to%20the%20formula%20with%20the%20inequal%20signs.%20I%20can't%20imagine%26nbsp%3B%3CSPAN%3E%22R5%3CT5%3E%3CSPAN%3Eto%20be%20an%20abbreviation.%20As%20you%20want%20to%20sum%20every%20other%20cell%20the%20original%20formula%20string%20should%20be%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%22R5%2CT5%22.%26nbsp%3B%3C%2FSPAN%3E%3C%2FT5%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3009579%22%20slang%3D%22en-US%22%3ERe%3A%20unexplained%20error%20in%20simple%20non-contiguous%20sum%20function%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3009579%22%20slang%3D%22en-US%22%3E%3CP%3Ethanks%20quadruple%20prawn.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3009659%22%20slang%3D%22en-US%22%3ERe%3A%20unexplained%20error%20in%20simple%20non-contiguous%20sum%20function%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3009659%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1230686%22%20target%3D%22_blank%22%3E%40burkemch%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20can't%20imagine%20why%20commas%20were%20replaced%20by%20%26lt%3B%20recently%20in%20some%20parts%20of%20your%20formula.%20I%20corrected%20formulas%20in%20AY4%20and%20AZ4%20and%20filled%20them%20down.%20Now%20all%20formulas%20in%20range%20AY4%3AAZ9%20are%20for%20the%20same%20range.%20Before%20this%20the%20formula%20in%20AY4%20was%20for%20a%20different%20range%20than%20formulas%20in%20cells%20AY5%3AAY9%20(Formula%20in%20cell%20AY4%20started%20in%20column%20C%20the%20other%20formulas%20started%20with%20column%20G).%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAfter%20i%20corrected%20formulas%20in%20AY4%20and%20AZ4%20i%20copied%20and%20pasted%20them%20in%20other%20cells%20and%20everything%20worked%20as%20intended.%20I%20hope%20your%20latest%20experience%20is%20only%20an%20inexplicable%20exception%20and%20everything%20will%20work%20for%20you%20in%20the%20future%20like%20it%20did%20for%20more%20than%2020%2B%20years.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

I have a simple spreadsheet where im trying to total every other cell in a row. 

for some reason it is not picking up all the cells included in the range. I have made sure formatted as numbers, double clicked into formula to see that all cells are visually displayed, checked the formula has no errors, gaps etc, traced precedents and they show up as the correct cells.. yet it is returning a sum that is less than total should be. this is a simple excel function ive used for 20+ years adn I have no idea why its not working now... any ideas? using Excel for Mac version 16.51

6 Replies

@burkemch 

=SUMPRODUCT((MOD(COLUMN(A1:I1),2)=0)*A6:I6)

=SUMPRODUCT((MOD(COLUMN(A1:I1),2)<>0)*A6:I6)

 

Do you work with formulas like the above ones?

no.. just very simple sum function with commas separating cells...
=SUM(D5,F5,H5,J5,L5,N5,P5,R5<T5,V5,X5,Z5<AB5<AD5<AF5,AH5<AJ5,AL5,AN5,AP5,AR5<AT5,AX5,AZ5,BB5,BD5+AV5) I should say that this shows up as irregular when I copy and paste... as it appears to change the comma to inequalities ie < on some cells, but when I click into the formula the long version has every cell that should be included, included with a "," not a "<" 

 

I dont know why it appears to summaries some of the cells references to these inequalities for instance "R5<T5" instead of listing every cell but I assume this was just to save length... ive tried redoing it through manually typing the appropriate cell references in and by entering them by hitting "control" and clicking on each cell individually.. but it always seems to abbreviate it as shown above... 

 

@burkemch 

I entered the formula in my spreadsheet (removed all the < signs) and copied and pasted it and it seems to work.

 

Can you attach the file you work with? Then i can see the long version of your formula in comparison to the formula with the inequal signs. I can't imagine "R5<T5" to be an abbreviation. As you want to sum every other cell the original formula string should be "R5,T5". 

thanks quadruple prawn. 

@burkemch 

I can't imagine why commas were replaced by < recently in some parts of your formula. I corrected formulas in AY4 and AZ4 and filled them down. Now all formulas in range AY4:AZ9 are for the same range. Before this the formula in AY4 was for a different range than formulas in cells AY5:AY9 (Formula in cell AY4 started in column C the other formulas started with column G). 

 

After i corrected formulas in AY4 and AZ4 i copied and pasted them in other cells and everything worked as intended. I hope your latest experience is only an inexplicable exception and everything will work for you in the future like it did for more than 20+ years.

 

 

@burkemch 

I prefer to avoid lists of cells and would either use SUMIFS over the entire row or build each sequence as a distinct array and use SUM.

= SUMIFS(salaries, Item, "T")

= LET(
  m, SEQUENCE(1,COUNT(date)/2),
  T, INDEX(salaries, 2*m),
  SUM(T))