Vous êtes sur la page 1sur 2

Excel Function Dictionary 1998 - 2000 Peter Noneley A 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 B C D E F G H I

MMULT Page 1 of 2 J

MMULT
What Does It Do ? This function multiplies one range of values with another range of values. The ranges do not have to be of equal size. The dimensions of the result range is in direct proportion to dimensions of the two input ranges. It is an Array function and must be entered using the Ctrl+Shift+Enter combination. Syntax =MMULT(Range1,Range2) Formatting No special formatting is needed. Example The following tables were used by a company producing boxes of chocolates. The types of chocolate produced were Milk, Dark and White. The company boxed the chocolates in three differing mixtures of Milk, Dark and White. In the run up to Christmas customers ordered various quantities of each box. The chocolate company now needed to know what quantity of each type of chocolate to produce. The =MMULT() function was used to multiply the contents of boxes by the customer orders. The result of the =MMULT() is the total number of each type of chocolate to produce. Chocolates in the box Milk Dark White 50 50 50 30 20 10 20 5 5 Customers Orders Giant Standard Economy 300 400 500 Quantity To Produce Milk Dark White 37,000 25,500 21,500 {=MMULT(C32:E32,C26:E28)} In all three cells How It Was Done Cells C36 to E36 were selected. The formula =MMULT(C32:E32,C26:E28) was typed, (but not yet entered). The keys Ctrl+Shift+Enter were pressed to confirm the entry as an array. The formula then showed the correct result. Getting The Dimensions Correct The dimensions of the Result range are directly related to the two input ranges. The number of rows in the Result should be equal to the rows in Range1. The number of columns in the Result should be equal to the columns in Range2.

Size Giant Standard Economy

Excel Function Dictionary 1998 - 2000 Peter Noneley A 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 B C D E F G H I

MMULT Page 2 of 2 J

Example 2 The following tables were used by the chocolate company to calculate the amount of ingredients needed to produce batches of chocolate. The company has four factories, each of which has to order enough Butter, Eggs and Sugar to ensure they can meet production targets. Range 1 contains the planned production of Milk and Dark chocolate for each factory. Range 2 contains the amount Butter, Eggs and Sugar needed to make 1 unit of Milk or Plain. The Result range shows the quantities of each ingredient that will have to be ordered to meet the production target. Note the depth of the Result is the same as the depth of Range 1, and the width of the Result is the same as the width of Range 2. Range 1 Milk Dark 20 0 20 1 10 5 20 10 Result Eggs 60 62 40 80 Range 2 Eggs 3 2

Production Factory 1 Factory 2 Factory 3 Factory 4

Ingredients Milk Dark

Butter 1 2

Sugar 10 5

Ingredients To Order Factory 1 Factory 2 Factory 3 Factory 4

Butter 20 22 20 40

Sugar 200 205 125 250

{=MMULT(C69:D72,G69:I70)} In all cells

Hint To get a feel for how the =MMULT() function operates, set all values in Range1 and Range2 to zero 0, then change a single value in each.

Vous aimerez peut-être aussi