18.11.2014 Views

Microsoft Office

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Part II<br />

Working with Formulas and Functions<br />

Working with non-time-of-day values<br />

Sometimes, you may want to work with time values that don’t represent an actual time of day. For example,<br />

you may want to create a list of the finish times for a race or record the time you spend jogging each day.<br />

Such times don’t represent a time of day. Rather, a value represents the time for an event (in hours, minutes,<br />

and seconds). The time to complete a test, for example, may be 35 minutes and 45 seconds. You can enter<br />

that value into a cell as:<br />

00:35:45<br />

Excel interprets such an entry as 12:35:45 AM, which works fine. (Just make sure that you format the cell<br />

so that it appears as you like.) When you enter such times that do not have an hour component, you must<br />

include at least one zero for the hour. If you omit a leading zero for a missing hour, Excel interprets your<br />

entry as 35 hours and 45 minutes.<br />

Figure 13.10 shows an example of a worksheet set up to keep track of a person’s jogging activity. Column A<br />

contains simple dates. Column B contains the distance in miles. Column C contains the time it took to run<br />

the distance. Column D contains formulas to calculate the speed in miles per hour. For example, the formula<br />

in cell D2 is<br />

=B2/(C2*24)<br />

FIGURE 13.10<br />

This worksheet uses times not associated with a time of day.<br />

Column E contains formulas to calculate the pace, in minutes per mile. For example, the formula in cell E2 is<br />

=(C2*60*24)/B2<br />

Columns F and G contain formulas that calculate the year-to-date distance (using column B) and the cumulative<br />

time (using column C). The cells in column G are formatted using the following number format<br />

(which permits time displays that exceed 24 hours):<br />

ON the CD-ROM<br />

[hh]:mm:ss<br />

You can also access the workbook shown in Figure 13.10 on the companion CD-ROM. The file<br />

is named jogging log.xlsx.<br />

248

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!