+ Reply to Thread
Results 1 to 2 of 2

MATCH STRING IN A COLUMN AND RETURN ALL ROWS (entire row) THAT MATCH THE STRING

  1. #1
    Registered User
    Join Date
    10-15-2019
    Location
    Mumbai, India
    MS-Off Ver
    Latest
    Posts
    1

    Post MATCH STRING IN A COLUMN AND RETURN ALL ROWS (entire row) THAT MATCH THE STRING

    Dear Team Members,

    Hope you are all doing well.


    I need some help with regards to my excel file. (Sample file attached)

    I have an array containing data into rows and columns.
    I want to search for a string in one of the columns (Lets say the first column)
    For eg : In the attached file, I have shown the search text as "red"

    I want the formula to search in the entire column for the string "red" and return the entire row as outputs.

    So If "red" appears 5 times .. it should return all those 5 rows where the text "red" appears.

    I have shown the desired output as well in my excel file.

    Please help !!
    Attached Files Attached Files

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,882

    Re: MATCH STRING IN A COLUMN AND RETURN ALL ROWS (entire row) THAT MATCH THE STRING

    Here is a VBA solution for you

    Please Login or Register  to view this content.
    How to install your new code
    • Copy the Excel VBA code
    • Select the workbook in which you want to store the Excel VBA code
    • Press Alt+F11 to open the Visual Basic Editor
    • Choose Insert > Module
    • Edit > Paste the macro into the module that appeared
    • Close the VBEditor
    • Save your workbook (Excel 2007+ select a macro-enabled file format, like *.xlsm)


    To run the Excel VBA code:
    • Press Alt-F8 to open the macro list
    • Select a macro in the list
    • Click the Run button
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ 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] Need formula to find partial string match in a separate column and return adjacent value.
    By majesticoj in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-27-2019, 10:28 AM
  2. Replies: 6
    Last Post: 09-05-2019, 07:45 AM
  3. Replies: 2
    Last Post: 05-27-2016, 12:30 AM
  4. [SOLVED] Formula or Macro, match string,from 1 cell to a column,String use dash
    By david gonzalez in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-07-2013, 06:03 PM
  5. [SOLVED] Search Column A and B for string match and return value of column C
    By RichTea88 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-18-2013, 10:02 AM
  6. Match string in one column, return value in same row, skip rows that down't match
    By anilsen0711 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-01-2013, 05:35 AM
  7. Compare a string in two columns, if match then append string from third column
    By Londonderry in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-22-2007, 03:41 PM

Tags for this Thread

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