Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Lee Harris
 
Posts: n/a
Default Multiplying two rows together

If I have a set of coefficients in Row 1 B1:Z1 for example
and data values in Rows 2-N eg B2:Z2, B3:Z3, ...Bn:Zn

What's the proper way to have in Cell A(n) such that I sum each number in
the row by the corresponding coefficient

I mean, instead of having it like this


A2 = (B$1*B2)+(C$1*C2)+(D$1*D2)+(E$1*E2)+.....

Is this an array formula of some kind that I need?


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Lee Harris
 
Posts: n/a
Default Multiplying two rows together


"Lee Harris" wrote in message
...
If I have a set of coefficients in Row 1 B1:Z1 for example
and data values in Rows 2-N eg B2:Z2, B3:Z3, ...Bn:Zn

What's the proper way to have in Cell A(n) such that I sum each number in
the row by the corresponding coefficient

I mean, instead of having it like this


A2 = (B$1*B2)+(C$1*C2)+(D$1*D2)+(E$1*E2)+.....

Is this an array formula of some kind that I need?


never mind, I gave SUMPRODUCT a try and this format seemed to work

=SUMPRODUCT(H38:R38,H40:R40)+SUMPRODUCT(T40:AE40,T 38:AE38)


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default Multiplying two rows together

=SUMPRODUCT(B1:M1,B2:M2)

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Lee Harris" wrote in message
...
If I have a set of coefficients in Row 1 B1:Z1 for example
and data values in Rows 2-N eg B2:Z2, B3:Z3, ...Bn:Zn

What's the proper way to have in Cell A(n) such that I sum each number in
the row by the corresponding coefficient

I mean, instead of having it like this


A2 = (B$1*B2)+(C$1*C2)+(D$1*D2)+(E$1*E2)+.....

Is this an array formula of some kind that I need?




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Insert rows based on specific value bob Excel Worksheet Functions 6 February 29th 08 07:11 PM
formula to use when number of rows changes dynamically confused Excel Worksheet Functions 3 August 17th 05 03:55 PM
Hiding Rows if the linked rows are blank KG Excel Discussion (Misc queries) 9 May 18th 05 02:32 AM
Row selections by row # OR by even/odd rows in another spreadsheet Tom Excel Discussion (Misc queries) 0 February 9th 05 04:03 PM
Adding Rows to Master Sheet Excel Newbie New Users to Excel 1 December 23rd 04 10:56 PM


All times are GMT +1. The time now is 08:51 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"