Changing Imported Date Formats

C

Craig Lloyd

Hi all,

I have set up an Excel Spreadsheet that imports data from a sql
database using the 'external data' function.

The problem is that the dates being retrieved from the db are in the
format 5/12/2005 12:29:59 AM

I have set excel to display the dates as short dates, ie 05/12/2005
without the time but whilst the date displays correctly if the cell is
selected the original date format is still displayed.

This is preventing me from creating rules and using counting formulas
etc

Can anyone help???? Please....
 
G

Guest

Remember that date/time is just a number.

When you see: 12/20/05 8:05 AM
the underlying number is 38706.3372719907

If you want to discard the time, use the =INT() function
 
V

Vito

Select the date range and go to Data|Text to Columns. Skip to the 3rd
dialogue box and select the Date radio button and make sure the
selected format is MDY. Click Finish.
 
V

Vito

Craig said:
Gary - How do i use he INT function?


For that function, you will need to insert a helper column.

If you use the Date|Text to Columns method I suggested, you will no
need to add a column. The changes are in place
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top