+ Reply to Thread
Results 1 to 4 of 4

Copy table data, sorted and specific rows.

  1. #1
    Registered User
    Join Date
    10-15-2014
    Location
    Copenhagen
    MS-Off Ver
    201, 2013, 365
    Posts
    42

    Copy table data, sorted and specific rows.

    Hi All.

    Hoping for some smart solutions to a self invented problem.

    On my data sheet I have a table, with Citynames in the top row, and different statements downwards.

    I would like to on page to select a city name from a droplist (preferable updated automatic, if city names are added)
    Then the relevant columns from the table is copied over.
    First column "a" and the the column with the corresponding city name, this is sorted so no empty field are showed.

    Is this at alle possible in excel ??

    Tried to show it in attached sheet.

    Thanks for all your help. :-)
    Attached Files Attached Files
    Last edited by AliGW; 01-10-2021 at 11:51 AM. Reason: Irrelevant section of title removed - this is a help forum!!!

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: Copy table data, sorted and specific rows.

    Yes, it's very easy with INDEX MATCH MATCH - in B9 copied down:

    =INDEX(Tabel1[[City1]:[City9]],MATCH(Print!A9,Tabel1[Area],0),MATCH(Print!$B$2,Tabel1[[#Headers],[City1]:[City9]],0))
    Attached Files Attached Files
    Last edited by AliGW; 01-10-2021 at 12:17 PM.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    10-15-2014
    Location
    Copenhagen
    MS-Off Ver
    201, 2013, 365
    Posts
    42

    Re: Copy table data, sorted and specific rows.

    Hi

    Thanks for the feedback.
    I do not think I have explained it correctly. - The Data sheet is continues being expanded with Citys (Columns) and Area (Rows), and on the print sheet, I would like when choosing a city that the right data is shown below, from the data sheet, preferrable in a sort of in a tabel.
    If I copy this formel I need to know how many row their should be shown, otherweise the formel will return an error, as far as I can find out.
    Having a hard time with the formel since my excel is in Danish. To make sure I dont make mistake, could you maybe upload a sheet with the formel in, then I should be able to double tjek if I did something worng. THANKS

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: Copy table data, sorted and specific rows.

    There’s a workbook attached to my last post. If you want something different, then you are going to need to provide a workbook that is clear.

+ 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: 8
    Last Post: 09-20-2017, 02:09 AM
  2. [SOLVED] Sorted copy of a table
    By laszlo.kocsis in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-10-2012, 04:02 AM
  3. Replies: 0
    Last Post: 09-17-2012, 11:10 AM
  4. 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
  5. Copy & Paste Sorted Rows
    By tjonesexcel in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-08-2008, 05:48 PM
  6. How to copy the first 30 rows of a sorted list?
    By StuntMonkeh in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 01-10-2008, 03:17 PM
  7. [SOLVED] Copy table information and paste sorted based on specific field.
    By Paul in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-05-2005, 12:05 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