Auto entering next column

anangelseyes

New Member
Joined
Aug 30, 2006
Messages
1
:help: I am working in an ongoing spreadsheet. :roll: I have two colums side by side that contain information pertaining to a person. (name and title respectively) I want to be able to enter the person's name in the first column and have the next column auto fill with their title and then jump to the third column.

(ex. John Smith typed into column one, enter, Manager automatically appears in column two and I'm ready to go on with column three)

Is this possible? :-?

If so (NO technical terms please), how can it be done? :oops:

Any and all suggestions are greatly appreciated! :wink:

Thanks
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
You will need a VLOOKUP Table. Make a table on another sheet with the Names in the First column and the Titles in the second. Name the table, Insert>Name>Define (say myTitles). Place the following in the WorkSheet module. Right Click on the sheet tab and choose View Code.

Code:
Private Sub Worksheet_Change(ByVal Target As Range)
       If Target.Count > 1 Then Exit Sub
       If Target.Column <> 1 Then Exit Sub
       Target.Offset(0,1) = Application.WorkSheetFunction.VLOOKUP(Target,Range("myTitles"),2,0)
       Target.Offset(0,2).Select
End Sub
This assumes the name is in column A

lenze

HINT: Use a Data Validation drop down for your names
 
Upvote 0

Forum statistics

Threads
1,226,218
Messages
6,189,693
Members
453,563
Latest member
Aswathimsanil

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