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

Choose Your Date System: 1900 or 1904<br />

Excel actually supports two date systems: the 1900 date system and the 1904 date system. Which system<br />

you use in a workbook determines what date serves as the basis for dates. The 1900 date system uses<br />

January 1, 1900, as the day assigned to date serial number 1. The 1904 date system uses January 1, 1904, as<br />

the base date. By default, Excel for Windows uses the 1900 date system, and Excel for Macintosh uses the<br />

1904 date system. Excel for Windows supports the 1904 date system for compatibility with Macintosh files.<br />

You can choose the date system for the active workbook in the Advanced section of the Excel Options dialog<br />

box. (It’s in the subsection titled When Calculating This Workbook.) You can’t change the date system if you<br />

use Excel for Macintosh.<br />

Generally, you should use the default 1900 date system. And you should exercise caution if you use two different<br />

date systems in workbooks that are linked together. For example, assume that Book1 uses the 1904 date<br />

system and contains the date 1/15/1999 in cell A1. Assume that Book2 uses the 1900 date system and contains<br />

a link to cell A1 in Book1. Book2 displays the date as 1/14/1995. Both workbooks use the same date<br />

serial number (34713), but they’re interpreted differently.<br />

One advantage to using the 1904 date system is that it enables you to display negative time values. With the<br />

1900 date system, a calculation that results in a negative time (for example, 4:00 PM–5:30 PM) cannot be displayed.<br />

When using the 1904 date system, the negative time displays as –1:30 (that is, a difference of 1 hour<br />

and 30 minutes).<br />

You may wonder about January 0, 1900. This nondate (which corresponds to date serial number 0) is actually<br />

used to represent times that aren’t associated with a particular day. This nondate business becomes clear<br />

later in this chapter (see “Entering times”).<br />

To view a date serial number as a date, you must format the cell as a date. Choose Home ➪ Number ➪<br />

Number Format. This drop-down control provides you with two date formats. To select from additional<br />

date formats, see “Formatting dates and times,” later in this chapter.<br />

Entering dates<br />

You can enter a date directly as a serial number (if you know it), but more often, you enter a date using any<br />

of several recognized date formats. Excel automatically converts your entry into the corresponding date<br />

serial number (which it uses for calculations), and it also applies the default date format to the cell so that it<br />

displays as an actual date rather than as a cryptic serial number.<br />

For example, if you need to enter June 18, 2007, you can simply enter the date by typing June 18, 2007<br />

(or any of several different date formats). Excel interprets your entry and stores the value 39251, the date<br />

serial number for that date. It also applies the default date format so that the cell contents may not appear<br />

exactly as you typed them.<br />

Depending on your regional settings, entering a date in a format, such as June 18, 2007, may<br />

be interpreted as a text string. In such a case, you’d need to enter the date in a format that corresponds<br />

to your regional settings, such as 18 June, 2007.<br />

NOTE<br />

When you activate a cell that contains a date, the Formula bar shows the cell contents formatted by using<br />

the default date format — which corresponds to your system’s short date format. The Formula bar doesn’t<br />

display the date’s serial number. If you need to find out the serial number for a particular date, format the<br />

cell using a nondate number format.<br />

224

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

Saved successfully!

Ooh no, something went wrong!