+ Reply to Thread
Results 1 to 4 of 4

Search in Column and display in another column

  1. #1
    Registered User
    Join Date
    10-29-2013
    Location
    Sweden
    MS-Off Ver
    Excel 2010
    Posts
    17

    Search in Column and display in another column

    Hello all,

    I need some help with this: I got a column with strings, I would like to serach for the string LM in the column and display the strings that contain LM in another column.

    Ex;

    Column1
    TT_LM
    GG
    YY
    RR_LM

    So I would like to have this in column2
    TT_LM
    RR_LM

    please help!
    Per

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Search in Column and display in another column

    welcome to the forum, Per. if you're trying to find those ending with "LM", try this in C1:
    =IFERROR(INDEX($A$1:$A$10,SMALL(IF(RIGHT($A$1:$A$10,2)="LM",ROW($A$1:$A$10)),ROWS(C$1:C1))-ROW($A$1)+1),"")

    if you're trying to find those containing "LM", then:
    =IFERROR(INDEX($A$1:$A$10,SMALL(IF(ISNUMBER(SEARCH("LM",$A$1:$A$10)),ROW($A$1:$A$10)),ROWS(C$1:C1))-ROW($A$1)+1),"")

    both are array formulas...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    10-29-2013
    Location
    Sweden
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: Search in Column and display in another column

    Thanks!

    I do not manage to get it in

    I pase the formula and after that I press CTRL+SHIFT+ENTER, is that correct ? But the formula does not "activate"

  4. #4
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Search in Column and display in another column

    Hi,

    Have you really given up so quickly on this solution that you have to post on another forum?

    http://www.mrexcel.com/forum/excel-q...er-column.html

    Would it not be worth investigating/checking that you have entered the array formula correctly before doing so? Would seem like a shame (and a touch unfair on benishiryo, perhaps) if you didn't first confirm whether the solution offered here, when correctly entered, worked or not, before seeking help on another forum.

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

+ 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. Search results of a column display a set value in another column if matched
    By rkrause54 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-12-2013, 01:59 PM
  2. Display Rows that have a search value in any column
    By daqdave in forum Excel General
    Replies: 1
    Last Post: 12-02-2012, 02:27 PM
  3. search column A DISPLAY ROW ON SHEET1
    By belkin in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-25-2011, 07:45 AM
  4. Column search, display non-duplicates
    By garretonufer in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-30-2009, 06:18 PM
  5. [SOLVED] Search a column and display a value
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-22-2006, 11:30 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