+ Reply to Thread
Results 1 to 4 of 4

Copy Rows to Another Sheet when a Criteria is Met

  1. #1
    Registered User
    Join Date
    04-13-2020
    Location
    Redwood City, CA
    MS-Off Ver
    Microsoft Office Professional Plus 2016
    Posts
    6

    Unhappy Copy Rows to Another Sheet when a Criteria is Met

    Hi all,

    Essentially, I am trying to eliminate manual tracking of defects in numerous sheets. I want to copy rows from numerous sheets within a spreadsheet to another sheet when one of the fields = Fail.

    For Example:
    Sheet 1=Testing item A, within this sheet there are 11 Columns (stays the same) and 10 rows/tests. Column E (all the columns are the same throughout sheets) is used to identify if a test=Pass/Fail
    Sheet 2=Testing item B, within this sheet there are 11 Columns (stays the same) and 5 rows/tests. Column E (all the columns are the same throughout sheets) is used to identify if a test=Pass/Fail
    Sheet 3=Defects, this should contain all the rows from Sheet 1 & 2 where Column E=Fail. Therefore, if Sheet 1 has 5 items that failed, and Sheet 2 has 2 items that failed, Sheet 3 (Defect list) would show 7 items that failed.

    Any help would be most appreciated. I've been looking around for a solution to my problem, the closest I got was with the following thread:
    ThisWebsite/excel-formulas-and-functions/1256148-copy-complete-rows-based-on-criteria-of-cells.html
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    03-22-2020
    Location
    Malaysia
    MS-Off Ver
    2013 and 365 Pro Plus
    Posts
    56

    Re: Copy Rows to Another Sheet when a Criteria is Met

    Basically I just create another Helper Sheet, link data on Sheet Item A and Item B

    And sort in out... link the sort data into Defects sheet

    I'm sure someone else will come with the best solution

    I'm not using Index, Match or Indirect formula, because of personal preference
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    04-13-2020
    Location
    Redwood City, CA
    MS-Off Ver
    Microsoft Office Professional Plus 2016
    Posts
    6

    Re: Copy Rows to Another Sheet when a Criteria is Met

    Hi biex,

    That you so much for looking into it, this approach works with running only 15 tests. However, in my real spreadsheet I have 50+ sheets with 2000+ cumulative test scenarios, some sheets might have only 1 test scenario, other sheets would have 200+ test scenarios.Therefore, I am trying to write something up that would recognize Fail items and skip everything else.

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,532

    Re: Copy Rows to Another Sheet when a Criteria is Met

    Since you are using the 2016 version and since the columns are the same on each sheet I feel that you could use Get & Transform (AKA Power Query) to produce a single updateable table. You could then filter that table to show only the rows containing "Fail" in the Status column (E).
    Note that the data in sheets like the Item A and Item B sheets would need to be converted into actual Excel tables (Ctrl + t)
    Linked below is a video/tutorial produced by an instructor at Highline College wherein the first part of the video explains how to append all tables in a workbook.
    https://www.youtube.com/watch?v=jVkWDZ7B-Zs
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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] Copy rows to another sheet if criteria is met
    By hau_rude in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 08-19-2016, 01:23 PM
  2. [SOLVED] Copy rows to another sheet if criteria is met
    By hau_rude in forum Excel General
    Replies: 2
    Last Post: 08-19-2016, 09:54 AM
  3. Automatically copy rows to another sheet based on criteria, when original sheet is updated
    By NoviceProgrammer in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-29-2016, 02:14 AM
  4. Replies: 1
    Last Post: 11-14-2013, 09:24 PM
  5. Search row with criteria in all sheet, copy rows and paste in new created sheet
    By dekueb in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 08-24-2013, 01:42 PM
  6. Copy rows to a given sheet based on several criteria
    By bfora in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-02-2013, 11:12 AM
  7. Replies: 4
    Last Post: 07-24-2012, 07:09 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