+ Reply to Thread
Results 1 to 5 of 5

Selecting and Copying separate rows of data

  1. #1
    Registered User
    Join Date
    06-27-2011
    Location
    Buffalo Ny
    MS-Off Ver
    Excel 2010
    Posts
    3

    Selecting and Copying separate rows of data

    Hey guys,

    So I have two tabs up, in the second tab there is a column with mostly numerical values, a few #N/A because I used a vlookup function. There is also a column in tab 1 with numbers. How do I get it so that the values in tab 2 are selected in tab 1, so I can copy and paste the corresponding rows into a new document.

  2. #2
    Forum Contributor
    Join Date
    05-18-2004
    Location
    Portland, Oregon
    MS-Off Ver
    2016
    Posts
    182

    Re: Selecting and Copying separate rows of data

    Hello Tangobrovo33,

    You may want to attach an example file for what you are trying to do....

  3. #3
    Registered User
    Join Date
    06-27-2011
    Location
    Buffalo Ny
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Selecting and Copying separate rows of data

    unfortunately I can't. Just imagine an excel file with two tabs. On tab one in column A, is the numbers 1-20 (in my case it goes into the 10's of thousands but lets just work on a small scale). On tab 2, column A, there are 15 numbers throughout A1-A20 (the cells with no values are blank). How do I get it so that I can somehow filter the values in tab 2, through tab one, so only the 15 numbers in tab 2 are showing in tab 1.

    Does that make it any clearer?

  4. #4
    Forum Expert
    Join Date
    06-26-2010
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010
    Posts
    1,673

    Re: Selecting and Copying separate rows of data

    I would lean towards a vba solution if I truly want everything filtered, selected, and copied in one step. But a two (or three) step approach would be to add a column to table 1. That column would have the equation:
    =MATCH(A1,Sheet3!$A$1:$A$15,0)

    A1 would change for each row, the Sheet3!$A$1:$A$15 would be your table 2 to match.

    This would generate a list of numbers and #N/As. Sort your table using the match column, and the #N/As should move to the top or bottom. Now just select the rows that don't have the #N/As and copy.

    Pauley

  5. #5
    Registered User
    Join Date
    06-27-2011
    Location
    Buffalo Ny
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Selecting and Copying separate rows of data

    The problem is the positions are different. So if each row is corresponding to a person, whoever is in row 5 on tab 1, is different from who is in row 5 on tab 2. This might be an easier way to look at it, but is there any way to use the actual filter function, and just filter for all the numbers in column A on tab 2. I have tried using the custom filter and advanced but none seem to work.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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