+ Reply to Thread
Results 1 to 5 of 5

Populate cell based on drop down menu selection

  1. #1
    Registered User
    Join Date
    09-16-2014
    Location
    Boston, MA
    MS-Off Ver
    2007
    Posts
    2

    Populate cell based on drop down menu selection

    I am trying to create a sales order form and need certain cells populated based on what was selected in a drop down menu.

    example:

    in A1, I need to auto populate a sku for a product. In B1 I have a drop down menu with four colors. Each color has a different sku. I need cell A1 to read 1234BK if "Black" is selected in B1, 1234OR if "Orange" is selected in B1, etc.

    The pull down menu will not have the actual sku, but instead a list of colors.

    Thanks in advance!

  2. #2
    Forum Contributor
    Join Date
    05-04-2014
    Location
    New Jersey, United States
    MS-Off Ver
    Excel 2010, 2013
    Posts
    120

    Re: Populate cell based on drop down menu selection

    Where does your dropdown data come from? A range of cells? A comma-delimited list? A named range? If the data is listed in some cells, do you have corresponding SKUs to go with them?

    If your data is nowhere on the worksheet to reference, try either of these:

    =CHOOSE(MATCH(B1,{"Orange";"Black";"Blue";"Yellow";"White";"Red";"Green";"Purple"},),"1234OR","1234BK","1234BL","1234YL","1234WH","1234RE","1234GR","1234PR")

    or

    =INDEX({"1234OR","1234BK","1234BL","1234YL","1234WH","1234RE","1234GR","1234PR"},MATCH(B1,{"Orange","Black","Blue","Yellow","White","Red","Green","Purple"},))


    Simply edit/add/remove colors and SKUs as needed. (Note the slight differences in syntax between the 2 formulas. Most notably, semi-colons vs. commas.)


    If your data exists somewhere on the worksheet, a VLOOKUP will be your go-to function.

  3. #3
    Registered User
    Join Date
    09-16-2014
    Location
    Boston, MA
    MS-Off Ver
    2007
    Posts
    2

    Re: Populate cell based on drop down menu selection

    The data for the drop down comes from a range of cells.

    I have another list with the corresponding SKU's.

    Just not sure how to get A1 to populate based on the choice made in B1

    Not too sure on how to use Vlookup. all the info I found on line had nothing to do with the pull down menu
    Last edited by cuffs1845; 09-16-2014 at 11:34 PM.

  4. #4
    Forum Contributor
    Join Date
    05-04-2014
    Location
    New Jersey, United States
    MS-Off Ver
    Excel 2010, 2013
    Posts
    120

    Re: Populate cell based on drop down menu selection

    Posting a sample of your data would be easier for me to help you. Assuming your colors are in the range C1:C10 and the corresponding SKUs are in D1:D10, use this in cell A1:

    =VLOOKUP(B1,C1:D10,2,0)

    Adjust your ranges as needed.

  5. #5
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: Populate cell based on drop down menu selection

    Try this..
    INDEX/MATCH
    Please Login or Register  to view this content.
    Make sure there are no leading and following spaces..
    Regards,
    Vikas Gautam
    Excel-buzz.blogspot.com

    Excel is not a matter of Experience, its a matter of Application.

    Say Thanks, Click * Add Reputation

+ 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. Autofill a cell based on selection in drop down menu
    By fyrfytr265 in forum Excel General
    Replies: 4
    Last Post: 01-30-2014, 10:35 AM
  2. Replies: 3
    Last Post: 01-31-2013, 06:22 PM
  3. [SOLVED] How to reference/populate a column of data based on a drop down menu selection
    By walterst in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-13-2012, 07:11 PM
  4. Drop Down Menu Selection & New Value Worksheet based on Cell
    By shelton_4 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-15-2012, 09:46 PM
  5. Replies: 1
    Last Post: 05-18-2005, 06:06 PM

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