+ Reply to Thread
Results 1 to 6 of 6

Replace a drop-down with auto assignment based on a mapping guide

  1. #1
    Forum Contributor
    Join Date
    02-05-2014
    Location
    Bay Area
    MS-Off Ver
    Excel 2010
    Posts
    164

    Replace a drop-down with auto assignment based on a mapping guide

    Good evening,

    I am able to create a unique list of names, and the number of times that unique name shows in my data set. That part is great, via a macro and formulas in that macro.

    However, from there I have to go to each unique name/count and assign it to its appropriate destination bucket, via a drop-down option (column D on the Source sheet in the attached sample workbook).

    MY GOAL
    I would like to automate the assignment of the unique names from the SOURCE sheet to the appropriate buckets on the DESTINATION sheet, based on the rules in the MAPPING GUIDELINE sheet.

    The attached sample file has notes that explain my challenge.

    Thank you much for any help!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,364

    Re: Replace a drop-down with auto assignment based on a mapping guide

    How do we know "Braves" are Baseball and not Football?

    Why not a simple table:

    Team

    Sport

    Bucket

    Count
    Last edited by JohnTopley; 09-16-2016 at 06:42 AM.

  3. #3
    Forum Contributor
    Join Date
    02-05-2014
    Location
    Bay Area
    MS-Off Ver
    Excel 2010
    Posts
    164

    Re: Replace a drop-down with auto assignment based on a mapping guide

    Ugh, great point - my fault for an erroneous sample file. You found a flaw in the sample data mapping guideline (on the "Mapping Guideline" sheet).

    Rather than the "sport" this sheet should have listed the "team." Listing by team is how my real data works.

    The new attached sample workbook corrects that issue.

    Thanks so much!!

    Jeff

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,364

    Re: Replace a drop-down with auto assignment based on a mapping guide

    The "Mapping Guidelines" would be better organised as:

    Team Bucket

    Braves A
    Cowboys A
    Raiders A
    Sharks B
    Wizards C

    then use:

    =VLOOKUP(B3,"Mapping Range",2,0)

    where "Mapping Range" is a named range as per above.

  5. #5
    Forum Contributor
    Join Date
    02-05-2014
    Location
    Bay Area
    MS-Off Ver
    Excel 2010
    Posts
    164

    Re: Replace a drop-down with auto assignment based on a mapping guide

    Thanks JohnTopley.
    Apologies for my inexperienced questions.
    To be clear, I'm pulling data from the "Source" sheet and placing it into the "Destination" sheet, based on the "Mapping Guidelines" sheet.
    So now I have the mapping guidelines labeled as you suggested, and I named the range on the "Mapping Guideline" sheet (range is called "Mapping Range"). I assume your solution places your vlookup on the "Destination" sheet. However, I don't see how I'm pulling the name and respective count from Source to Destination.
    Again, thanks for the help!!

  6. #6
    Forum Contributor
    Join Date
    02-05-2014
    Location
    Bay Area
    MS-Off Ver
    Excel 2010
    Posts
    164

    Re: Replace a drop-down with auto assignment based on a mapping guide

    I'm going to think of another way to organize my data. Thanks for the help. Closing this message.

+ 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. Replies: 1
    Last Post: 08-04-2016, 01:33 AM
  2. [SOLVED] Drop Down List Options and value assignment
    By inq80 in forum Excel General
    Replies: 4
    Last Post: 09-04-2014, 05:04 PM
  3. Excel 2007 : Drop Down List and Value Assignment
    By Malarowski in forum Excel General
    Replies: 4
    Last Post: 04-11-2013, 06:16 AM
  4. mapping drop box result to a cell
    By jalba in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-11-2011, 04:02 PM
  5. Auto-update initial drop-down selection based on previous drop-downs
    By thornomad in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-16-2010, 09:55 AM
  6. Replies: 0
    Last Post: 02-18-2010, 04:44 PM
  7. Guide:Drop down list
    By jamesgsi1983 in forum Excel General
    Replies: 2
    Last Post: 04-27-2009, 08:39 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