Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Parsing data

I have a spreadsheet and in column A a series of numbers all the same length
example:

412381

412382

412383

412384

412385

412386

412387

I need to iterate through and insert : between the second and third digit
and fourth and fifth. The outcome should resemble the following:

41:23:81

41;23;82

41;23;83

41;23;84

41;23;85

41;23;86

41;23;87

How does one accomplish this? Thanx.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,339
Default Parsing data

With data in A1 put this in B1 and copy down:

=LEFT(A1,2) &":" & MID(A1,3,2) & ":" & RIGHT(A1,2)


"Jlaz" wrote:

I have a spreadsheet and in column A a series of numbers all the same length
example:

412381

412382

412383

412384

412385

412386

412387

I need to iterate through and insert : between the second and third digit
and fourth and fifth. The outcome should resemble the following:

41:23:81

41;23;82

41;23;83

41;23;84

41;23;85

41;23;86

41;23;87

How does one accomplish this? Thanx.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,651
Default Parsing data

On Fri, 10 Feb 2006 22:34:38 -0800, "Jlaz" wrote:

I have a spreadsheet and in column A a series of numbers all the same length
example:

412381

412382

412383

412384

412385

412386

412387

I need to iterate through and insert : between the second and third digit
and fourth and fifth. The outcome should resemble the following:

41:23:81

41;23;82

41;23;83

41;23;84

41;23;85

41;23;86

41;23;87

How does one accomplish this? Thanx.


If your data is in A1:An, in some column enter the formula:

=TEXT(A1,"00\:00\:00")

Then copy/drag down to row n.

Finally, select the range with the changed values, e.g. B1:Bn

Edit/copy
Select A1
Paste Special -- Values

This will replace the original so be sure you have backed up your data first.


--ron
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
Parsing Data with Javier Excel Discussion (Misc queries) 0 June 27th 06 06:21 PM
Help With Parsing Data Saxman Excel Discussion (Misc queries) 5 December 27th 05 02:39 PM
Parsing Data Saxman Excel Discussion (Misc queries) 4 December 8th 05 08:31 AM
Data Parsing prepotency Excel Programming 1 June 9th 05 10:09 PM
help with data parsing Param Dhillon Excel Programming 5 February 24th 05 03:29 AM


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