+ Reply to Thread
Results 1 to 7 of 7

copying strings in a cell based on common text

  1. #1
    Registered User
    Join Date
    07-12-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    9

    copying strings in a cell based on common text

    sample.xlsx
    I have uploaded a sample of data i need to sort out. In this, the string &&parent=xyz&& is common in every line of every cell. I need to identify this string and copy the line of the cell to another cell. there are 3 kinds of xyz so end result should be 3 columns with each cell containing the same &&parent=xyz&& string (i.e. same xyz).

  2. #2
    Forum Contributor
    Join Date
    06-26-2013
    Location
    LAX
    MS-Off Ver
    Excel 2007,Excel 2010
    Posts
    363

    Re: copying strings in a cell based on common text

    Hello,

    While I understand your need, it will easy to get the results if you upload the sample sheet "with your desired results" for few lines.

  3. #3
    Registered User
    Join Date
    07-12-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: copying strings in a cell based on common text

    here is my desired result for row 1.
    Attached Files Attached Files

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

    Re: copying strings in a cell based on common text

    Try the attached
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    07-12-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: copying strings in a cell based on common text

    looks to be working fine, thanks. how do i apply it to a different worksheet?

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

    Re: copying strings in a cell based on common text

    Replace Sheets.Add with something like Sheets("Sheet2") if needed.

    Please Login or Register  to view this content.

  7. #7
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: copying strings in a cell based on common text

    Welcome to the Forum, askhari:

    Your duplicate posts did not comply with Rule 5 of our forum rules. These threads have been merged.

    When you joined the forum recently you agreed to abide by the Forum Rules, but in haste I fear you might not have actually read them.
    Please stop and take a moment to read them now. We all follow these rules for the benefit of all, as must you. Thanks.
    _________________
    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!)

+ 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] Simplification of text strings using common terms
    By Why Chromosome in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-29-2013, 12:29 PM
  2. Extract common text strings between two cells A1 B1
    By ghost_chip in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-25-2013, 01:39 AM
  3. Help searching an array of text strings for common strings
    By ABComp in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-23-2012, 11:19 PM
  4. Looking for common strings of text
    By allenglishboy in forum Excel General
    Replies: 1
    Last Post: 12-10-2012, 08:08 AM
  5. Copying rows based upon 3 text strings
    By MasterMonk in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-13-2008, 09:16 AM

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