+ Reply to Thread
Results 1 to 3 of 3

Copying specific rows *and* columns to a new table

  1. #1
    Registered User
    Join Date
    07-05-2011
    Location
    Scotland
    MS-Off Ver
    Excel 2003
    Posts
    74

    Copying specific rows *and* columns to a new table

    I haven't used excel properly in a while and am trying to do something simple and failing.

    As per the attached example, I have a large table with many columns. I want to keep this as a master and create a new table which only shows the data marked as 'completed' and only includes some columns.

    I was trying a vlookup but, clearly, this doesn't work as there are several columns marked 'completed'. I was thinking of a pivot table but my brain will not extract the info I need to make that work either.

    Can you help? The first sheet of the attached shows an example of an original table and the second sheet shows what I want it to look like.

    Thanks

    Glayva
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: Copying specific rows *and* columns to a new table

    Try the formula below in A3 of your "Aim" page. Confirm it with Ctrl + Shift + Enter instead of the usual Enter. Fill down through at least 20 rows, then fill right through column E. The result should look like your "Aim" sheet, but it'll automatically update as entries on your main page become 'completed'.

    =IFERROR(INDEX(Original!$A$3:$F$23,SMALL(IF(TRIM(Original!$A$3:$A$23)="completed",ROW(Original!$A$3:$A$23)-2),ROW(1:1)),MATCH(A$2,Original!$A$2:$F$2,0)),"")

  3. #3
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Copying specific rows *and* columns to a new table

    Or with two helper columns in a new sheet
    Try this formulas in A3, B3 and C3, respectively, and copy down
    Please Login or Register  to view this content.
    Notes: 1) You can copy C3 down and right
    2) In the new sheet on line two you must provide the name of the column or columns you want
    See the file for clarification
    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. Calculating quartiles for specific rows and columns in a powerpivot table
    By earth2dragon in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-09-2015, 10:50 AM
  2. [SOLVED] macro to copy specific columns and rows for a specific month and week
    By Shellybelly in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-23-2015, 11:23 AM
  3. Excel VBA/Macro: Selecting Specific Columns and Rows in Pivot Table and Formatting
    By rarascon in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-20-2013, 03:50 PM
  4. Replies: 0
    Last Post: 09-17-2012, 11:10 AM
  5. Macro to copy specific data to specific columns from a pivot table
    By Raju Radhakrishnan in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-09-2012, 07:24 PM
  6. Copying specific columns
    By jomili in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-20-2010, 10:15 AM
  7. Copying rows from sheet where cells in specific columns are empty
    By wishmaker in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-29-2010, 10: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