Validation list that fills in something else

katiapro93

Board Regular
Joined
Jun 25, 2009
Messages
140
Hello everyone, I have been looking around to see if I can get an answer to what I think will be easy, but I can't find anything. Here is my problem. I know how to do a validation list but I need the list to show something and when I pick it, I want it to fill in something else. Example:

A B C
1 1231 Joe Collins 1231 -Joe Collins
2 1521 Joe Smith 1521 -Joe Smith

I want my validation list to show what is on column "C", but when selected, I want it to write what is on column "B".

Any suggestions. I am using Excel 2007.
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Code:
Sub hides()
With WorksheetFunction.Application
    If Not IsError(.Index(Range("C1:C10"), .Match(Range("F2"), Range("C1:C10"), 0), 1)) Then
        Range("F2").Value = .Index(Range("B1:C10"), .Match(Range("F2"), Range("C1:C10"), 0), 1)
    End If
End With
End
End Sub
Try this
 
Upvote 0
I am assuming these codes are through VBA and I am not sure how to do it. Can you guide me step by step. I am sorry.
 
Upvote 0

Forum statistics

Threads
1,224,609
Messages
6,179,876
Members
452,949
Latest member
Dupuhini

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