Let us apply the Time number format to the range C6:D13. Cells E6:E13 will have a similar Time format that excludes AM or PM.
To apply a time number format:
- Choose Format | Cells from the menu bar and select the Number tab, if necessary. (In Excel 2007 or 2010, choose the Home tab, then click Format in the Cells area, then choose Format Cells from the resulting dropdown list.)
- Select Time from the Category list box, choose a format from the Type list box, and then click OK.
To display time in a decimal format:
- Select cell E6 and note the formula, which subtracts the start time of the presentation from its end time.
- Type =(D6-C6)*24 and press [Enter].
- Select cell E6 again and click and drag the fill handle to copy the formula down to cell E13.
The values don't look correct, but the formatting we do next will set it straight.
To display the new time format correctly:
To display the new time format correctly:
- Select the range E6:E13 and press [Ctrl]1 ([command]1 in 2004) to open the Format Cells dialog box.
- Choose Number from the Category list box and click OK. Now, each presentation's duration displays as a decimal.
To round the values to tenths of an hour:
- Select the range of values you'd like to format.
- Click the Decrease Decimal button on the Formatting toolbar. (In 2007 and 2010, this button is in the Number area of the Home tab.)
Just keep in mind that Excel automatically rounds your values when you decrease the number of digits after the decimal point.
No comments:
Post a Comment