Calculations can easily be set-up in Excel and it is particularly useful to do this when dealing with repetitive calculations. The reasons for doing so are twofold:
1. | On a new sheet (e.g. Sheet3) in your workbook, enter the data given below, so that it looks like the figure shown. | ||
2. | Rather than plotting P vs T, we wish to linearise the data, so that the plot will be a straight line. Using the integrated form of the Clausius-Clapeyron equation it can be shown that a plot of ln(P) vs 1/RT will be linear. So we need to calculate ln(P) and 1/RT for each of the data points. To do this we first label the columns where this transformed data will appear. Edit your spreadsheet until it appears like the figure opposite. | ||
3. | To calculate the first value in the T / K column, select cell C6 and then type =b6+273.15 Note 1: The = at the start of the entry specifies you are typing a formula, i.e. that you wish to calculate a value. | ||
4. | Now press Enter. The formula will disappear and be replaced with the calculated value. Click on cell C6 again. Notice that the calculated value, not the formula, is displayed in the cell. The formula itself is shown in the box above the columns, next to the = sign. If you ever need to edit the cell formula, you can do so by clicking on the relevant part of the formula displayed in the formula box. | ||
5. | We now need to repeat this calculation for the other temperature values. However, rather than typing the appropriate formula into every cell, we can get Excel to do this for us. Cell C6 on your worksheet should currently be bordered with a dark line, with a small dark square in the bottom right corner (see figure opposite). Move the cursor over this small square and press and hold the mouse button down. | ||
6. | Move the mouse down, a box will appear around the block of cells that have been highlighted. | ||
7. | Once the block of highlighted cells extends down to, and includes, C12 (see figure opposite) release the mouse button. Excel will automatically copy and paste the formula from C6 to the highlighted cells. | ||
8. | Click on cell C7. Notice that the formula for this cell is =B7+273.15, i.e. Excel has automatically changed the cell/value used in the formula from b6 to b7. This will be true for the other cells as well. | ||
9. | We now need to calculate the values for the remaining two columns. Select cell D6, type =ln(a6) and press Enter. |
| |
10. | Select cell E6, type =1/(a$3*c6) and press Enter. |
| |
11. | Select cells D6 and E6 and repeat (for them) the block copy procedure outlined in steps 5-7. Your spreadsheet should now look like the figure opposite. |