+ Reply to Thread
Results 1 to 2 of 2

VBA to parse a text string containing three fields of different lengths

  1. #1
    Registered User
    Join Date
    07-11-2012
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    1

    VBA to parse a text string containing three fields of different lengths

    Hi

    So I have a text string that contains three fields - Name, Product and Count. This is what the data can look like:


    David Johnson Enrollment 3
    Bill Trump Partnership and Collaboration 45
    Deborah Fotheringay-Banks Accounting and Control 367


    How can I have VBA automatically break this into the three fields, given there is no rule around the length of each field, in addition to no delimiter between each field?
    Last edited by rupsidhu; 03-05-2015 at 08:53 PM. Reason: Spelling mistake in title

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,516

    Re: VBA to parse a text string containing three fields of different lengths

    One way
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Formula to find a match with different string lengths
    By mcranda in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-09-2013, 04:34 PM
  2. Trim/parse from right within cell - string lengths different
    By oprpjm in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-26-2013, 03:55 PM
  3. Parse Strings of Space-Separated Text of Varying Lengths
    By mlexcelhelpforum in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-09-2011, 07:49 AM
  4. Parse String and Fill list box with Each Found Sub String
    By bdb1974 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-21-2011, 05:56 PM
  5. [SOLVED] Parse data with uneven lengths and different delimiters
    By [email protected] in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-06-2006, 04:10 AM

Tags for this Thread

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