+ Reply to Thread
Results 1 to 5 of 5

Thread: Get text after specified value in one cell

  1. #1
    Registered User
    Join Date
    08-18-2011
    Location
    VietNam
    MS-Off Ver
    Excel 2007
    Posts
    3

    Get text after specified value in one cell

    Hi,
    I spent few days try to search for a solution for my data but it doesn't work out. Please help me.
    My data is as attached file. There are text and number in one cell.
    What I need is to remove redundant numbers but still keep the numbers after "products_options_values_name=" or get all data after each "products_options_values_name=".
    The expected result should be for example: 28/32 30/32 30/34 and split into 3 rows from each cell.
    Can anyone please help me? Thanks in advance.
    Attached Files Attached Files

  2. #2
    Forum Guru JBeaucaire's Avatar
    Join Date
    03-21-2008
    Location
    Bakersfield, CA
    MS-Off Ver
    2010
    Posts
    19,224

    Re: Get text after specified value in one cell

    Update your sample sheet, you should always include a BEFORE/AFTER example set so the goal is clearly presented.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    “None of us is as good as all of us” - Ray Kroc
    “Actually, I *am* a rocket scientist.” - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    08-18-2011
    Location
    VietNam
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Get text after specified value in one cell

    Quote Originally Posted by JBeaucaire View Post
    Update your sample sheet, you should always include a BEFORE/AFTER example set so the goal is clearly presented.
    Hi JBeaucaire
    I attached an expected file here. Thanks for your concern.
    Attached Files Attached Files

  4. #4
    Forum Guru JBeaucaire's Avatar
    Join Date
    03-21-2008
    Location
    Bakersfield, CA
    MS-Off Ver
    2010
    Posts
    19,224

    Re: Get text after specified value in one cell

    OK, your two test sheets are different in column A, didn't expect that. Which is the correct starting point? Your first sheet has all the cells together in column A, your second has spaces inserted inbetween which would be indicative of an AFTER.

    So a real BEFORE/AFTER would probably have required two sheets, the BEFORE is your first workbook, the AFTER is your second workbook? Correct?

    So you have an "unknown" number of these cells in column A with no blanks, you need to analyze each cell, insert blanks as needed to list all the sizes in column B? Yes?

    Now this will most likely be a macro solution, is that OK?
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    “None of us is as good as all of us” - Ray Kroc
    “Actually, I *am* a rocket scientist.” - JB (little ones count!)

  5. #5
    Registered User
    Join Date
    08-18-2011
    Location
    VietNam
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Get text after specified value in one cell

    Quote Originally Posted by JBeaucaire View Post
    OK, your two test sheets are different in column A, didn't expect that. Which is the correct starting point? Your first sheet has all the cells together in column A, your second has spaces inserted inbetween which would be indicative of an AFTER.

    So a real BEFORE/AFTER would probably have required two sheets, the BEFORE is your first workbook, the AFTER is your second workbook? Correct?

    So you have an "unknown" number of these cells in column A with no blanks, you need to analyze each cell, insert blanks as needed to list all the sizes in column B? Yes?

    Now this will most likely be a macro solution, is that OK?
    Hi,
    yes, my first file is the before doc, the second is the after (expected result). What I need is to get the text after "products_options_values_name=" from each cell and then copy it to another colum. If it is more than 1, insert row and copy it.
    I don't know how to do that, I guess it should be macro but quite complicated to me. I'd really thank you if you could help

+ 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.2.0