+ Reply to Thread
Results 1 to 3 of 3

How to copy rows based on multiple criteria from one worksheet to another ?

  1. #1
    Registered User
    Join Date
    10-19-2013
    Location
    Prague, Czech Republic
    MS-Off Ver
    Excel 2010
    Posts
    2

    How to copy rows based on multiple criteria from one worksheet to another ?

    In the open Excel workbook I have two worksheets. I need to copy rows from the first worksheet selected by multiple criteria (e.g. A="1+J", C= NOT ("tree" OR "rock") and E>100) to empty second worksheet. I need to copy just the adjacent columns A to Q values not the whole rows. The number of rows in the first worksheet is known. Any idea ?

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,986

    Re: How to copy rows based on multiple criteria from one worksheet to another ?

    Do you want a VBA solution or a formula?

    it would also help if you attached a sample sheet. Remember to remove ALL confidential information first!!!

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    The paperclip icon
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    10-19-2013
    Location
    Prague, Czech Republic
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: How to copy rows based on multiple criteria from one worksheet to another ?

    Hi Glenn,

    Thank you. If I need just to count selected rows I use following formula (not VBA):

    =COUNTIFS('Worksheet 1'!$D$2:$D$981;"<100";'Worksheet 1'!$K$2:$K$981;"1 rok";'Worksheet 1'!$N$2:$N$981;"1+J";'Worksheet 1'!$R$2:$R$981;"<>1";'Worksheet 1'!$J$2:$J$981;">42004";'Worksheet 1'!$S$2:$S$981;"stand";'Worksheet 1'!$P$2:$P$981;"<>neprodlouženo";'Worksheet 1'!$P$2:$P$981;"<>ukončeno")

    Note I have already extracted all rows from the (sample) Table they do not match the above criteria.

    I need a VBA solution.

    Dan
    Attached Files Attached Files

+ 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 from one worksheet into another based on single criteria
    By OLLY-7 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 03-23-2014, 11:49 AM
  2. [SOLVED] Copy rows from one worksheet to another worksheet based on a cell criteria.
    By keneco in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-07-2013, 10:28 AM
  3. copy rows from multiple worksheets to a new condition based on criteria
    By TheVoodoo in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 11-20-2012, 02:37 PM
  4. Copy rows from a column based on inputted search criteria to another worksheet
    By dale.lebar in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-27-2012, 02:17 PM
  5. Replies: 5
    Last Post: 06-08-2012, 11:26 PM
  6. 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
  7. Copy rows from one worksheet to another based on date criteria
    By jo74 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-23-2012, 11:29 PM
  8. Replies: 0
    Last Post: 05-16-2011, 10:30 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