+ Reply to Thread
Results 1 to 5 of 5

move part of cell data

  1. #1
    Registered User
    Join Date
    06-30-2007
    Posts
    2

    move part of cell data

    we have a spreadsheet of names, addresses and other info. we need to edit it by taking just the number part of the address and moving it to its own column. there are over 3000 entries and cutting and pasting is way too tedius. is there another more efficient way of doing this?

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    If you post a sample of the data then you've got a better chance of a reply

    At the moment I can tell if it's all in the cell in the same column or across several columns

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Registered User
    Join Date
    06-30-2007
    Posts
    2
    Quote Originally Posted by VBA Noob
    If you post a sample of the data then you've got a better chance of a reply

    At the moment I can tell if it's all in the cell in the same column or across several columns

    VBA Noob
    thanks, its all in the same cell and the numeric part of the address needs its own column. so instead of double clicking into edit mode for each cell and cutting and pasting the numeric part from say column f to column d for 3000 entries we need to know how to do this more efficiently. thanks in advance

  4. #4
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Use this function to get the number

    http://www.ozgrid.com/VBA/ExtractNum.htm

    Then use the substitute to return the text. Paste special values and delete the original column

    =SUBSTITUTE(A1,B1,"")

    VBA Noob

  5. #5
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229
    Insert a column immediatly to the right of your column of mixed addresses.
    Select the address column.
    Text to Columns in the Data menu will help you split it.

+ 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