+ Reply to Thread
Results 1 to 9 of 9

Create Unique List

  1. #1
    Registered User
    Join Date
    11-03-2014
    Location
    UK
    MS-Off Ver
    2007
    Posts
    4

    Create Unique List

    Hi

    I have 6 sheets of data (all the sheets have the same layouts but relate to different events). On my overview sheet I need to create a list of unique entries (names) from column B of each sheet but only those where column C is a specific value. The data will get replaced every now and then so the manual methods of generating this data isn't feasible long term.

    Any suggestions appreciated.

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,864

    Re: Create Unique List

    Without seeing data I'd suggest macro working this way (easy one, but not necesserily most efficient):
    * add temporary sheet (or use your overview sheet for this purpose)
    * copy all data from columns B and C all sheets into it
    * filter only meeting C criterion
    * find unique values
    * if made in temp sheet move this data to overview one and delete temp.

    you can call this macro either manually, or for instance in Activate event for your overview sheet.
    Best Regards,

    Kaper

  3. #3
    Registered User
    Join Date
    11-03-2014
    Location
    UK
    MS-Off Ver
    2007
    Posts
    4

    Re: Create Unique List

    Thanks but my knowledge isn't good enough to make that answer work. I have tried creating a dummy sheet to upload not sure it helps explain what I am trying though.

    I have a number of sheets (6 in real life only created 2 in the example) Each contains an amount of data, column B is a list of names C a group name. entries will duplicate between sheets but a very unlikely to duplicate on a sheet.

    I need a list on the overview sheet of all the names who belong to a certain group ie where column C is a certain value, with any duplicates removed.

    many thanks
    Attached Files Attached Files
    Last edited by ES1987; 11-14-2014 at 06:42 PM.

  4. #4
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,864

    Re: Create Unique List

    You have not disclosed what shall be in column C - I assumed that required value is given in C1 in summary sheet.
    Try for instance such macro:
    Please Login or Register  to view this content.
    it works with your example, if layout of real workbook is similar enough will also work directly with it (if not - ammend to follow layout of real workbook).
    Attached Files Attached Files
    Last edited by Kaper; 11-16-2014 at 04:00 AM.

  5. #5
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,370

    Re: Create Unique List

    Hi ES,

    You can do your problem without code if you use the Pivot Table Consolidation Wizard. First add it to your QAT toolbar:
    http://www.pivot-table.com/2010/07/1...in-excel-2007/
    Then add the 6 sheets worth of data and make a new sheet with what I think you want.
    http://www.launchexcel.com/pivot-tab...tten-crosstab/

    I've done this with your 2 sheet tables in the attached.
    Attached Files Attached Files
    Last edited by MarvinP; 11-16-2014 at 04:14 AM.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  6. #6
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2504
    Posts
    13,630

    Re: Create Unique List

    Unique values or distinct values ?

  7. #7
    Registered User
    Join Date
    11-03-2014
    Location
    UK
    MS-Off Ver
    2007
    Posts
    4

    Re: Create Unique List

    This is really close to working thank you. Only 2 things I haven't managed to work out, firstly on my overview sheet there were a few hidden rows (which I had forgotten about) which get overwritten in the new sheet, I assumed I just needed to redirect anything aimed at B2 to B6 but that didn't seem to work. The other is the clear contents seems to wipe the rest of the sheets data rather than just the new bits generated by the macro.

    Many thanks

  8. #8
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,864

    Re: Create Unique List

    Made few changes to previous code to use temporary sheet.
    As real layout your sheet is not disclosed ;-) I made assumption that there could be some data/formula in B16 in your Overviewe sheet
    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    11-03-2014
    Location
    UK
    MS-Off Ver
    2007
    Posts
    4

    Re: Create Unique List

    Thank you Kaper. All working now.

+ 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. [SOLVED] create list of unique staff numbers with unique work codes
    By shaz0503 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-01-2013, 08:57 PM
  2. VBA: Create unique list based on latest entry in list
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-08-2011, 09:55 AM
  3. Replies: 5
    Last Post: 01-12-2011, 08:49 AM
  4. Copy from list when different (create unique list with formulas)
    By pansovic in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-20-2010, 11:14 AM
  5. [SOLVED] Need to create unique list from list of multiple entries
    By Jeff in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-17-2005, 01:05 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