+ Reply to Thread
Results 1 to 5 of 5

Creating a drop down list but show different values

  1. #1
    Registered User
    Join Date
    01-10-2019
    Location
    Czech
    MS-Off Ver
    2016
    Posts
    2

    Creating a drop down list but show different values

    Hello guys,


    My English is not good, so I'm going to try simplify my problem in hope that you will understand me.

    I have two sheets. On the Sheet 1 there is a cell that supposed to be a drop down list created via Data Validation where you choose full name of a nation and gets its three letter country code (e.g. choose United States, gets USA).

    The country names and codes are in columns A and B on Sheet 2.

    I've tried some guides on the internet, but failed miserably.

    Do you, guys, have any idea how to do it?

    PS: It needs to be in one cell, I know there is a easy way to get the code in other column, but that won't work for me.

    I really appreciate your time.

  2. #2
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573

    Re: Creating a drop down list but show different values

    Welcome to the forum!

    I have not seen that. There are dynamic offset methods but those require 2 cells.

    If I just did one cell, I would use a worksheet Selection event to open a filled userform's listbox control. That would show both columns. Pick a row and either column value can be returned.

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

    Re: Creating a drop down list but show different values

    Try the attached.
    Setting validation in A1:A10 in Sheet1.

    1) To ThisWorkbook code module
    Please Login or Register  to view this content.
    2) To Sheet1 code module
    Please Login or Register  to view this content.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    01-10-2019
    Location
    Czech
    MS-Off Ver
    2016
    Posts
    2

    Re: Creating a drop down list but show different values

    Thank you, it works!


    Thanks guys for your help.

    Have a good day.

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

    Re: Creating a drop down list but show different values

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

+ 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: 8
    Last Post: 10-29-2014, 06:17 AM
  2. Replies: 1
    Last Post: 05-23-2014, 05:58 PM
  3. Replies: 11
    Last Post: 12-17-2013, 02:34 PM
  4. Replies: 6
    Last Post: 11-01-2013, 06:25 PM
  5. Replies: 1
    Last Post: 07-28-2012, 08:03 AM
  6. [SOLVED] Select from drop down list to show another drop down list in a different cel
    By ExcelRanger in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-22-2012, 04:27 PM
  7. Creating drop down list from values in column
    By jram in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-30-2009, 03:57 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