+ Reply to Thread
Results 1 to 2 of 2

Need to pull all strings that start with <> and...

Hybrid View

  1. #1
    Registered User
    Join Date
    09-28-2007
    Posts
    14

    Exclamation Need to pull all strings that start with <> and...

    I am trying to write a macro that will go through an Excel Range called "Predecessors" and identify any phrases in the field that begin with <>. The cell will look something like:

    111,<>\NCAL ICD-10 Reporting And Analytics - AMB\111,<>\NCAL ICD-10 Reporting And Analytics - AMB\108,<>\NCAL ICD-10 Reporting And Analytics - AMB\112

    Next I need to pull that phrase (between two commas) out and write it to a new list along with the Project Name and the % Complete fields.

    I picture the logic something like:

    You are working through an excel worksheet that has three columns: Project, % Complete and Predecessors

    Store Project Name in variable
    Go through Predecessors data until project name changes
    As go through, parse out every phrase in the Predecessor field that begins with <>
    For each phrase found, Write out Project Name, Predecessor phrase and % Complete creating a new dataset on same worksheet
    Check for change in Project Name, if not, Next Predecessor
    If Project Name has changed then got back to store project name in variable.
    Go back to check if Project Name has changed.

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Need to pull all strings that start with <> and...

    Attach please a sample file and desired result
    If solved remember to mark Thread as solved

+ 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. Formula to pull distinct data strings
    By rz6657 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-18-2013, 01:44 PM
  2. Replies: 2
    Last Post: 09-01-2012, 04:24 PM
  3. pull dates from strings
    By farrukh in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-16-2012, 02:12 PM
  4. Finding Start Position of string in list of strings
    By longfisher in forum Excel General
    Replies: 5
    Last Post: 05-25-2007, 10:34 PM
  5. Replies: 3
    Last Post: 01-26-2006, 01:55 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