Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 74
Default Taking 10 lefthand characters in a cell

Hi,

I have a column in excel which I am trying to import into access.
However I am trying to do this as a date but the columns entries are
like the below;

09/14/06 19:22:47

This causes an error in access.

So i presumed I could in the next column use the left formula to create
a column that only showed the date part of the entry and omitted the
time. This doesn't work - no matter how I format the cell I get an
entry in the new cell as something like 38974.8074

Where am I going wrong?

Also - Having 2 columns showing the date will be a problem for my
import. (I will not be able to hide the original column as this will
still appear during import). I cannot delete the original column as
then my new column will not work. Is there another way of doing this at
all?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,073
Default Taking 10 lefthand characters in a cell


keri wrote:
Hi,

I have a column in excel which I am trying to import into access.
However I am trying to do this as a date but the columns entries are
like the below;

09/14/06 19:22:47

This causes an error in access.

So i presumed I could in the next column use the left formula to create
a column that only showed the date part of the entry and omitted the
time. This doesn't work - no matter how I format the cell I get an
entry in the new cell as something like 38974.8074

Where am I going wrong?

Also - Having 2 columns showing the date will be a problem for my
import. (I will not be able to hide the original column as this will
still appear during import). I cannot delete the original column as
then my new column will not work. Is there another way of doing this at
all?


=TRUNC(A1) returns only the date part of a date with time in A1

Ken Johnson

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 74
Default Taking 10 lefthand characters in a cell

What an amzing person you are - I can't believe I had never heard of
this before! Thanks.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
convert 5 characters in a cell to 6 characters by adding a zero Helenf Excel Discussion (Misc queries) 4 May 18th 09 04:43 PM
Taking values from another cell SK Excel Discussion (Misc queries) 6 November 16th 07 12:19 AM
Criterian Range taking value from another cell Shrikant Excel Discussion (Misc queries) 0 November 7th 07 09:52 AM
Taking the Mode based on cell value sip8316 Excel Discussion (Misc queries) 1 May 27th 05 09:27 PM
Taking the mode based on Cell value sip8316 Excel Discussion (Misc queries) 4 May 26th 05 03:27 PM


All times are GMT +1. The time now is 09:43 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"