11.08.2013 Views

Excel's Formula - sisman

Excel's Formula - sisman

Excel's Formula - sisman

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Appendix B: Using Custom Number Formats 749<br />

Formatting dates and times<br />

When you enter a date into a cell, Excel formats the date using the system short date format.<br />

You can change this format using the Windows Control Panel (Regional and Language options).<br />

Excel provides many useful built-in date and time formats. Table B-9 shows some other custom<br />

date and time formats that you may find useful. The first column of the table shows the date/<br />

time serial number.<br />

Table B-9: Useful Custom Date and Time Formats<br />

Value Number Format Display<br />

40363 mmmm d, yyyy (dddd) July 4, 2010 (Sunday)<br />

40363 “It’s” dddd! It’s Sunday!<br />

40363 dddd, mm/dd/yyyy Sunday, 07/04/2010<br />

40363 “Month: “mmm Month: July<br />

40363 General (m/d/yyyy) 40363 (7/4/2010)<br />

0.345 h “Hours” 8 Hours<br />

0.345 h:mm o’clock 8:16 o’clock<br />

0.345 h:mm a/p”m” 8:16 am<br />

0.78 h:mm a/p”.m.” 6:43 p.m.<br />

See Chapter 6 for more information about Excel’s date and time serial number system.<br />

Displaying text with numbers<br />

The ability to display text with a value is one of the most useful benefits of using a custom number<br />

format. To add text, just create the number format string as usual (or use a built-in number<br />

format as a starting point) and put the text within quotation marks. The following number format<br />

string, for example, displays a value with the text (US Dollars) added to the end:<br />

#,##0.00 “(US Dollars)”<br />

Here’s another example that displays text before the number:<br />

“Average: “0.00

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

Saved successfully!

Ooh no, something went wrong!