Split Data Out of a column into two columns. !!
Split Data Out of a column into two columns. !!
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 8 of 8

Thread: Split Data Out of a column into two columns. !!

  1. #1
    Board Regular
    Join Date
    Mar 2002
    Posts
    82
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

     
    Hi I have a huge list of Car makes that I have to dissect. My information has come in with the Manufacturer and the Model in the same column. i.e. Ford Fiesta 1.1 or Suzuki Vitara I need to split this data out into two columns, One for manufactuer and the other for Model. The only constant is that there is a space between the make and model on every entry.

    Anyone solve that ?

    Cheers
    Darren

  2. #2
    Board Regular
    Join Date
    Mar 2002
    Location
    Cincinnati, Ohio, USA
    Posts
    6,824
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Hi
    Someone may have a formula or two for you?
    If not, I will post some code that will accomplish what you need.
    Tom

  3. #3
    MrExcel MVP
    Join Date
    Feb 2002
    Location
    Newcastle, UK
    Posts
    1,174
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    On 2002-04-03 05:07, traversd wrote:
    Hi I have a huge list of Car makes that I have to dissect. My information has come in with the Manufacturer and the Model in the same column. i.e. Ford Fiesta 1.1 or Suzuki Vitara I need to split this data out into two columns, One for manufactuer and the other for Model. The only constant is that there is a space between the make and model on every entry.

    Anyone solve that ?

    Cheers
    Darren
    Say your data is in Column A: starting in A1

    in B1 put:

    =LEFT(A1,FIND(" ",A1)-1)

    and C1 put:

    =MID(A1,FIND(" ",A1)+1,LEN(A1)-FIND(" ",A1))

    copy down as needed.
    I'll expand on this if required.

    Any help?
    "Have a good time......all the time"
    Ian Mac

  4. #4
    Board Regular
    Join Date
    Feb 2002
    Location
    United Kingdom
    Posts
    68
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Wouldn't Data/Text to Columns achieve what you want, unless I've misunderstood the problem?

    Nobby

  5. #5
    Board Regular
    Join Date
    Feb 2002
    Location
    Ahmedabad Gujarat
    Posts
    303
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    You can use Text -> TO Column Function provided by excel.

    goto: Data -> Text to Column

    okay..

    We can also use split function provided by VBE.
    I am just started working on it.

    If you want macro from me then mail me your
    worksheet with few sample data I will write a macro for you and send it.

    ni****h desai
    http://www.pexcel.com
    nisht@pexcel.com

    [ This Message was edited by: nisht on 2002-04-03 05:19 ]

  6. #6
    Board Regular
    Join Date
    Mar 2002
    Posts
    82
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    All,

    I tried Ian Mac's Fomula First and it worked a treat, Thank IAN !

  7. #7
    MrExcel MVP
    Join Date
    Feb 2002
    Location
    Newcastle, UK
    Posts
    1,174
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    On 2002-04-03 05:20, traversd wrote:
    All,

    I tried Ian Mac's Fomula First and it worked a treat, Thank IAN !
    I'd try the other options also, Text>Cols is an excellent feature if it's what you need. Just wish I'd also thought of that
    "Have a good time......all the time"
    Ian Mac

  8. #8
    Board Regular
    Join Date
    Mar 2002
    Posts
    82
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

      
    Guys,

    Text To Columns worked rather well too.

    Your all making me look good in front of the boss ! Thanks !


User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

 

 
DMCA.com