Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Array multiplication?

I just posted to formuals side but I think it might be solved with VB
so I am going to post here also. I apologize for double posting bu
this is a critical issue at the moment.



Hi, I have two tables I am trying to get to multiply against eac
other.

The first has components on one axis and finished product across th
top. The body of the table is the # of components in each finishe
part.

The second has the same list of finished parts down the side and month
across the top. The body is the demand for each part, for each month.

What I need is a table with component and month as axis with the bod
to be finished part demand X component qty for that finished part.

I have attached simplified version showing two tables, and the expecte
answer.

I need some ideas on how to get the table to calculate the answer. (th
actual table is going to be 900rowsX180cols)

Note: I am comfortable with complex formulas and can also write VBA i
you can point me in the right direction

Attachment filename: test.xls
Download attachment: http://www.excelforum.com/attachment.php?postid=64188
--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 863
Default Array multiplication?

With the layout you showed (body of Table 1 starts in B5, body of Table 2
starts in I5), I used this array formula for the Comp1 January result (enter
the formula with CTRL+SHIFT+ENTER, not just ENTER)

=SUM((TRANSPOSE($B5:$D5))*(I$5:I$7))

I copied it right and down. It gave me the results you show.

PS: I was not able to get this to work with

On Sat, 7 Aug 2004 17:59:45 -0500, toverstreet
wrote:

I just posted to formuals side but I think it might be solved with VBA
so I am going to post here also. I apologize for double posting but
this is a critical issue at the moment.



Hi, I have two tables I am trying to get to multiply against each
other.

The first has components on one axis and finished product across the
top. The body of the table is the # of components in each finished
part.

The second has the same list of finished parts down the side and months
across the top. The body is the demand for each part, for each month.

What I need is a table with component and month as axis with the body
to be finished part demand X component qty for that finished part.

I have attached simplified version showing two tables, and the expected
answer.

I need some ideas on how to get the table to calculate the answer. (the
actual table is going to be 900rowsX180cols)

Note: I am comfortable with complex formulas and can also write VBA if
you can point me in the right direction.

Attachment filename: test.xls
Download attachment: http://www.excelforum.com/attachment.php?postid=641884
---
Message posted from http://www.ExcelForum.com/


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 863
Default Array multiplication?

A word is missing. I intended to say that I couldn't get a SUMPRODUCT formula
to work.

On Sat, 07 Aug 2004 19:28:34 -0500, Myrna Larson
wrote:

With the layout you showed (body of Table 1 starts in B5, body of Table 2
starts in I5), I used this array formula for the Comp1 January result (enter
the formula with CTRL+SHIFT+ENTER, not just ENTER)

=SUM((TRANSPOSE($B5:$D5))*(I$5:I$7))

I copied it right and down. It gave me the results you show.

PS: I was not able to get this to work with

On Sat, 7 Aug 2004 17:59:45 -0500, toverstreet
wrote:

I just posted to formuals side but I think it might be solved with VBA
so I am going to post here also. I apologize for double posting but
this is a critical issue at the moment.



Hi, I have two tables I am trying to get to multiply against each
other.

The first has components on one axis and finished product across the
top. The body of the table is the # of components in each finished
part.

The second has the same list of finished parts down the side and months
across the top. The body is the demand for each part, for each month.

What I need is a table with component and month as axis with the body
to be finished part demand X component qty for that finished part.

I have attached simplified version showing two tables, and the expected
answer.

I need some ideas on how to get the table to calculate the answer. (the
actual table is going to be 900rowsX180cols)

Note: I am comfortable with complex formulas and can also write VBA if
you can point me in the right direction.

Attachment filename: test.xls
Download attachment: http://www.excelforum.com/attachment.php?postid=641884
---
Message posted from http://www.ExcelForum.com/


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Array multiplication?

Problems of this type are solved through matrix multiplication. Excel
has in-built functions to do this ie "MMULT".

The format is thus, highlight your output range then enter the Excel
function; "=MMULT(Range1,Range2)" followed by CTRL+SHIFT+ENTER. All
being well the output will apear in your output range (I tried it on
your sheet with no problems provided you enter zero's in the empty input
cells). Subsequent changes to your input data automatically updates the
output so once you have set up your sheet there is no need to redo it
each time.

There are a few important rules with matrix algebra, one being that the
two ranges to be multiplied must match each other ie the number of
columns in the first range to be multiplied must match the rows in the
second range if not Excel will return errors.

If you need more help, email me your attachment and I will insert the
formula for you.

StephenS

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
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
multiplication of two array in a particular way Rahul Excel Worksheet Functions 2 June 26th 08 01:21 PM
Multiplication Danny Mac Excel Worksheet Functions 8 December 7th 06 10:28 PM
multiplication fitpeach3 Excel Worksheet Functions 2 September 19th 06 11:07 PM
Array multiplication in VBA Dan E[_3_] Excel Programming 10 January 16th 04 07:31 PM
Array multiplication addition John[_54_] Excel Programming 3 November 19th 03 03:52 PM


All times are GMT +1. The time now is 12:27 PM.

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"