Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / November 2007

Tip: Looking for answers? Try searching our database.

simple math question

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Emerald Saint - 01 Nov 2007 05:24 GMT
My Excel is a rather old version but I think the answer to this question
would be the same regardless of version.

I have two columns of 4 numbers each.
Let's call them A1:A4 and B1:B4.
The cell format is simply 'number'.
I want a formula in another cell that calculates the following:
A1*B1+A2*B2+A3*B3+A4*B4
but I want to use a SUM operator and cell range 'colon' operator
instead of typing everything explicitly

something like
SUM((A1:A4)*(B1:B4))  or
SUM(A1*B1:A4*B4)
I tried several variations but none was correct.
I looked around in HELP but they don't show how to do math
with cell ranges

Mostly I got  #VALUE! in the cell.

Please help.

TIA  Bill S.
T. Valko - 01 Nov 2007 05:49 GMT
Try this one first:

=SUMPRODUCT(A1:A4,B1:B4)

> something like
> SUM((A1:A4)*(B1:B4))

It would be like this entered as an array** :

=SUM(A1:A4*B1:B4)

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)

Signature

Biff
Microsoft Excel MVP

> My Excel is a rather old version but I think the answer to this question
> would be the same regardless of version.
[quoted text clipped - 19 lines]
>
> TIA  Bill S.
Peo Sjoblom - 01 Nov 2007 05:52 GMT
=SUMPRODUCT(A1:A4,B1:B4)

note that if you get value errors in the other formula you had it indicates
you have numbers that are text

Signature

Regards,

Peo Sjoblom

> My Excel is a rather old version but I think the answer to this question
> would be the same regardless of version.
[quoted text clipped - 19 lines]
>
> TIA  Bill S.
Emerald Saint - 01 Nov 2007 06:31 GMT
Peo & Biff - thanks for the help

Bill S.

> =SUMPRODUCT(A1:A4,B1:B4)
>
[quoted text clipped - 24 lines]
>>
>> TIA  Bill S.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.