Can one spreadsheet formula time three sections of an Irish Rail journey?
You’re estimating how long an Irish Rail train takes to cross three sections of track at the same steady speed. You could work out each time by hand. How can you get a spreadsheet to do all three using one formula?
Use only distance and speed: assume the train keeps a steady speed and makes no stops. Distance equals speed times time, so divide distance by speed to find the time. Six hundred metres divided by twenty metres per second gives thirty seconds. Multiply speed by time to check the distance.
Put the shared speed, twenty metres per second, in cell B one. Put the distances, six hundred, nine hundred and twelve hundred metres, in column A starting at row four. Column B beside each distance will hold a formula. Each formula displays a time in seconds.
You’re about to write the formula in B five, the time cell beside nine hundred metres. It needs a distance and a speed. Pick the pair of cells it should read, in that order.
In B four, type equals A four divided by dollar B dollar one. Fill down to B six. With no dollar signs, A four changes to A five, then A six. The two dollar signs fix the column and row of B one. This is an absolute reference.
Select B four. The formula bar shows that it divides the distance in A four by the fixed speed in B one. The cell itself displays thirty. Compare that with your hand calculation: six hundred metres at twenty metres per second gives thirty seconds. They match.
On another sheet, A eight holds a distance of seven hundred and fifty metres, and C two holds the shared speed of fifteen metres per second. You fill the time formula down to B eight. Pick the correct formula and the value it displays.
Both versions start with thirty, forty-five and sixty seconds. The formula bar for B four shows either a formula or the pasted number thirty. Change B one to twenty-five metres per second. The formulas give twenty-four, thirty-six and forty-eight seconds. The pasted values stay the same.
If the exam asks you to interpret your result, say what the number means for the train. At the original speed, add the three section times: thirty, forty-five and sixty seconds. The model predicts a hundred and thirty-five seconds for the whole stretch at twenty metres per second with no stops.