Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
GFH GFH is offline
external usenet poster
 
Posts: 1
Default Converting TEXT to DATE

Evening

I have two simalar issues.

1) I have a column of text that represents the date but is entered as
text. The entry has a leading space (entered as "<sp12 DEC 06") that
does not permit the entry to be displayed or treated as a DATE cell.

Question how can I strip the leading space from a cellso I can format
and display the cell as a DATE?


and 2nd

Another column has a time entry with the same leading zero as well as
one after the full colon "<sp9:<sp34" without quotes of course.

Same question is there an easy way to get rid of the leading space s
well as the <sp after the colon?

Thank you

G
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,886
Default Converting TEXT to DATE

Hi

Assuming data is in column A, use a separate column as a helper column
and enter
=--TRIM(A1)
and copy down.
Copy this new column of values and Paste SpecialValues back over
original data.
Mark the range of this newly pasted data and
FormatCellsNumberCustomdd mmm yy
Delete helper column


For the Time problem use
=--SUBSTITUTE(A1," ","")
and repeat steps above but format as h:mm

--
Regards

Roger Govier


"GFH" wrote in message
...
Evening

I have two simalar issues.

1) I have a column of text that represents the date but is entered as
text. The entry has a leading space (entered as "<sp12 DEC 06") that
does not permit the entry to be displayed or treated as a DATE cell.

Question how can I strip the leading space from a cellso I can format
and display the cell as a DATE?


and 2nd

Another column has a time entry with the same leading zero as well as
one after the full colon "<sp9:<sp34" without quotes of course.

Same question is there an easy way to get rid of the leading space s
well as the <sp after the colon?

Thank you

G



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
CLR CLR is offline
external usenet poster
 
Posts: 1,998
Default Converting TEXT to DATE

ASAP Utilities, a free Add-in available at www.asap-utilities.com has a
feature that will allow the deletion of any selected characters..........

Vaya con Dios,
Chuck, CABGx3



"GFH" wrote:

Evening

I have two simalar issues.

1) I have a column of text that represents the date but is entered as
text. The entry has a leading space (entered as "<sp12 DEC 06") that
does not permit the entry to be displayed or treated as a DATE cell.

Question how can I strip the leading space from a cellso I can format
and display the cell as a DATE?


and 2nd

Another column has a time entry with the same leading zero as well as
one after the full colon "<sp9:<sp34" without quotes of course.

Same question is there an easy way to get rid of the leading space s
well as the <sp after the colon?

Thank you

G

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 340
Default Converting TEXT to DATE

Try editreplace find: <sp and leave replace box blank.

To remove just leading or trailing spaces use datatext to columns:
step 1. fixed width then click next
step 2. remove vertical lines then click finish

GFH wrote:
Evening

I have two simalar issues.

1) I have a column of text that represents the date but is entered as
text. The entry has a leading space (entered as "<sp12 DEC 06") that
does not permit the entry to be displayed or treated as a DATE cell.

Question how can I strip the leading space from a cellso I can format
and display the cell as a DATE?


and 2nd

Another column has a time entry with the same leading zero as well as
one after the full colon "<sp9:<sp34" without quotes of course.

Same question is there an easy way to get rid of the leading space s
well as the <sp after the colon?

Thank you

G


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
Converting US Date Format Neil Mitchell-Goodson Excel Worksheet Functions 0 November 21st 06 12:20 PM
Copy from a Cell to a text box. AJL Excel Worksheet Functions 9 November 7th 06 04:58 PM
Mileage Claim Formula johndavies New Users to Excel 4 August 14th 06 09:24 AM
Concatening a text and a date c991257 Excel Worksheet Functions 3 July 19th 06 08:30 PM
Formulas dealing with text data Bagia Excel Worksheet Functions 6 June 20th 05 10:29 PM


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

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

About Us

"It's about Microsoft Excel"