0

I have a very large excel function which has worked for me in the past (we have been using this spreadsheet for over a year), but now it is not working. Here is a subsection of the formula

=sum(A1,B2,C3,D4,E5,F6,G7... ZX529,ZY827,ZZ912)

Why am I having this issue?

3
  • When you say "not working" does it give you an error like #VALUE, #NAME? does it just give the wrong result?
    – chancea
    May 22, 2015 at 23:52
  • My guess is it is number of columns. Excel 2007 has max ~10000 columns. Excel 2003 (saved as xls) has a max of 256 so excel wouldn't recognize the cells in a xls format.
    – gtwebb
    May 22, 2015 at 23:53
  • @aStackOverflowUser then i think sonya shisha hit the mark
    – chancea
    May 22, 2015 at 23:55

2 Answers 2

3

Assuming you go all the way from A to ZZ, this means you are using 26*26 = 676 arguments. The maximum number of arguments is 255. Since you are using single cells, you should try just using simple addition (the "+" operator) instead of a function.

2

It is possible to continue to use SUM function, even if you have more than 255 discontiguous cells to sum. If you bracket together sets of cells as "unions" then those count as one argument only, e.g. This sum function uses just 2 arguments:

=SUM(A1,(B2,C3,D4,E5,F6,G7))

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.