+ Reply to Thread
Results 1 to 4 of 4

How to copy nonconsecutive cells into another sheet consecutively

  1. #1
    Forum Contributor
    Join Date
    02-19-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    110

    How to copy nonconsecutive cells into another sheet consecutively

    Hello,

    B+N Total sheet is where the data is and the decider is Column 'AF' which is already formulated and has 2 options: 'MMS' or 'Retail'.

    I'm trying to write a code which needs to do:

    If B+N Total sheet's AF Column has 'MMS' then copy that row and paste it into ADI MMS consecutively.

    Just like the example attached Row 2,3,5 is MMS and not row 4. So I'm trying to get those rows in periodical order as Row 2,3,4 into ADI MMS Sheet.

    Thank you in advance!
    Attached Files Attached Files
    Last edited by clprdctn; 03-10-2014 at 03:46 PM.

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: How to copy nonconsecutive cells into another sheet consecutively

    Something like this can do it. Feel free to name your sub and the variable whatever you want.

    Please Login or Register  to view this content.

    This looks at a range in AF2:AF50, checks if it's something, and if it is copies the entire row to another sheet 1 row below the last thing in column A.
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  3. #3
    Forum Contributor
    Join Date
    02-19-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    110

    Re: How to copy nonconsecutive cells into another sheet consecutively

    Thank you SO MUCH!

  4. #4
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: How to copy nonconsecutive cells into another sheet consecutively

    Awesome, glad I could help out.

    I only started coding a few weeks ago but so far I'm pretty decent at For Each and Do While loops.

    Automation can be so efficient.

+ 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] Need formula to sum range of cells consecutively across a row not duplicating used cells
    By angie18a in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-28-2013, 03:46 PM
  2. Replies: 14
    Last Post: 05-10-2013, 03:27 PM
  3. Copy and paste non consecutive cells and paste consecutively in another workbook
    By macquhele in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-12-2011, 02:36 PM
  4. Copy data from nonconsecutive cells from multiple sheets to one.
    By Alorien in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-15-2010, 05:02 PM
  5. multi-page consecutively numbered sheet
    By Joeblow in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-21-2008, 11:11 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