18.11.2014 Views

Microsoft Office

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Part II<br />

Working with Formulas and Functions<br />

FIGURE 13.2<br />

The author’s Extended Date Functions add-in enables you to work with pre-1900 dates.<br />

Inconsistent date entries<br />

You need to exercise caution when entering dates by using two digits for the year. When you do so, Excel<br />

has some rules that kick in to determine which century to use. And those rules vary, depending on the version<br />

of Excel that you use.<br />

Two-digit years between 00 and 29 are interpreted as 21st century dates, and two-digit years between 30<br />

and 99 are interpreted as 20 th -century dates. For example, if you enter 12/15/28, Excel interprets your entry<br />

as December 15, 2028. But if you enter 12/15/30, Excel sees it as December 15, 1930, because Windows<br />

uses a default boundary year of 2029. You can keep the default as is or change it by using the Windows<br />

Control Panel. In Windows XP, display the Regional And Language Options dialog box. Then click the<br />

Customize button to display the Customize Regional Options dialog box. Select the Date tab and then specify<br />

a different year. This procedure may vary with different versions of Windows.<br />

TIP<br />

The best way to avoid any surprises is to simply enter all years using all four digits for the year.<br />

Date-Related Functions<br />

Excel has quite a few functions that work with dates. These functions are accessible by choosing Formulas ➪<br />

Function Library ➪ Date & Time.<br />

Table 13.4 summarizes the date-related functions available in Excel.<br />

TABLE 13.4<br />

Date-Related Functions<br />

Function<br />

DATE<br />

DATEVALUE<br />

DAY<br />

DAYS360<br />

Description<br />

Returns the serial number of a particular date<br />

Converts a date in the form of text to a serial number<br />

Converts a serial number to a day of the month<br />

Calculates the number of days between two dates based on a 360-day year<br />

230

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

Saved successfully!

Ooh no, something went wrong!