+ Reply to Thread
Results 1 to 4 of 4

VBA for extract #s from diff. strings of data

  1. #1
    Registered User
    Join Date
    08-19-2010
    Location
    new york
    MS-Off Ver
    Excel 2010
    Posts
    97

    VBA for extract #s from diff. strings of data

    I'm attaching an example. column A shows what the data looks like, it will always start in A12 (if that makes a difference), and B and C show what I need from the random string of data in A. I tried text to column and what happens is that for column B i always get stuck with the "S:" and in column C i always get stuck with the color description after the 3-digit color code.

    I feel like i need coding or possibly a mega formula, but i'm having trouble, please help.

    the style # will always come after the "S:" but sometimes it will be 6 digits, and sometimes 7, and the color code will always be 3 digits.
    Attached Files Attached Files
    Last edited by juniperjacobs; 02-05-2011 at 01:40 PM. Reason: solved

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: VBA for extract #s from diff. strings of data

    Formula wise - perhaps:

    Please Login or Register  to view this content.

  3. #3
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: VBA for extract #s from diff. strings of data

    Try this workbook, the formula in C12 is dependant on the formula in B12
    Attached Files Attached Files
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  4. #4
    Registered User
    Join Date
    08-19-2010
    Location
    new york
    MS-Off Ver
    Excel 2010
    Posts
    97

    Re: VBA for extract #s from diff. strings of data

    can i just say, this site and its helpers never cease to amaze me, thanks all, problem solved w/ both solutions!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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