+ Reply to Thread
Results 1 to 3 of 3

VBA Extract unique values depending on selected item in another column

  1. #1
    Registered User
    Join Date
    10-08-2010
    Location
    North Yorkshire, England
    MS-Off Ver
    Excel 2003
    Posts
    69

    VBA Extract unique values depending on selected item in another column

    In the attached spreadsheet there are two columns of data. the first contains locations (cities) the second column has cost centres. Cost centres can be found in more than one location (& vice versa).
    Using VBA:
    1) I would like to give the user the option of selecting a location (using a dropdown or combo?),
    2) from this selction an output is automatically created listing the cost centres that can be found in this location. However each cost centre should only be listed once. For example cost centre 1234 can be found 3times in London but this only needs to be listed once as per output starting at cell E5.

    Has to be VBA rather than advanced filter as it's part of a larger search tool.

    Many thanks in anticipation
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,524

    Re: VBA Extract unique values depending on selected item in another column

    See if the attached works for you
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    10-08-2010
    Location
    North Yorkshire, England
    MS-Off Ver
    Excel 2003
    Posts
    69

    SOLVED Re: VBA Extract unique values depending on selected item in another column

    Thank you, that works perfectly - now just need to incorporate this into the main workbook!

+ 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