Results 1 to 9 of 9

Search for a value in a column and copy row to new sheet for all matching values

Threaded View

  1. #1
    Registered User
    Join Date
    02-13-2015
    Location
    Singapore
    MS-Off Ver
    2007
    Posts
    5

    Search for a value in a column and copy row to new sheet for all matching values

    Greetings All,

    I have been working on a macro that allows me to search for a value in a column and copy the row with matching values to a new sheet.
    The following web link has greatly assisted me with running a macro - http://www.techonthenet.com/excel/ma...for_string.php

    Unfortunately, the raw data i have present doesn't allow the macro to fully function and i need some guidance with resolving this issue.

    The current macro only identifies and copies cells with a single value. However my raw data has several options codes within a cell.

    Dd.jpg
    Is it possible to modify the following formula to identify a specific value within a range of values? If Range("D" & CStr(LSearchRow)).Value = Range("C1") Then

    If else should i split the options to separate cells? If that's the case how do i expend the current range from "D" to "D","E","F"?

    Truly appreciate your assistance!

    Thank you in advance,
    Gopi
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Code to search for matching values in two columns, take text from that row and copy
    By Excelsemi in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-23-2014, 12:12 PM
  2. Replies: 3
    Last Post: 03-31-2014, 01:00 PM
  3. Need a Macro to search for text in sheet and copy the matching row to new sheet
    By robin_108 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-08-2012, 12:59 PM
  4. [SOLVED] Search and count matching values in each column
    By sans in forum Excel Programming / VBA / Macros
    Replies: 27
    Last Post: 05-25-2012, 02:50 AM
  5. [SOLVED] Search for a value in a column and copy row to new sheet for all matching values
    By mrcois in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-20-2012, 12:09 PM

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