Hack 65 Convert Dates to Excel Formatted Dates

   

figs/moderate.gif figs/hack65.gif

Dates imported from other programs frequently cause problems in Excel. Many people manually retype them, but there are easier ways to solve the problem .

Let's look at some of the date formats you might encounter and how to convert them to standard Excel dates.

As Figure 6-6 shows, the formulas in column B convert the data in column A to three results in column C, all of which follow the U.S. date format of mm/dd/yy.

Figure 6-6. Date formats converted to valid dates (U.S. format)
figs/exhk_0606.gif

Figure 6-7 shows the same approach at work, except that the cells in column C were formatted with the European date format of dd/mm/yy.

Figure 6-7. Date formats converted to valid dates (European format)
figs/exhk_0607.gif

Hopefully, these nifty formulas will take some of the stress out of working with imported dates.



Excel Hacks
Excel Hacks: Tips & Tools for Streamlining Your Spreadsheets
ISBN: 0596528345
EAN: 2147483647
Year: 2003
Pages: 136

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net