Calculations involving multiple sheets xix
apostrophe in front of the equals sign to stop the program calculating the formula) that are actually in the
output value cells. Thus cell H3 actually contains the formula
=C14 (i.e. it will display the value of the cell
C14) and you will need to enter
=C14 in the cell H3. Wherever you see a formula (anything beginning with
the equals sign) enter exactly that formula in the cell immediately to its left. In this case you would put
=C14 in cell H3, =C12 in cell H4, and =C10 in cell H5.
The calculations carried out by the spreadsheet begin on row 7 in Figure V. Each row corresponds to one
step in the calculation, in this case the calculation method of Section 8. In the method table shown in that
section there are just two steps, whereas in the spreadsheet there are eight. There is only a rough correspon-
dence between method steps and spreadsheet steps. This is partly because the spreadsheet calculations do
not have the benefit of human intelligence to assist them! For example, if you used your calculator to carry
out the s teps of Section 8, and you found that the result was, say, 6h 35m 60s, you would automatically
write this as 6h 36m 0s. The spreadsheet would, however, quite happily report the result in the first format.
We get over the problem in the spreadsheet by first stripping out the sign, then converting to seconds, then
finding the seconds, minutes and hours in that order, and finally putting back the sign.
In the example shown in Figure V, you would enter the labels and formulas exactly as shown. Thus
on row 7 you place the label
'1 in A7 (this is text, and the apostrophe tells the spreadsheet so), the label
'unsigned decimal in B7 and the formula in C7 shown immediately to its right, i.e. =ABS(C3). Do this for
each calculation row (7 to 14 in this case). Finally, rename the spreadsheet on the tab at the bottom (
DHHMS
in this case). (You can probably do this by pointing at it with the mouse, pressing the right-hand mouse
button, and selecting the ‘rename’ option.)
Although the labels in columns A and B make no difference to the calculations, we recommend that you
put them in as they make the spreadsheet much easier to understand. This becomes more important if you
return to a spreadsheet some time after you constructed it.
One other note about spreadsheets that you might find useful concerns column widths. If the column
width is too narrow to display the content of a cell, you may just see something like
######## displayed
instead. You can adjust the column width by placing the mouse pointer on the division between the label
(A, B, C etc.) of the column you want to alter and the label of the column immediately to its right, holding
down the left-hand mouse button, and ‘dragging’ the column width left or right as needed.
Calculations involving multiple sheets
Some of the spreadsheet calculations, as in the example just given, use just one sheet. Most, however, use
several. For example, suppose that a first spreadsheet calculation results in a number expressed in decimal
hours but the answer has to be in the form hours, minutes and seconds. The first sheet passes its answer
(in decimal hours) to a s econd sheet which carries out the conversion and passes the converted result back
again to the first sheet.
A concrete example is illustrated by a spreadsheet for Section 14, reproduced in Figure VI. You will
see that there are three tabs in the bottom left-hand corner, corresponding to three sheets labelled
GSTLST,
HMSDH and DHHMS. Only the top sheet, GSTLST is visible in the figure with the other two lying
‘underneath’ it. The input values to the calculation include the Greenwich sidereal time (GST) expressed in
hours, minutes and seconds (cells C3, C4 and C5). These must first be converted to the GST expressed in
decimal hours, a calculation covered in Section 7. The spreadsheet for that section, labelled
HMSDH,must
Cambridge University Press
978-0-521-14654-8 - Practical Astronomy with your Calculator or Spreadsheet: Fourth Edition
Peter Duffett-Smith and Jonathan Zwart
Frontmatter
More information
www.cambridge.org© in this web service Cambridge University Press