Question on Text to Column Function

Tech-Archive recommends: Fix windows errors by optimizing your registry




Hi,

I have some problem with the data after perform Text to Column
Function.

Eg: I have this no => 123456789
I want to add "-" in between become 1-234-567-89
So i Use Text To Column Function to separate 9 digit no to 4
column.
Then use this formula to combine:
[ =Column1&"-"&Column2&"-"&Column3&"-"&Column4 ]

Problem: when the no contain "0" in some location, like 102500301,
the no in column2 become 25, column3 become 3 and
column4 become 1.
after combine will become 1-25-3-1 (Actual needed is
1-025-003-01)

Can some one help to solve this problem (what code can be aded in VBA
to solve this)?

Regards
YL Chuah :eek:


--
ylchuah
------------------------------------------------------------------------
ylchuah's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=25341
View this thread: http://www.excelforum.com/showthread.php?threadid=396025

.



Relevant Pages

  • How do you change the rows to columns and columns to rows.
    ... Sound easy, but I am stumped??? ... cc4digital's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=26569 ... Prev by Date: ...
    (microsoft.public.excel.misc)
  • Re: Countif and sumif
    ... dungeonboy's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=26140 ... Prev by Date: ...
    (microsoft.public.excel.misc)
  • Re: Video - Easy Riding
    ... That was a freaking sweet film:eek::D keep it up ... Xream-mX ... Xream-mX's Profile: http://www.unicyclist.com/profile/11299 ... Prev by Date: ...
    (rec.sport.unicycling)
  • Re: Modifying a Chart Object Name
    ... pauloreiss's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=29820 ... Prev by Date: ...
    (microsoft.public.excel.misc)
  • Re: Soluble oil
    ... DX-SFX ... DX-SFX's Profile: http://www.rcgroups.com/forums/member.php?u=78800 ... Prev by Date: ...
    (uk.rec.models.engineering)