+ Reply to Thread
Results 1 to 4 of 4

Return entire rows from multiple sheets into one table

  1. #1
    Registered User
    Join Date
    10-06-2014
    Location
    London, UK
    MS-Off Ver
    2013
    Posts
    2

    Return entire rows from multiple sheets into one table

    Hello,

    I need some help with a search of a workbook. I have a list of staff who work in an overseas office and I have their Name, Job title, DoB, passport number, outbound flight and return flight details. When they change over they always swap with another individual.

    Each sheet covers one calendar month and lists everyone in the office and at the bottom any replacement staff due in that month.

    What I want to do is on a separate sheet, some how list all staff that are due to arrive and depart in the upcoming two weeks and display all the same info which is on the other sheets (name, flight details, passport no etc)

    The best formula I have found so far can return all info from a single row but not over a rolling 14 day period.

    The workbook has been created in Excel 2003. I can edit in Excel 2013 but need to make it work in the older version.

    Thank you for help.

    H

  2. #2
    Valued Forum Contributor
    Join Date
    07-07-2014
    Location
    Washington DC
    MS-Off Ver
    2007
    Posts
    1,047

    Re: Return entire rows from multiple sheets into one table

    You're far less likely to get effective assistance with this if you upload a sanitized sample file.

  3. #3
    Registered User
    Join Date
    10-06-2014
    Location
    London, UK
    MS-Off Ver
    2013
    Posts
    2

    Re: Return entire rows from multiple sheets into one table

    Example.xls

    Any help would be appreciated. Thank you

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2504 Win 11
    Posts
    24,694

    Re: Return entire rows from multiple sheets into one table

    Here is a VBA solution. Note however, that your headings in the destination sheet, must be the same as in your monthly sheets. I have attached the workbook with this change. When this macro runs, it deletes all data in the destination worksheet and then re-populates with current data.

    Please Login or Register  to view this content.

    How to install your new code
    1. Copy the Excel VBA code
    2. Select the workbook in which you want to store the Excel VBA code
    3. Press Alt+F11 to open the Visual Basic Editor
    4. Choose Insert > Module
    5. Edit > Paste the macro into the module that appeared
    6. Close the VBEditor
    7. Save your workbook (Excel 2007+ select a macro-enabled file format, like *.xlsm)

    To run the Excel VBA code:
    1. Press Alt-F8 to open the macro list
    2. Select a macro in the list
    3. Click the Run button
    Attached Files Attached Files
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ 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. Return indexes of rows when multiple rows of a table are selected.
    By samkumar in forum Word Programming / VBA / Macros
    Replies: 0
    Last Post: 08-12-2013, 04:54 AM
  2. Replies: 4
    Last Post: 06-22-2013, 09:12 PM
  3. [SOLVED] Return multiple rows based on values in other sheets
    By DutchYankee in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-20-2013, 09:43 AM
  4. [SOLVED] Macro to copy data from tables with unspecified rows on multiple sheets into one table
    By sara ghaith in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-11-2012, 08:31 AM
  5. [SOLVED] How do I return entire rows in a lookup of one sheet to another?
    By dflohn in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-02-2005, 03:06 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