{=SUM()} vs =SUMPRODUCT()

G

Guest

I've inhereted a workbook where the previous owner used a complex {=SUM()}
function to approximate a SUMPRODUCT(). It currently is working fine, but I
wonder if there are any advantages to changing the functions to be actual
SUMPRODUCT. Does using SUM in this way take up more resources/become
unstable, etc?

I'm chasing down some gremlins in my Excel workbooks and this one popped out
at me.

For reference, the current function looks something like this:

{=SUM(($A4='C:\[external-file.xls]sheet1'!$A$9:$A$15000)*(AX$1='C:\[external-file.xls]sheet1'!$C$9:$C$15000)*'C:\[external-file.xls]sheet1'!$F$9:$F$15000))}
 
G

Guest

The short answer to your question: it depends. What does it depend on?
Available memory, processor speed, etc.

Dave
 
G

Guest

Long ago, in a galaxy far away, Excel didn't have a SUMPRODUCT() function,
and the array version of SUM() was the vehicle by which you summed the
products of arrays.

The array SUM has been stable for as long as I've used it, going on 18 or 19
years.
 
B

Bob Phillips

The advantage of SUMPRODUCT is that it doesn't have to be array entered.

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)
 
B

Bob Phillips

Maybe it wasn't used in that way, but I would be interested to hear when
Excel didn't have SUMPRODUCT .

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

Duke Carey said:
Long ago, in a galaxy far away, Excel didn't have a SUMPRODUCT() function,
and the array version of SUM() was the vehicle by which you summed the
products of arrays.

The array SUM has been stable for as long as I've used it, going on 18 or 19
years.



MDW said:
I've inhereted a workbook where the previous owner used a complex {=SUM()}
function to approximate a SUMPRODUCT(). It currently is working fine, but I
wonder if there are any advantages to changing the functions to be actual
SUMPRODUCT. Does using SUM in this way take up more resources/become
unstable, etc?

I'm chasing down some gremlins in my Excel workbooks and this one popped out
at me.

For reference, the current function looks something like this:
{=SUM(($A4='C:\[external-file.xls]sheet1'!$A$9:$A$15000)*(AX$1='C:\[external
-file.xls]sheet1'!$C$9:$C$15000)*'C:\[external-file.xls]sheet1'!$F$9:$F$1500
0))}
 
G

Guest

Bob -

I started using Excel in 1987. It was version 2, I think. Windows was not
yet an OS, or at least the PC didn't boot into Windows. You started DOS,
then started Windows, THEN you could run Excel. Excel was the only
application I owned that ran on Windows.

At that time Excel didn't have SUMPRODUCT. However, working in the
investment banking field, and calculating weighted averages of all kinds, I
was thrilled to be able to create array formulas that worked the way
SUMPRODUCT does.

A few years later (maybe Excel 5?) introduced SUMPRODUCT. I still use the
array form of SUM() out of old habit more than I use SUMPRODUCT

Old and not very valuable information, but that's my recollection.
Duke

Bob Phillips said:
Maybe it wasn't used in that way, but I would be interested to hear when
Excel didn't have SUMPRODUCT .

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

Duke Carey said:
Long ago, in a galaxy far away, Excel didn't have a SUMPRODUCT() function,
and the array version of SUM() was the vehicle by which you summed the
products of arrays.

The array SUM has been stable for as long as I've used it, going on 18 or 19
years.



MDW said:
I've inhereted a workbook where the previous owner used a complex {=SUM()}
function to approximate a SUMPRODUCT(). It currently is working fine, but I
wonder if there are any advantages to changing the functions to be actual
SUMPRODUCT. Does using SUM in this way take up more resources/become
unstable, etc?

I'm chasing down some gremlins in my Excel workbooks and this one popped out
at me.

For reference, the current function looks something like this:
{=SUM(($A4='C:\[external-file.xls]sheet1'!$A$9:$A$15000)*(AX$1='C:\[external
-file.xls]sheet1'!$C$9:$C$15000)*'C:\[external-file.xls]sheet1'!$F$9:$F$1500
0))}
 
H

Harlan Grove

Bob Phillips wrote...
Maybe it wasn't used in that way, but I would be interested to hear when
Excel didn't have SUMPRODUCT .
....

It appeared in either Excel 4 or Excel 5. I don't remember whether 123
or Quattro Pro introduced it, but I'm fairly sure Excel's was in
response to its erstwhile competitors'.
 
G

Guest

Oh yeah, back then Excel allowed only one sheet per file - they weren't even
called workbooks, just worksheets. You could link between worksheet files,
and you could save a group of open worksheets as a 'workspace.' When you
opened a workspace, Excel simply cycled through the list of files and opened
each in turn.



Bob Phillips said:
Maybe it wasn't used in that way, but I would be interested to hear when
Excel didn't have SUMPRODUCT .

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

Duke Carey said:
Long ago, in a galaxy far away, Excel didn't have a SUMPRODUCT() function,
and the array version of SUM() was the vehicle by which you summed the
products of arrays.

The array SUM has been stable for as long as I've used it, going on 18 or 19
years.



MDW said:
I've inhereted a workbook where the previous owner used a complex {=SUM()}
function to approximate a SUMPRODUCT(). It currently is working fine, but I
wonder if there are any advantages to changing the functions to be actual
SUMPRODUCT. Does using SUM in this way take up more resources/become
unstable, etc?

I'm chasing down some gremlins in my Excel workbooks and this one popped out
at me.

For reference, the current function looks something like this:
{=SUM(($A4='C:\[external-file.xls]sheet1'!$A$9:$A$15000)*(AX$1='C:\[external
-file.xls]sheet1'!$C$9:$C$15000)*'C:\[external-file.xls]sheet1'!$F$9:$F$1500
0))}
 
B

Bob Phillips

Thanks Duke. Your recollection is far better than mine. I first used Excel
in the late eighties, but I don't recall much <G>

Bob

Duke Carey said:
Bob -

I started using Excel in 1987. It was version 2, I think. Windows was not
yet an OS, or at least the PC didn't boot into Windows. You started DOS,
then started Windows, THEN you could run Excel. Excel was the only
application I owned that ran on Windows.

At that time Excel didn't have SUMPRODUCT. However, working in the
investment banking field, and calculating weighted averages of all kinds, I
was thrilled to be able to create array formulas that worked the way
SUMPRODUCT does.

A few years later (maybe Excel 5?) introduced SUMPRODUCT. I still use the
array form of SUM() out of old habit more than I use SUMPRODUCT

Old and not very valuable information, but that's my recollection.
Duke

Bob Phillips said:
Maybe it wasn't used in that way, but I would be interested to hear when
Excel didn't have SUMPRODUCT .

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

or
19 fine,
but I popped
out
{=SUM(($A4='C:\[external-file.xls]sheet1'!$A$9:$A$15000)*(AX$1='C:\[external
-file.xls]sheet1'!$C$9:$C$15000)*'C:\[external-file.xls]sheet1'!$F$9:$F$15 00
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top