Results 1 to 7 of 7

Separate string of text, based on dynamic 3-char, 4-char and spaces, into columns

Threaded View

  1. #1
    Registered User
    Join Date
    10-16-2013
    Location
    Queensland, Australia
    MS-Off Ver
    MS365, Version 2202
    Posts
    73

    Separate string of text, based on dynamic 3-char, 4-char and spaces, into columns

    Long time, no post! everyone here taught me so well I didn't need help for a long time!

    I'm trying to export a 28-day roster to excel, however the software doesn't copy/paste well, nor does it export well, and the vendor is refusing to assist. I'll post an example of their software's output below. I can straight copy and paste, however, the data is pasted into column A, instead of remaining separated by date. However, I have a list of all possible roster codes, and, when pasting the data, is preserves days off as a single character space - one space is one day off, two consecutive spaces is two days off etc. Roster codes can be 3 or 4 characters long, and will have no breaks inbetween for consecutive shifts.

    Based of this information (the string of text, and the known roster codes, and the spaces), can I teach excel to separate out the string of text into separate columns? Examples of the data I have, and what I want it to look like, below.

    Data from roster UI/program

    Roster Data.JPG

    How it pastes into Excel

    Excel Data.JPG

    Desired output

    Desired output.JPG

    Example workbook attached.
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 12
    Last Post: 04-08-2014, 08:12 PM
  2. [SOLVED] Function to take text from x:th char to next n char
    By Temporary-Failure in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-07-2013, 02:19 AM
  3. [SOLVED] Edit Text String Based on 3rd Occurrence of Char
    By Camel in forum Excel General
    Replies: 4
    Last Post: 07-19-2012, 10:06 AM
  4. Convert 4 Char String to 4 Integer Columns
    By jtheis74 in forum Excel General
    Replies: 4
    Last Post: 10-05-2011, 11:19 AM
  5. RegExp to separate Upper from Lower Case Char In String
    By bdb1974 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-17-2011, 12:31 PM
  6. Changing a single Char in a string to another ASCII char
    By goofy78270 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-15-2007, 09:45 AM
  7. Replies: 6
    Last Post: 03-10-2006, 01:15 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