+ Reply to Thread
Results 1 to 3 of 3

Subroutine to split cells

  1. #1
    Registered User
    Join Date
    07-28-2008
    Location
    London
    Posts
    4

    Subroutine to split cells

    Hi,

    I have a series of cells in a spreadsheet containing text in the format "texttext, moretext". I want to be able to split these cells, so that the string before the comma and the string after the comma are stored in seperate cells.

    My VBA is rubbish, so I can't seem to figure this out. Any help, or pointers to where I can find example of a subroutine doing this, would be much appreciated.

    Jamie

  2. #2
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606
    You don't need VBA. Select the cells, Data > Text to Columns > Delimited > tick Comma > Finish.

  3. #3
    Registered User
    Join Date
    07-28-2008
    Location
    London
    Posts
    4
    That's great, thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1