
Chapter 4: Spreadsheets in Calc
Calculating with Two Variables
Consider columns A and B of the sample table above. Now try varying not only the quantity
produced annually, but also the selling price, and calculate the profit in each case.
Expand the table shown above so that D2 through D11 contain the numbers 500, 1000 and
so on, up to 5000. In E1 through H1 enter the numbers 8, 10 , 15 and 20.
A B C D E
1 Selling price 10 8 10
2 Direct costs 2 500 -7000 -6000
3 Fixed costs 10000 1000 -4000 -2000
4 Quantity 2000 1500 1000 2000
5 Profit
= B4*(B1 > B2) > B3
2000 2000 6000
1. Highlight the range D1:H11.
2. Select Data > Multiple Operations.
3. With the cursor in the formulae field, click cell B5.
4. Set the cursor in the Rows 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 Column field and click in A1. This means that B4, the quantity, is the
vertically entered variable.
6. Close the dialogue with OK.
7. See profits in the range E2:H11. In some cases, pressing (F9) is needed to update the
table.
OpenOffice.org User Guide for 2.x 258
Comentarios a estos manuales