Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
DNR DNR is offline
external usenet poster
 
Posts: 2
Default Seperate date from text

Hello!

I really appreciate any help on this. I am sent files weekly that contain a
column with the a date and text and I need to seperate them into two columns.
Examples of values in the columns a
05/04/2008 day
05/05/2008 night
05/07/2008 day
05/08/2008 day

etc.

The text values are always only day or night but the dates are constantly
changing. I already have a macro that will put day or night in a column next
to it based on the cell value but the original column remains the same. Any
suggestions on how to write a macro to do this?

Thanks
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 342
Default Seperate date from text

If you want to do it in code you could use language like this:

Sub testit()

ActiveCell = CDate(Left(ActiveCell, 10))

End Sub


"dnr" wrote:

Hello!

I really appreciate any help on this. I am sent files weekly that contain a
column with the a date and text and I need to seperate them into two columns.
Examples of values in the columns a
05/04/2008 day
05/05/2008 night
05/07/2008 day
05/08/2008 day

etc.

The text values are always only day or night but the dates are constantly
changing. I already have a macro that will put day or night in a column next
to it based on the cell value but the original column remains the same. Any
suggestions on how to write a macro to do this?

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
Seperate date and time RD Excel Worksheet Functions 4 July 10th 09 03:02 PM
How do i convert a date into 3 seperate columns? Tone Excel Discussion (Misc queries) 2 July 24th 08 12:11 PM
Seperate Date and Time Wati Excel Discussion (Misc queries) 6 September 20th 07 03:46 PM
imported doc from pdf file, want to seperate text & date in cells Christian Excel Discussion (Misc queries) 2 February 2nd 06 08:13 PM
creating a date column from seperate data T.O. Excel Worksheet Functions 3 December 20th 05 01:22 PM


All times are GMT +1. The time now is 07:46 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"