+ Reply to Thread
Results 1 to 8 of 8

Macro to Copy Rows to new sheet based on Multiple Criteria

  1. #1
    Registered User
    Join Date
    04-04-2015
    Location
    Phoenix
    MS-Off Ver
    365
    Posts
    6

    Macro to Copy Rows to new sheet based on Multiple Criteria

    I've been searching the forums and there are many answers that get me really close to what I need to do: I need a macro that copies entire rows of information based on multiple criteria being True. I have attached a simplified version of the spreadsheet, and I'd like to be able to run a macro which populates the sheet labeled as ACME with all rows the have an open Issue (Column F) AND have ACME as the responsible party (Column H) OR the Support (Column I).

    What would be really nice, but not necessary at this point, would be if a dialogue box popped up asking which company you'd like to search for open issues with, but for now, I can just use multiple macros to pull information for each company.

    There are some pretty fantastic answers out there, but for the most part, they're just addressing moving information based on one-criteria. The and/or is really throwing me.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Macro to Copy Rows to new sheet based on Multiple Criteria

    "to pull information for each company." from where the company is picking from?
    - Battle without fear gives no glory - Just try

  3. #3
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: Macro to Copy Rows to new sheet based on Multiple Criteria

    Quick question, how about strings like "Eleven/Acme" and "Acme/L. Sklar" should these be excluded or not?

    Alf

  4. #4
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Macro to Copy Rows to new sheet based on Multiple Criteria

    In case of "Acme/L. Sklar" what to do ?

  5. #5
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,480

    Re: Macro to Copy Rows to new sheet based on Multiple Criteria

    Here ya go,

    See the demo

    Look at the attchment.

    Your workbook at work video
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Macro to Copy Rows to new sheet based on Multiple Criteria

    If we have to copy rows when exist Acme at least

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by PCI; 04-05-2015 at 03:38 PM. Reason: Typo

  7. #7
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Macro to Copy Rows to new sheet based on Multiple Criteria

    A short improvement: Clean up Acme sheet

    Please Login or Register  to view this content.
    Attached Files Attached Files

  8. #8
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,480

    Re: Macro to Copy Rows to new sheet based on Multiple Criteria

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. Macro to copy rows from multiple worksheets based on criteria in range
    By guidovdn in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 11-14-2013, 01:21 PM
  2. Copy rows from one sheet to another based on multiple criteria
    By Abe8192 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-01-2012, 04:33 PM
  3. Copy Rows to new sheet based on multiple criteria (complex)
    By Kramxel in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-08-2011, 07:02 AM
  4. [SOLVED] Macro to copy and paste rows to a new sheet based on criteria
    By Belo in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-31-2010, 02:25 AM
  5. Copy\Paste multiple criteria based rows to new sheet
    By namz in forum Excel Programming / VBA / Macros
    Replies: 46
    Last Post: 06-06-2008, 08:08 AM

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