+ Reply to Thread
Results 1 to 10 of 10

Copy data from One Spreadsheet to another based on a particular reference

  1. #1
    Registered User
    Join Date
    06-14-2012
    Location
    Sydney Australia
    MS-Off Ver
    Excel 2007
    Posts
    5

    Copy data from One Spreadsheet to another based on a particular reference

    I have two worksheets, one with all the data entered and i am hoping to automate the second worksheet for referencing particular data based on one or two drop down cell references.

    Tab 1 - Master Data - is where numerous staff enter data of travel booked. also note that there may be numerous entries for a individual staff member due to different trips etc

    Tab 2 - Reference - is where staff can look at either, "Employee", "Department" and or "State" based on the drop down listing in cells E2, D2 and F2 respectively.

    How can select either or multiple drop down references to filter the data from the Master Data worksheet to show in the Reference worksheet?
    Tried attaching copy of file, but file is too large, any other help how I can show you my dilemma?

  2. #2
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Copy data from One Spreadsheet to another based on a particular reference

    Pl copy sample data to a separate file with all details required and attach that sample file.

  3. #3
    Registered User
    Join Date
    06-14-2012
    Location
    Sydney Australia
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Copy data from One Spreadsheet to another based on a particular reference

    Attached file as per request. (Zipped the file, hope that is ok)

    with the master data spreadsheet i have a match/offset function as a quick reference quick on the booking number reference.
    Data to be entered from Row 8 as per example shown.

    with the reference tab, I want to be able to use a drop down reference on the coloured in cells based on employee name, department and or state to filter any data from the Master Data to then reference based on the drop down cells
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Copy data from One Spreadsheet to another based on a particular reference

    Pl See the attached file.

    Using worksheet_change event columns E,F&G are unique filtered to BE,BF & BG columns.Ranges are named and used or validation.

    Any clarifications welcome.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    06-14-2012
    Location
    Sydney Australia
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Copy data from One Spreadsheet to another based on a particular reference

    I am little confused.
    What I am hoping to be able to do is by selecting one or mulitple drop reference(s) from the "Reference" Worksheet it will pull the matching data into the same formatted table below on that worksheet from A6 etc.

    as per the sample data if J.Friend was selected than two rows of data would be transfered to "reference" worksheet.
    The data in columns E, F and G are unique values depending on the staff name, their dpeartment they work in and their destination of their travel booking. all the other columns will be manualy entered data like booking numbers and costs per booking etc

  6. #6
    Valued Forum Contributor
    Join Date
    08-31-2007
    Location
    SW Ireland
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2311 Build 16.0.17029.20068) 32-bit
    Posts
    523

    Re: Copy data from One Spreadsheet to another based on a particular reference

    Would you consider changing your Master data content (range A7:U19 on that sheet) to a 'Table'. The advantage of this is that Excel will offer the facility of a filter on each column so that if you wanted to show only 'J.Friend' it would temporarily hide the other data, displaying only the relevant data on that page.
    You could create a macro to automatically 'unfilter' all data when the workbook is closed so that everything is then displayed for the next time it's opened.
    Excel 365 user. To unblock a downloaded macro-enabled workbook, go to your "Downloads" folder > right click on the workbook name > click 'Properties' > check the 'Unblock' checkbox. You can now open the workbook.

  7. #7
    Registered User
    Join Date
    06-14-2012
    Location
    Sydney Australia
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Copy data from One Spreadsheet to another based on a particular reference

    that does a little easier.
    However I am not too familar with the use of tables in Excel.
    The purpose of the spreadsheet is for it to be updated fairly regularly with a average of 20-30 bookings of travel a month.

    There is also other worksheets I have providing other brief summaries of the master data (not attachted), but I am trying to drill down on individual bookings per staff etc.

    so if a table maybe a solution that would be great help

  8. #8
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Copy data from One Spreadsheet to another based on a particular reference

    Pl See the attached file.
    In the Reference sheet You can select employee name and data is transfered to the sheet from Master Sheet.
    (But it is not clear you want that meet all conditions in E2,F2 & G2 cells.)
    Array formula is used .You can drag the formula.
    Attached Files Attached Files
    Last edited by kvsrinivasamurthy; 06-20-2012 at 01:17 AM.

  9. #9
    Registered User
    Join Date
    06-14-2012
    Location
    Sydney Australia
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Copy data from One Spreadsheet to another based on a particular reference

    that works great

    thank you very much, you have been very helpful

  10. #10
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Copy data from One Spreadsheet to another based on a particular reference

    Ok Thanks for compliment.
    Pl mark the thread solved.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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