+ Reply to Thread
Results 1 to 10 of 10

Two column drop down box

  1. #1
    Registered User
    Join Date
    08-30-2007
    Location
    Orlando, Florida
    MS-Off Ver
    MS Excel 2007
    Posts
    50

    Two column drop down box

    How do I set up a two column drop down box that stores only one value in a row in a cell?

    For example the Curriculum is Math and the code is M. I want the M to be the value in the cell but the drop down shows both the code, M, and its corresponding curriculum Math.

    Can anyone help me?

    Thanks!

    Veronica Boaz

  2. #2
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Hi Veronica,

    May be a dependant data validation list is the answer

    http://www.contextures.com/xlDataVal02.html
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  3. #3
    Forum Expert
    Join Date
    01-12-2007
    Location
    New Jersey
    Posts
    2,127
    Oldchippy:

    I don't think Veronica needs a dependent validation. Instead, she needs to store one value but have two values appear in the dropdown selection.

    Veronica:

    The best way to do this (in my opinion) is to use a combo box from the control toolbox. Of course, this requires a minimal amount of VBA usage. If you are OK with that, post back with a sample of your worksheet, and we can set something up for you.

    (See example below)
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    08-30-2007
    Location
    Orlando, Florida
    MS-Off Ver
    MS Excel 2007
    Posts
    50

    Two column drop down box

    You have it exactly right. I want it to store one value and display two.

    I have attached the template. This is an import worksheet. I have to import the code but no one knows all the codes so I want to display the description.

    I have attached the zip file. You're saving my life!
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    01-12-2007
    Location
    New Jersey
    Posts
    2,127
    A list of the current curriculum codes and descriptions must be placed somewhere within the file. You can either have another sheet attached and used for reference, or you can place them within the sheet itself and hide those columns. How would you prefer to procede?

  6. #6
    Registered User
    Join Date
    08-30-2007
    Location
    Orlando, Florida
    MS-Off Ver
    MS Excel 2007
    Posts
    50

    Two column drop down box

    I can put the list on another sheet in the workbook.

    Can you walk me through it? The combo box example you sent me is exactly what I need.

    Thanks so much!

  7. #7
    Forum Expert
    Join Date
    01-12-2007
    Location
    New Jersey
    Posts
    2,127
    Steps to populate a combobox with two columns of information:

    1. Place a combo box onto your spreadsheet from the control toolbox (to access the control toolbox, in the main toolbar, go to VIEW-TOOLBARS-CONTROL TOOLBOX).
    2. While in design mode, right click on the combobox and select PROPERTIES. A dialog box should appear.
    3. You must change three of the properties:
    a. ColumnCount should be 2 (displays 2 columns)
    b. LinkedCell: whereever you want the selected value to be displayed. If you want to display the value in Sheet1, cell G1, then enter Sheet1!G1.
    c. ListFilRange: the values to display in the combobox (ie, Sheet2!A2:B10)

    Let me know if any of this helps you.

  8. #8
    Registered User
    Join Date
    11-28-2007
    Posts
    57
    Quote Originally Posted by BigBas
    Steps to populate a combobox with two columns of information:

    1. Place a combo box onto your spreadsheet from the control toolbox (to access the control toolbox, in the main toolbar, go to VIEW-TOOLBARS-CONTROL TOOLBOX).
    2. While in design mode, right click on the combobox and select PROPERTIES. A dialog box should appear.
    3. You must change three of the properties:
    a. ColumnCount should be 2 (displays 2 columns)
    b. LinkedCell: whereever you want the selected value to be displayed. If you want to display the value in Sheet1, cell G1, then enter Sheet1!G1.
    c. ListFilRange: the values to display in the combobox (ie, Sheet2!A2:B10)

    Let me know if any of this helps you.
    Is there a way to 'click' the cell in 3.b. instead of typing it in?
    Same for step 3.c.?

    Thanks in Advance, Phil
    Phil
    Technician
    City of Clinton, SC
    SCADA, GIS, Utility Billing, Networking
    I'm doing the best I can with the little bit I know.

  9. #9
    Forum Expert
    Join Date
    01-12-2007
    Location
    New Jersey
    Posts
    2,127
    Unfortunately, I do not know of any way to be able to click a cell reference. Working with activex controls is not always the most efficient process.

  10. #10
    Registered User
    Join Date
    05-13-2014
    MS-Off Ver
    Excel 2003
    Posts
    1

    Re: Two column drop down box

    See example
    Attached Files Attached Files

+ 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