+ Reply to Thread
Results 1 to 5 of 5

Return Unique Entries from Multiple Sheets into Master Sheet (in Excel 2003)

  1. #1
    Registered User
    Join Date
    12-07-2007
    Location
    Philadelphia, PA
    Posts
    18

    Return Unique Entries from Multiple Sheets into Master Sheet (in Excel 2003)

    Hello,

    I currently have a workbook set up which has data connections to 7 different databases. Each database (Allocation, Cell, Computer, Phone, Rent, Transpass, and Xerox) is contained on it's own separate sheet, respectively named. I also have an eighth, "Master", sheet, which I am hoping to use to aggregate the aforementioned databases in.

    On each sheet, I have a column, titled "MDET", which concatenates relevant information for each entry into a "Month | Department | Employee Name | Type" format. For example "2011/12 | 201 | Smith, John | Base". This effectively creates a unique key, which I will later use to reference information from each database.

    I've also set up dynamically named ranges for each table, using Insert>Name>Define, with an offset function. For example, my Allocation table is named "Allocation_Database_Table", and it "Refers to:" =OFFSET(Allocation!$A$1,0,0,COUNTA(Allocation!$A:$A),COUNTA(Allocation!$1:$1)). "MDET" for that table is contained in Column K, but "MDET" in other tables is contained in other columns.

    What I'm hoping to do is to create a macro that goes through each "MDET" column, and returns only unique values to the "Master" sheet in Column A. Is this possible? It might also be easier to return ALL "MDET" entries, and then set up a macro that unique filters, but I'm worried about the unfiltered entries being >65,536.

    I'm also open to non-programming solutions, however, I'm finding that some things, like PivotTables are too memory intensive and do not fit my needs exactly. Also, I don't believe I can attach my file as is as an example, because it contains sensitive information for employees.

    Any and all help would be greatly appreciated!

    Thanks!!

    John
    Last edited by XLHead; 12-13-2011 at 01:38 PM.

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: Return Unique Entries from Multiple Sheets into Master Sheet (in Excel 2003)

    John

    I think you will have to build an example file of representative, no sensitive data, ensuring you have all the defined names, and formulas etc so we have something concrete to work on.

    rylo

  3. #3
    Registered User
    Join Date
    12-07-2007
    Location
    Philadelphia, PA
    Posts
    18

    Re: Return Unique Entries from Multiple Sheets into Master Sheet (in Excel 2003)

    Hi rylo,

    Please find an example database attached:

    Database Example.xls

    Thanks!

    John

  4. #4
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Return Unique Entries from Multiple Sheets into Master Sheet (in Excel 2003)

    Try this (click the green arrow)
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    12-07-2007
    Location
    Philadelphia, PA
    Posts
    18

    Re: Return Unique Entries from Multiple Sheets into Master Sheet (in Excel 2003)

    Hi nilem, works great! Thank you!!

    Here's the final code (w/minor aesthetic additions):

    Please Login or Register  to view this content.

+ 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