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 />

If you enter a time only (without an associated date), into an unformatted cell, the maximum time that you<br />

can enter into a cell is 9999:59:59 (just under 10,000 hours). Excel adds the appropriate number of days.<br />

In this case, 9999:59:59 is interpreted as 3:59:59 PM on 02/19/1901. If you enter a time that exceeds<br />

10,000 hours, the entry is interpreted as a text string rather than a time.<br />

Formatting dates and times<br />

You have a great deal of flexibility in formatting cells that contain dates and times. For example, you can<br />

format the cell to display the date part only, the time part only, or both the date and time parts.<br />

You format dates and times by selecting the cells and then using the Number tab of the Format Cells dialog<br />

box, as shown in Figure 13.1. To display this dialog box, click the dialog box launcher icon in the Number<br />

group of the Home tab. Or, you can click the Number Format control and select More Number Formats<br />

from the list that appears.<br />

The Date category shows built-in date formats, and the Time category shows built-in time formats. Some<br />

formats include both date and time displays. Just select the desired format from the Type list and click OK.<br />

FIGURE 13.1<br />

Use the Number tab in the Format Cells dialog box to change the appearance of dates and times.<br />

TIP<br />

When you create a formula that refers to a cell containing a date or a time, Excel automatically<br />

formats the formula cell as a date or a time. Sometimes, this automation is very helpful;<br />

other times, it’s completely inappropriate and downright annoying. To return the number formatting to the<br />

default General format, choose Home ➪ Number ➪ Number Format, and select General from drop-down<br />

list Or, use this shortcut-key combination: Ctrl+Shift+~.<br />

228

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

Saved successfully!

Ooh no, something went wrong!