|
|
Our Hot Pick: Rising Antivirus 2006 - Certified by TUV & Checkmark! Get 10% discount by entering this coupon code: ONDISCOUNT10
Hi,
I have a row of numbers that I need to multiply by a single constant and then sum over.
I thought I could use a sumproduct formula like SUMPRODUCT(D5:D20,$M$5:$M$5), but unfortunately this does not do the trick.
Can I do this without a UDF?
Thanks, Schiz
|
|
Your problem wasn't that clear to me in what you were trying to achieve - some sample numbers might help, However, in the meantime, try this variation ... =SUMPRODUCT(D5:D20*$M$5)
-- Andy Wiggins FCCA www.BygSoftware.com Excel, Access and VBA Consultancy -
"Schizoid Man" <schiz[ at ]sf.com> wrote in message news:ecvj1a$9vu$1[ at ]geraldo.cc.utexas.edu...
[Quoted Text] > Hi, > > I have a row of numbers that I need to multiply by a single constant and > then sum over. > > I thought I could use a sumproduct formula like > SUMPRODUCT(D5:D20,$M$5:$M$5), but unfortunately this does not do the > trick. > > Can I do this without a UDF? > > Thanks, > Schiz
|
|
Try it like this:
=SUMPRODUCT(D5:D20*$M$5)
Biff
"Schizoid Man" <schiz[ at ]sf.com> wrote in message news:ecvj1a$9vu$1[ at ]geraldo.cc.utexas.edu...
[Quoted Text] > Hi, > > I have a row of numbers that I need to multiply by a single constant and > then sum over. > > I thought I could use a sumproduct formula like > SUMPRODUCT(D5:D20,$M$5:$M$5), but unfortunately this does not do the > trick. > > Can I do this without a UDF? > > Thanks, > Schiz
|
|
Andy Wiggins wrote:
[Quoted Text] > Your problem wasn't that clear to me in what you were trying to achieve - > some sample numbers might help, > However, in the meantime, try this variation ... > =SUMPRODUCT(D5:D20*$M$5)
Hi Andy,
That did the trick. Thanks a ton.
|
|
As a little side note, 5*a + 5*b + 5*c
is equal to 5*(a+b+c) or = M5*SUM(D5:D20)
But SUMPRODUCT works just as nice. :>) -- HTH. :>) Dana DeLouis Windows XP, Office 2003
"Schizoid Man" <schiz[ at ]sf.com> wrote in message news:ecvkgp$aj8$1[ at ]geraldo.cc.utexas.edu...
[Quoted Text] > Andy Wiggins wrote: >> Your problem wasn't that clear to me in what you were trying to achieve - >> some sample numbers might help, >> However, in the meantime, try this variation ... >> =SUMPRODUCT(D5:D20*$M$5) > > Hi Andy, > > That did the trick. Thanks a ton.
|
|
Well, duh! <g>
Isn't it interesting how we often get "steered" in one direction by reading a post?
Biff
"Dana DeLouis" <ddelouis[ at ]bellsouth.net> wrote in message news:uzdZ7duyGHA.476[ at ]TK2MSFTNGP06.phx.gbl...
[Quoted Text] > As a little side note, > 5*a + 5*b + 5*c > > is equal to 5*(a+b+c) > or = M5*SUM(D5:D20) > > But SUMPRODUCT works just as nice. :>) > -- > HTH. :>) > Dana DeLouis > Windows XP, Office 2003 > > > "Schizoid Man" <schiz[ at ]sf.com> wrote in message > news:ecvkgp$aj8$1[ at ]geraldo.cc.utexas.edu... >> Andy Wiggins wrote: >>> Your problem wasn't that clear to me in what you were trying to >>> achieve - some sample numbers might help, >>> However, in the meantime, try this variation ... >>> =SUMPRODUCT(D5:D20*$M$5) >> >> Hi Andy, >> >> That did the trick. Thanks a ton. > >
|
|
Dana DeLouis wrote:
[Quoted Text] > As a little side note, > 5*a + 5*b + 5*c > > is equal to 5*(a+b+c) > or = M5*SUM(D5:D20)
OMG!!
I never realized that staring at Excel sheets could make one forget basic arithmetic!
Hahaha. :)
|
|
|