Toggle between Lists

dabrot791

New Member
Joined
Sep 10, 2013
Messages
7
Hi there,

First I just want to thank all you awesome members out there. Through your assistance with others, I have learned a lot about excel.

Now, to the problem.
I am working on a bilingual file and want to display the results dependant upon the language selected.
I have a drop down selection list set up through data validation. When the drop down is selected, it displays according to the language selected, with this formula
=IF(Lang=KOR,ClashIssues,ClashIssuesEng)
However, if I change the language, the preselected item does not change according to the language. I need this to change because I have other cells referencing this cell as a lookup value. What can I do to make this dropdown change?

Any help with this is great!
For reference, I am using Excel 2010.
 
Last edited:

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
It looks like you already have three named ranges, ClashIssues, ClashIssuesEng and Lang.
And a named value, KOR.

If you put this in the sheet's code module for the sheet that contains named range Lang, It should do what you want after you've changed the definition of KeyCell to match your situation (i.e. the cell where the validation drop down is)

Code:
Private Sub Worksheet_Change(ByVal Target As Range)
    Dim keyCell As Range
    Dim rowIndex As Variant
    
    Set keyCell = Range("I1")
    
    If Not Application.Intersect(Target, ThisWorkbook.Names("Lang").RefersToRange) Is Nothing Then
        With keyCell
            If Evaluate("lang=kor") Then
                rowIndex = Application.Match(.Value, Range("ClashIssuesEng"), 0)
            Else
                rowIndex = Application.Match(.Value, Range("ClashIssues"), 0)
            End If
            If IsNumeric(rowIndex) Then
                .Value = Evaluate(.Validation.Formula1).Cells(rowIndex, 1)
            End If
        End With
    End If
End Sub
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,096
Messages
6,123,074
Members
449,093
Latest member
ripvw

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top