EXCEl DROP-DOWN LISTS (DATA VALIDATION) - PROBLEM

Dmrs92

New Member
Joined
Jun 1, 2018
Messages
31
Hello,
i have a problem with drop-down list - my goal is to create two lists like:

I choose value in cell a2 and excel shows concrete value in cell b2. This is simple. But how to make excel to make it both way.

A2 choose "data" - display in b2 "excel"
b2 choose "execel" - display "data"

can anybody ] help me ?

I have list of materials and their codes names and i would like to have this effect.

Thank you in advance,
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Maybe you could help me again I notice that when i paste values to my range it happens that it returns only one value for every value in next column ?
 
Upvote 0
When i put
A it returns B
C returns D ect.
but when I paste
A returns B
C also returns B
It returning value for first pasted value.
 
Upvote 0
Try:
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
    If Intersect(Target, Range("c56:c101,d56:d101")) Is Nothing Then Exit Sub
    Application.EnableEvents = False
    Dim val As Range, rng As Range
    On Error GoTo errHandler
    Select Case Target.Column
        Case Is = 3
            For Each rng In Target
                Set val = Sheets("Sheet2").Range("A:A").Find(rng.Value, LookIn:=xlValues, lookat:=xlWhole)
                If Not val Is Nothing Then
                    rng.Offset(0, 1) = val.Offset(0, 1)
                End If
            Next rng
        Case Is = 4
            For Each rng In Target
                Set val = Sheets("Sheet2").Range("B:B").Find(rng.Value, LookIn:=xlValues, lookat:=xlWhole)
                If Not val Is Nothing Then
                    rng.Offset(0, -1) = val.Offset(0, -1)
                End If
            Next rng
    End Select
errHandler:
    Application.EnableEvents = True
End Sub
 
Upvote 0

Forum statistics

Threads
1,223,909
Messages
6,175,310
Members
452,634
Latest member
cpostell

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