+ Reply to Thread
Results 1 to 3 of 3

GURUS: Can't break out a certain piece of a string and put in another column (complicated)

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    09-23-2015
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    187

    GURUS: Can't break out a certain piece of a string and put in another column (complicated)

    Hi all,

    I am delaying with a report that gets generated through an MIS system on a monthly basis, in this report there is s afield called “Milestone Name” (Column AM) and sometimes embedded in this name is a MIS project number, but not always. I have captured a screen shot of a certain point in the Workbook and I changed the text font to blue where the MIS project name is for those cases, so it’s easy to identify. The MIS project number will always follow a certain naming convention. If it’s there will always start with the number 3 or 4, followed by three other numbers, followed by a hyphen and another two numbers… so 3XXX-XX or 4XXX-XX. I don’t know if this is possible or not, but for the fields that do contain this MIS #, is there a way to get VBA to search it and extract it placing it in the next column. The workbook contains +10,000 rows so it would save me a lot of time if I had a macro doing this for me every month.

    Screenshot -
    Capture.PNG


    Problem:
    Sometimes like in row 318 in the picture, the date contains a similar format (2015-08), naturally I would of used the find function to find ####-##, but the problem is how do I do this if the date looks similar, is there a way to get the code to reject anything starting with a 2015 and only copy numbers like 3XXX-XX or 4XXX-XX

    I need to firstly know if this is possible in VBA, if you don’t know how to write a code for it its okay but please give me your input if it’s possible or not. If impossible I can stop trying things. Any feedback is much appreciated, and if you’re a guru and think you can come up with something or set me on the right path, then hats off to you, you are a legend!

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,047

    Re: GURUS: Can't break out a certain piece of a string and put in another column (complica

    Please upload a sample of your workbook, not a picture of your data. Pictures are pretty much impossible to edit, and no-one wants to re-type your data for you
    Also, not all members can upload picture files (Company firewalls and stuff) - and, depending on what browser is being used, some pics dont even show up on the forum

    Your workbook should show a small desensitized example of the data you are working with and a manual mockup of the expected results.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Contributor
    Join Date
    09-23-2015
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    187

    Re: GURUS: Can't break out a certain piece of a string and put in another column (complica

    I posted a new thread as it wouldnt let me upload it...

    http://www.excelforum.com/excel-gene...ml#post4227673

    do you know how to delete this thread?

+ 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. How to display output from one locked data piece and one client-input data piece?
    By tnovak in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-07-2014, 12:48 PM
  2. [SOLVED] how to identify string and integer within one piece of data
    By jakeembx in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-02-2014, 12:29 PM
  3. [SOLVED] Break string into cell (Column)
    By itselflearn in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-02-2013, 12:43 PM
  4. Replies: 9
    Last Post: 11-12-2010, 05:51 AM
  5. Vertical Page Break / Column Break
    By kmg2424 in forum Excel General
    Replies: 0
    Last Post: 07-27-2010, 08:10 AM
  6. Replies: 7
    Last Post: 07-22-2010, 01:35 PM
  7. need to extract piece of string
    By als86 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-24-2009, 09:40 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