+ Reply to Thread
Results 1 to 4 of 4

Serach for string in cell , then move whole row to a new cell

  1. #1
    Registered User
    Join Date
    03-09-2012
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    5

    Serach for string in cell , then move whole row to a new cell

    Hi
    Can anyone help me ?

    I'm trying to search for a certain string in column A and move that whole row to a new cell in column B

    Eg.

    aabbcc
    bbccdd
    ddeeff
    eeaabb
    aaccee
    bbddff
    aabbdd

    so if search for "ab" , it will move any cell that have "ab" into the next column.

    aabbcc
    eeaabb
    aabbdd

    Thanks in advance
    nexus

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Serach for string in cell , then move whole row to a new cell

    Try:

    =IFERROR(INDEX($A$1:$A$100,SMALL(IF(ISNUMBER(SEARCH("ab",$A$1:$A$100)),ROW($A$1:$A$100)-ROW($A$1)+1),ROWS($B$1:$B1))),"")

    confirmed with CTRL+SHIFT+ENTER not just ENTER and copied down.

    assuming data is in A1:A100
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Contributor
    Join Date
    01-28-2010
    Location
    Riverside, CA
    MS-Off Ver
    Excel 2010
    Posts
    132

    Re: Serach for string in cell , then move whole row to a new cell

    Wow, what a big formula, I was working on something like this:

    Please Login or Register  to view this content.
    afterwards you paste down, copy column B, paste as values, and sort the values anyway you like.
    Happy Excel'ing!

  4. #4
    Registered User
    Join Date
    03-09-2012
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Serach for string in cell , then move whole row to a new cell

    It works, thank you both so much, you just save my day

    Btw how do I remove those rows that has been move to column B from colum A

    Happy Friday!
    Last edited by nexus888; 03-09-2012 at 01:27 PM.

+ 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