11.08.2013 Views

Excel's Formula - sisman

Excel's Formula - sisman

Excel's Formula - sisman

SHOW MORE
SHOW LESS

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

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

Chapter 6: Working with Dates and Times 169<br />

Converting a year to roman numerals<br />

Fans of old movies will like this one. The following formula converts the year 1945 to Roman<br />

numerals: MCMXLV:<br />

=ROMAN(1945)<br />

This function returns a text string, so you can’t perform any calculations using the result.<br />

Unfortunately, Excel doesn’t provide a function to convert Roman numerals back to Arabic<br />

numerals.<br />

Time-Related Functions<br />

Excel, as you might expect, also includes a number of functions that enable you to work with<br />

time values in your formulas. This section contains examples that demonstrate the use of these<br />

functions.<br />

Table 6-5 summarizes the time-related functions available in Excel. Like the date functions discussed<br />

earlier, time-related functions can be found under the Date & Time drop-down list via<br />

<strong>Formula</strong>s➜Function Library.<br />

Table 6-5: Time-Related Functions<br />

Function Description<br />

HOUR Returns the hour of a time value<br />

MINUTE Returns the minute of a time value<br />

NOW Returns the current date and time<br />

SECOND Returns the second of a time<br />

TIME Returns a time for a specified hour, minute, and second<br />

TIMEVALUE Converts a time in the form of text to an actual time value<br />

Displaying the current time<br />

This formula displays the current time as a time serial number (or a serial number without an<br />

associated date):<br />

=NOW()-TODAY()<br />

You need to format the cell with a time format to view the result as a recognizable time. The<br />

quickest way is to choose Home➜Number➜Format Number and then select Time from the dropdown<br />

list.

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

Saved successfully!

Ooh no, something went wrong!