\<bookmark_value\>multiple operations\</bookmark_value\>\<bookmark_value\>what if operations\</bookmark_value\>\<bookmark_value\>tables; multiple operations in\</bookmark_value\>\<bookmark_value\>data tables; multiple operations in\</bookmark_value\>\<bookmark_value\>cross-classified tables\</bookmark_value\>

Applying Multiple Operations

Multiple Operations in Columns or Rows

The Data - Multiple Operations command provides a planning tool for "what if" questions. In your spreadsheet, you enter a formula to calculate a result from values that are stored in other cells. Then, you set up a cell range where you enter some fixed values, and the Multiple Operations command will calculate the results depending on the formula.

ื‘ืฉื“ื” ื ื•ืกื—ืื•ืช, ื™ืฉ ืœื”ื–ื™ืŸ ืืช ื”ืคื ื™ื™ืช ื”ืชื ืืœ ื”ื ื•ืกื—ื” ืฉืชื—ื•ืœ ืขืœ ื˜ื•ื•ื— ื”ื ืชื•ื ื™ื. ื‘ืฉื“ื” ืชื ื”ื–ื ืช ื”ืขืžื•ื“ื•ืช/ืชื ื”ื–ื ืช ื”ืฉื•ืจื•ืช, ื™ืฉ ืœื”ื–ื™ืŸ ืืช ื”ืคื ื™ื™ืช ื”ืชื ืืœ ื”ืชื ื”ืžื”ื•ื•ื” ื—ืœืง ืžื”ื ื•ืกื—ื”. ื ื™ืชืŸ ืœื”ืกื‘ื™ืจ ื–ืืช ื‘ืืžืฆืขื•ืช ื”ื“ื•ื’ืžื” ื”ืคืฉื•ื˜ื” ื”ื‘ืื”:


You produce toys which you sell for $10 each. Each toy costs $2 to make, in addition to which you have fixed costs of $10,000 per year. How much profit will you make in a year if you sell a particular number of toys?

what-if sheet area

Calculating With One Formula and One Variable

  1. To calculate the profit, first enter any number as the quantity (items sold) - in this example 2000. The profit is found from the formula Profit=Quantity * (Selling price - Direct costs) - Fixed costs. Enter this formula in B5.

  2. In column D enter certain annual sales, one under the other; for example, in steps of 500 from 500 to 5000.

  3. Mark the range D2:E11, and thus the values in column D and the empty cells alongside in column E.

  4. Choose \<emph\>Data - Multiple operations\</emph\>.

  5. With the cursor in the \<emph\>Formulas \</emph\>field, click cell B5.

  6. Set the cursor in the \<emph\>Column\</emph\> field and click cell B4. This means that: B4, the quantity, is the variable in the formula, which is replaced by the marked column values.

  7. Close the dialog with \<emph\>OK\</emph\>. You will see the profit in column E.

Calculating with Several Formulas Simultaneously

  1. Delete column E.

  2. Enter the following formula in C5: = B5 / B4. You are now calculating the annual profit per item sold.

  3. Select the range D2;F11, thus three columns.

  4. Choose \<emph\>Data - Multiple Operations\</emph\>.

  5. With the cursor in the \<emph\>Formulas\</emph\> field, mark cells B5 thru C5.

  6. Set the cursor in the \<emph\>Columns\</emph\> field and click cell B4.

  7. Close the dialog with \<emph\>OK\</emph\>. You will now see the profits in column E and the annual profit per item in column F.

Multiple Operations Across Rows and Columns

ื—ื‘ื™ืœืช LibreOffice ืžืืคืฉืจืช ืœืš ืœื‘ืฆืข ืžื’ื•ื•ืŸ ืฉืœ ืคืขื•ืœื•ืช ื”ืฉื–ื•ืจื•ืช ื–ื• ื‘ื–ื• ื‘ืขืžื•ื“ื•ืช ื•ื‘ืฉื•ืจื•ืช ื”ื ืงืจืื™ื ื˜ื‘ืœืื•ืช ืฆื•ืœื‘ื•ืช. ืขืœ ืชื ื”ื ื•ืกื—ื” ืœืคื ื•ืช ื’ื ืœื˜ื•ื•ื— ื”ืขืจื›ื™ื ื”ืžืกื•ื“ืจื™ื ื‘ืฉื•ืจื•ืช ื•ื’ื ืœื˜ื•ื•ื— ื”ืžืกื•ื“ืจ ื‘ืขืžื•ื“ื•ืช. ื™ืฉ ืœื‘ื—ื•ืจ ืืช ื”ื˜ื•ื•ื— ืฉืžื•ื’ื“ืจ ืœืคื™ ืฉื ื™ ื˜ื•ื•ื—ื™ ื”ื ืชื•ื ื™ื ื•ืœืงืจื•ื ืœืชื™ื‘ืช ื”ื“ื•ึพืฉื™ื— ื”ืžืืคืฉืจืช ืœื‘ืฆืข ืžืกืคืจ ืคืขื•ืœื•ืช. ื™ืฉ ืœืฆื™ื™ืŸ ืืช ื”ื”ืคื ื™ื” ื‘ืฉื“ื” ื”ื ื•ืกื—ืื•ืช. ื”ืฉื“ื•ืชืชื ื”ื–ื ืช ื”ืฉื•ืจื•ืช ื•ืชื ื”ื–ื ืช ื”ืขืžื•ื“ื•ืช ืžืฉืžืฉื™ื ืœื”ื–ื ืช ื”ื”ืคื ื™ื” ืœืชืื™ื ื”ืชื•ืืžื™ื ื‘ื ื•ืกื—ื”.

Calculating with Two Variables

Consider columns A and B of the sample table above. You now want to vary not just the quantity produced annually, but also the selling price, and you are interested in the profit in each case.

Expand the table shown above. D2 thru D11 contain the numbers 500, 1000 and so on, up to 5000. In E1 through H1 enter the numbers 8, 10, 15 and 20.

  1. Select the range D1:H11.

  2. Choose \<emph\>Data - Multiple Operations\</emph\>.

  3. With the cursor in the \<emph\>Formulas \</emph\>field, click cell B5.

  4. Set the cursor in the \<emph\>Rows\</emph\> field and click cell B1. This means that B1, the selling price, is the horizontally entered variable (with the values 8, 10, 15 and 20).

  5. Set the cursor in the \<emph\>Column\</emph\> field and click in B4. This means that B4, the quantity, is the vertically entered variable.

  6. Close the dialog with OK. You will see the profits in the range E2:H11. In some cases you must first press F9 to update the table.