+ Reply to Thread
Results 1 to 4 of 4

Copying partial rows with matching criteria using VBA

  1. #1
    Registered User
    Join Date
    02-25-2014
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    46

    Copying partial rows with matching criteria using VBA

    I am trying to copy data from rows when the value in column B matches a certain, specified value. Currently, I have the below formula that successfully copies all of the matching rows into the destination sheet.

    Please Login or Register  to view this content.
    However, I do not need to copy the values in the first columns of the source data, so I attempted to adjust the formula to account for that:

    Please Login or Register  to view this content.
    Unfortunately, when I run this formula, all of the matching rows seem to copy properly but they overwrite on the same row of the destination sheet rather than properly moving down a row for each entry as the first formula does. How can I fix the second formula so that it works in the same manner as the first one?

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,833

    Re: Copying partial rows with matching criteria using VBA

    Try:
    Please Login or Register  to view this content.
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  3. #3
    Registered User
    Join Date
    02-25-2014
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    46

    Re: Copying partial rows with matching criteria using VBA

    Perfect. Thanks so much!

  4. #4
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,833

    Re: Copying partial rows with matching criteria using VBA

    My pleasure.

+ 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. Replies: 7
    Last Post: 10-15-2014, 07:33 AM
  2. Help with copying partial rows to another worksheet when text indicates
    By my_christina in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-27-2014, 06:16 PM
  3. Replies: 4
    Last Post: 06-08-2013, 01:52 PM
  4. Multiple Criteria and Partial Date Matching
    By GreatLakesJK in forum Excel General
    Replies: 7
    Last Post: 07-08-2010, 11:03 AM
  5. Matching the rows with the partial information
    By Dhruva101 in forum Excel General
    Replies: 0
    Last Post: 08-28-2006, 07:16 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