Results 1 to 7 of 7

Macro to separate long string of characters and several spaces into separate columns

Threaded View

  1. #1
    Forum Contributor
    Join Date
    01-09-2016
    Location
    USA,USA
    MS-Off Ver
    2016
    Posts
    1,192

    Macro to separate long string of characters and several spaces into separate columns

    I am looking basically to do a MID formula, but the value of the cell is like "A04AG605S206704561 BANNER" and I need the characters after the S (9 characters in) and then I need the name (Banner) I need these separated into columns. They will always start in A1, but not every row will have this data, Some may be "D123445678123". So I don't know if that is a front end thing, to only apply if the cell starts with A, or on the back end and after everything is separated into three columns, remove anything that doesn't have a value in column 3. This may also go 500 rows down, or 200 rows. Changes every day.

    Would it be best to first do a text to column type of thing and separate on the first space, then a mid type formula, but in a macro fashion. With 500+ rows, I am worried that it may use to much resources and because a different user will have the spreadsheet other than I and I can set it as a button versus afraid the formula gets adjusted.

    I have attached the spreadsheet which should be clearer than my explanation. Thanks!


    *edit, new workbook now without password!
    Attached Files Attached Files
    Last edited by taylorsm; 03-31-2017 at 10:42 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Problem separating a long string into four separate fields?
    By colgor in forum Excel Formulas & Functions
    Replies: 24
    Last Post: 06-15-2016, 03:04 PM
  2. [SOLVED] How to separate digits from string of numbers (must ignore characters)
    By mohit999 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-28-2016, 03:12 PM
  3. [SOLVED] How can I exctract numbers from a string of characters in a separate column ?
    By Renzo Isola in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-27-2013, 11:15 PM
  4. [SOLVED] How to separate names in a long cell string
    By mondello in forum Excel General
    Replies: 5
    Last Post: 08-02-2012, 02:59 AM
  5. How to Separate Chunks of Characters and put them in separate Columns
    By crisshinn in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-08-2011, 10:16 AM
  6. search for specific characters in text string and separate them out
    By neowok in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-09-2008, 09:21 AM
  7. Separate characters in a string
    By viadisky in forum Excel General
    Replies: 2
    Last Post: 02-01-2006, 01:35 PM

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