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.

Working with Dates and Times 13<br />

TIP<br />

To change the default date format, you need to change a system-wide setting. Access the<br />

Windows Control Panel and select Regional and Language Options. Then click the Customize<br />

button to display the Customize Regional Options dialog box. Select the Date tab. The item selected in the<br />

Short Date Format drop-down list box determines the default date format used by Excel. These instructions<br />

apply to Windows XP and may vary with other versions of Windows.<br />

Table 13.1 shows a sampling of the date formats that Excel recognizes (using the U.S. settings). Results will<br />

vary if you use a different regional setting.<br />

TABLE 13.1<br />

Entry<br />

Date Entry Formats Recognized by Excel<br />

Excel’s Interpretation (U.S. Settings)<br />

6-18-07 June 18, 2007<br />

6-18-2007 June 18, 2007<br />

6/18/07 June 18, 2007<br />

6/18/2007 June 18, 2007<br />

6-18/07 June 18, 2007<br />

June 18, 2007 June 18, 2007<br />

Jun 18<br />

June 18 of the current year<br />

June 18<br />

June 18 of the current year<br />

6/18 June 18 of the current year<br />

6-18 June 18 of the current year<br />

18-Jun-2007 June 18, 2007<br />

2007/6/18 June 18, 2007<br />

As you can see in Table 13.1, Excel is rather intelligent when it comes to recognizing dates entered into a<br />

cell. It’s not perfect, however. For example, Excel does not recognize any of the following entries as dates:<br />

n June 18 2007<br />

n Jun-18 2007<br />

n Jun-18/2007<br />

Rather, it interprets these entries as text. If you plan to use dates in formulas, make sure that Excel can recognize<br />

the date you enter as a date; otherwise, the formulas that refer to these dates will produce incorrect<br />

results.<br />

If you attempt to enter a date that lies outside of the supported date range, Excel interprets it as text. If you<br />

attempt to format a serial number that lies outside of the supported range as a date, the value displays as a<br />

series of hash marks (#########).<br />

225

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

Saved successfully!

Ooh no, something went wrong!