+ Reply to Thread
Results 1 to 9 of 9

Selecting a value in a drop down list, and showing a symbol

Hybrid View

  1. #1
    Registered User
    Join Date
    01-05-2011
    Location
    IL
    MS-Off Ver
    Excel 2003
    Posts
    3

    Selecting a value in a drop down list, and showing a symbol

    Hi everyone,

    I have a checklist file, which contains few options (done, irrelevant, not done, once a year... ), but I need to display a corresponding symbol in "Wingdings" font.
    for example, "done" means a square with a "v" inside, and "irrelevant" means a black square, and so on...

    So I need to create a drop down list, contains values from column A, and when one of them is selected, I want to display values from column B (Symbols), in other font.

    I hope I explained myself well..

    Thank you,
    Hadar

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Selecting a value in a drop down list, and showing a symbol

    So, the list values are in A1:A10.
    The Wingding values are in B1:B10.

    The drop down list of values from column A are in cell ______?
    You want to display the matching wingding in cell _______?
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    01-05-2011
    Location
    IL
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Selecting a value in a drop down list, and showing a symbol

    Ok, lets say I have a column named "Status", which is a drop down list at H2:H14.
    When I choose "Done" at H2, I need the same cell to display the symbol instead of the word.

    Please, look at the attachment.
    checklist.xls
    Thanks.

    Quote Originally Posted by JBeaucaire View Post
    So, the list values are in A1:A10.
    The Wingding values are in B1:B10.

    The drop down list of values from column A are in cell ______?
    You want to display the matching wingding in cell _______?

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Selecting a value in a drop down list, and showing a symbol

    A drop down will display the value selected in the cell in which it was selected.

    If you wish to select one thing and have something else completely display, that would require VBA.

    To do it without VBA, perhaps you could use a trick and make the dropdown a really skinny column so you can't actually see the value you chose, then the next column over would use a VLOOKUP() to lookup and display your desired value from the table. That could work.

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Selecting a value in a drop down list, and showing a symbol

    Here's the VBA approach installed into your sheet.
    Option Explicit
    
    Private Sub Worksheet_Change(ByVal Target As Range)
    Dim cell As Range
    
    Application.EnableEvents = False
        For Each cell In Intersect(Target, Range("H2:H" & Rows.Count))
            If cell <> "" Then
                cell.Value = Application.WorksheetFunction.Index(Range("Symbols"), _
                    Application.WorksheetFunction.Match(cell, Range("Codes"), 0))
            End If
        Next cell
    Application.EnableEvents = True
    End Sub
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    01-05-2011
    Location
    IL
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Selecting a value in a drop down list, and showing a symbol

    Ok, I'll try that...
    Thank you very much for your help.

    Have a great week...

  7. #7
    Registered User
    Join Date
    05-30-2011
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Selecting a value in a drop down list, and showing a symbol

    Hi Jerry,

    It's just gone 2am here in Aus and I've finally found what I've been looking for, the spreadsheet that you made for Hadar. Very excited to find it, but unfortunately when I down loaded it it isn't returning the "symbol" it's returning the data selected in the drop down. Can you help?

    I can't see a way to load up your file with the data that I have typed over your "symbol" and "codes" ranges, but I haven't changed anything other than the Font!

    Attached is the file. Have I broken it??

    Can you help? I'm so tired!

    Mouse
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    05-30-2011
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Selecting a value in a drop down list, and showing a symbol

    Ah, I see :-) The content had to be enabled. That's for this Jerry, you rock.

  9. #9
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Selecting a value in a drop down list, and showing a symbol

    Glad it worked for you, the forum is a great research tool.

+ 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