+ Reply to Thread
Results 1 to 2 of 2

Macro to identify relevant rows

Hybrid View

  1. #1
    Registered User
    Join Date
    05-11-2011
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2003
    Posts
    1

    Macro to identify relevant rows

    Hi everyone! I'm new to excel macros and so I apologize if this question is silly but any help or advice you have would be great.

    I have a workbook that contains a worksheet called "Config #1" which is made up of 400+ lines of data. However, only approximately 40 of these lines are relevant for other users and these need to be summarized on another worksheet entitled "Main Sheet". The tricky part is that the relevant lines are not always the same (meaning there's always 40 but it's not always the same 40).

    I would like a to create a macro that will search column B in worksheet "Config #1" and identify rows that are flagged (at the moment I'm using a Y/N indicator, "Y" implying it's a relevant row). Then, for all the rows with a Y in column B I'd like the data from columns C, E, and F to be sent to the worksheet "Main Sheet" and placed in columns B, C, and D (rows 15-34) respectively.

    It is entirely possible I don't even need a macro for this but it seems like it would make things simpler. Thanks so much for your help!

    Update: I've attached a simplified (sorry, it's really dummy info) version of what I need. As you can see in the file, the "Y" lines of sheet Config #1 are summarized in the table in "Main Sheet". I need a macro that will allow me to update this table as the Y/N of each line is changed. Thanks again!
    Attached Files Attached Files
    Last edited by ernie_2005; 05-11-2011 at 08:11 PM.

  2. #2
    Forum Expert
    Join Date
    10-10-2008
    Location
    Northeast Pennsylvania, USA
    MS-Off Ver
    Excel 2007
    Posts
    2,387

    Re: Macro to identify relevant rows

    ernie_2005,

    Welcome to the Excel Forum.

    To get the most precise answer, it is best to upload/attach a sample workbook (sensitive data scrubbed/removed) that contains an example of your raw data on one worksheet, and on another worksheet your desired results.

    The structure and data types of the sample workbook must exactly duplicate the real workbook. Include a clear and explicit explanation of your requirements.

    To attach your workbook, click on the New Post button, then scroll down and click on the Go Advanced button, then scroll down and click on the Manage Attachments button.
    Have a great day,
    Stan

    Windows 10, Excel 2007, on a PC.

    If you are satisfied with the solution(s) provided, please mark your thread as Solved by clicking EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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