LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Separating text and dates.


Hi all.

I have data imported from a csv file where one column (B) contain
cells with text and date in the format of "XXXX dd/mm/yyyy". Originall
was using text to columns to split these without a problem, using th
space as the separator. But recently I've been coming across some wher
there is a space inside the text which is causing problems.

My current solution is to first search and replace the space in th
text with a hyphen then do the text to columns. So far I have the macr
seaching for and replacing 15 different text entries.

Just wondering if anyone had an easier way to do this?

I used to count back a fixed number of characters from the right (can'
remember exactly how I did it) but then I found it was reversing the da
and the month when separated.

NOTE: My current method works, just looking for a more efficient way o
doing it.

TI

--
Mark
-----------------------------------------------------------------------
Mark K's Profile: http://www.excelforum.com/member.php...fo&userid=1411
View this thread: http://www.excelforum.com/showthread.php?threadid=57376

 
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
How do I sum columns separating out the dates soconfused Excel Worksheet Functions 4 July 31st 09 03:50 PM
Separating dates from one column to Month, Date, Year columns frogstyle Excel Discussion (Misc queries) 2 August 6th 08 04:13 PM
Separating Text Té Excel Worksheet Functions 2 July 9th 08 11:58 PM
Separating text Francis Hookham Excel Discussion (Misc queries) 2 December 10th 06 08:35 PM
separating text dpdpdp Excel Worksheet Functions 2 July 12th 06 06:51 PM


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