+ Reply to Thread
Results 1 to 2 of 2

Copy two column and paste into another ws, with data filtered out

  1. #1
    Registered User
    Join Date
    08-16-2010
    Location
    us
    MS-Off Ver
    Excel 2007
    Posts
    21

    Copy two column and paste into another ws, with data filtered out

    I need to copy and paste two columns of data, but I do not need everything.

    in the source ws called "DeptXref", I need columns A & B. if A matches the number in ws "Direction" cell B4
    and if ws "DeptXref column B is a 4 digit value, paste into ws "Table Build".

    Any suggestions?
    Thanks

  2. #2
    Valued Forum Contributor
    Join Date
    08-07-2014
    Location
    Quito, Ecuador
    MS-Off Ver
    Excel 2016 & 365, Windows 10
    Posts
    511

    Re: Copy two column and paste into another ws, with data filtered out

    You should define:
    .- the first and last row in " DeptXref " column A
    .- the next row in ws "Table Build"
    then Loop from first to last row
    .- In each step compare: If A(i) ="Direction" cell B4 and B(i) is numeric and has 4 digits
    .- and paste in the next row

    So a code could be something like:

    Please Login or Register  to view this content.
    Last edited by vichopalacios; 09-18-2017 at 11:31 AM.
    Barriers are there for those who don't want to dream

+ 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. Copy Filtered column data and Paste Special Values to another sheet
    By mr_newbie in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-04-2016, 11:39 AM
  2. Filtered Data Loop, Copy and Paste into New Workbook, delete first column and save
    By newbiegirl3113 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-20-2016, 03:44 AM
  3. Copy from filtered cells and paste to another column
    By floxxie in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 01-07-2015, 07:19 AM
  4. Copy/Paste filtered data from one sheet to another with only matched column headings
    By archerrc in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-08-2013, 05:00 PM
  5. Replies: 3
    Last Post: 08-28-2012, 10:09 AM
  6. Replies: 4
    Last Post: 08-16-2012, 06:20 PM
  7. Replies: 5
    Last Post: 05-23-2012, 10:33 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