Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 87
Default Multiplying Arrays

I understand that it is possible to multiply two arrays using SUMPRODUCT().
How can this be achieved if the orientation of the two arrays is different.
For example, if three cells in a horizintal row with values 10% : 50% and 40%
are intended to be mutiplied in turn by three cells in a vertical column with
values of 3% : 4% and 5%.

When I try this I get the answer 12% and Excel will not allow the use of
TRANSPOSE() to change the orientation of one of the arrays within the
SUMPRODUCT.

Thanks,
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 964
Default Multiplying Arrays

Try


=SUMPRODUCT(G2:G4,TRANSPOSE(H1:J1))


entered with ctrl + shift & enter

--


Regards,


Peo Sjoblom

"Phil H" wrote in message
...
I understand that it is possible to multiply two arrays using SUMPRODUCT().
How can this be achieved if the orientation of the two arrays is
different.
For example, if three cells in a horizintal row with values 10% : 50% and
40%
are intended to be mutiplied in turn by three cells in a vertical column
with
values of 3% : 4% and 5%.

When I try this I get the answer 12% and Excel will not allow the use of
TRANSPOSE() to change the orientation of one of the arrays within the
SUMPRODUCT.

Thanks,



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 87
Default Multiplying Arrays

Peo,

Thanks v much. Is it possible to achieve the same result without using an
array formula as the requirement to achieve this is part of a much wider
formula that does not need to be entered as an array formula.

Thanks.

"Peo Sjoblom" wrote:

Try


=SUMPRODUCT(G2:G4,TRANSPOSE(H1:J1))


entered with ctrl + shift & enter

--


Regards,


Peo Sjoblom

"Phil H" wrote in message
...
I understand that it is possible to multiply two arrays using SUMPRODUCT().
How can this be achieved if the orientation of the two arrays is
different.
For example, if three cells in a horizintal row with values 10% : 50% and
40%
are intended to be mutiplied in turn by three cells in a vertical column
with
values of 3% : 4% and 5%.

When I try this I get the answer 12% and Excel will not allow the use of
TRANSPOSE() to change the orientation of one of the arrays within the
SUMPRODUCT.

Thanks,




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 947
Default Multiplying Arrays

Thanks v much. Is it possible to achieve the same result without using an

array formula ...?


=MMULT(Horizontal, Vertical)

--
HTH :)
Dana DeLouis


"Phil H" wrote in message ...

Peo,

Thanks v much. Is it possible to achieve the same result without using an
array formula as the requirement to achieve this is part of a much wider
formula that does not need to be entered as an array formula.

Thanks.

"Peo Sjoblom" wrote:


Try


=SUMPRODUCT(G2:G4,TRANSPOSE(H1:J1))


entered with ctrl + shift & enter

--


Regards,


Peo Sjoblom

"Phil H" wrote in message
...

I understand that it is possible to multiply two arrays using SUMPRODUCT().
How can this be achieved if the orientation of the two arrays is
different.
For example, if three cells in a horizintal row with values 10% : 50% and
40%
are intended to be mutiplied in turn by three cells in a vertical column
with
values of 3% : 4% and 5%.

When I try this I get the answer 12% and Excel will not allow the use of
TRANSPOSE() to change the orientation of one of the arrays within the
SUMPRODUCT.

Thanks,



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 964
Default Multiplying Arrays

Nice Dana

--


Regards,


Peo Sjoblom

"Dana DeLouis" wrote in message
...
Thanks v much. Is it possible to achieve the same result without using an
array formula ...?


=MMULT(Horizontal, Vertical)

--
HTH :)
Dana DeLouis


"Phil H" wrote in message
...
Peo,

Thanks v much. Is it possible to achieve the same result without using an
array formula as the requirement to achieve this is part of a much wider
formula that does not need to be entered as an array formula.

Thanks.

"Peo Sjoblom" wrote:

Try


=SUMPRODUCT(G2:G4,TRANSPOSE(H1:J1))


entered with ctrl + shift & enter

--


Regards,


Peo Sjoblom

"Phil H" wrote in message
...
I understand that it is possible to multiply two arrays using
SUMPRODUCT().
How can this be achieved if the orientation of the two arrays is
different.
For example, if three cells in a horizintal row with values 10% : 50%
and
40%
are intended to be mutiplied in turn by three cells in a vertical
column
with
values of 3% : 4% and 5%.

When I try this I get the answer 12% and Excel will not allow the use
of
TRANSPOSE() to change the orientation of one of the arrays within the
SUMPRODUCT.

Thanks,







  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,231
Default Multiplying Arrays

"Dana DeLouis" wrote...
....
=MMULT(Horizontal, Vertical)

....

Note that the result is a degenerate 0-D array, so can in obscure
situations cause problems when used as a term in longer formulas
unless coerced to a true scalar via SUM(MMULT(h,v)).
  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 87
Default Multiplying Arrays

Thanks very much.

"Dana DeLouis" wrote:

Thanks v much. Is it possible to achieve the same result without using an
array formula ...?


=MMULT(Horizontal, Vertical)

--
HTH :)
Dana DeLouis


"Phil H" wrote in message ...
Peo,

Thanks v much. Is it possible to achieve the same result without using an
array formula as the requirement to achieve this is part of a much wider
formula that does not need to be entered as an array formula.

Thanks.

"Peo Sjoblom" wrote:

Try


=SUMPRODUCT(G2:G4,TRANSPOSE(H1:J1))


entered with ctrl + shift & enter

--


Regards,


Peo Sjoblom

"Phil H" wrote in message
...
I understand that it is possible to multiply two arrays using SUMPRODUCT().
How can this be achieved if the orientation of the two arrays is
different.
For example, if three cells in a horizintal row with values 10% : 50% and
40%
are intended to be mutiplied in turn by three cells in a vertical column
with
values of 3% : 4% and 5%.

When I try this I get the answer 12% and Excel will not allow the use of
TRANSPOSE() to change the orientation of one of the arrays within the
SUMPRODUCT.

Thanks,



  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 87
Default Multiplying Arrays

Is there any chance that you could explain in this in something approaching
laymans english (i.e. that I might understand).

"Harlan Grove" wrote:

"Dana DeLouis" wrote...
....
=MMULT(Horizontal, Vertical)

....

Note that the result is a degenerate 0-D array, so can in obscure
situations cause problems when used as a term in longer formulas
unless coerced to a true scalar via SUM(MMULT(h,v)).

  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,231
Default Multiplying Arrays

Phil H wrote...
Is there any chance that you could explain in this in something
approaching laymans english (i.e. that I might understand).

....

Not really because the issues are inherently complex.

MMULT, MINVERSE, TRANSPOSE, ROW, COLUMN, N, T, and INDEX functions can
return single-item arrays, e.g., type the formula =ROW(A1) and press
[F9] rather than [Enter], and Excel will display ={1} rather than 1 in
the formula bar. The good news for MINVERSE, TRANSPOSE, N, T and INDEX
is that they only return single-item arrays when passed single-item
arrays. MMULT, ROW and COLUMN, OTOH, can return single-item arrays
when you wouldn't necessarily expect them to do so.

Problems arise when you use dynamic ranges, i.e., references to ranges
produced by OFFSET and INDIRECT functions, where any of the 2nd
through 5th arguments to OFFSET or the one and only argument to
INDIRECT are arrays. In those situations, OFFSET and INDIRECT return
undocumented 'objects' that can only be described as arrays of range
references. The only functions that can use those beasts are SUMIF,
COUNTIF and presumably the Excel 2007/2008 extensions AVERAGEIF,
SUMIFS, COUNTIFS and AVERAGEIFS. All other functions return error
values when passed these 'objects'.
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
Get rid of #VALUE, after multiplying kbouquet Excel Worksheet Functions 1 March 16th 08 12:24 AM
Multiplying Dave Excel Worksheet Functions 1 November 28th 07 09:27 AM
Multiplying to string arrays smaruzzi Excel Discussion (Misc queries) 2 October 14th 06 07:25 PM
Multiplying BizBroker Excel Discussion (Misc queries) 4 February 7th 06 04:38 PM
Multiplying in a row Daniel - Sydney Excel Discussion (Misc queries) 3 September 27th 05 12:24 AM


All times are GMT +1. The time now is 09:19 AM.

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

About Us

"It's about Microsoft Excel"