Excel Delta | Mastery Made Easy

View Original

How to Quickly Jump to the Adjacent Cell Based on the Selection in an Excel Dropdown List

Navigating quickly to a cell adjacent to a selected option from a dropdown list can speed up your workflow in Excel. To achieve this, you'll need to use a combination of Data Validation and VBA. Here's how:

Step 1: Create Your Dropdown List

First, you need to create your dropdown list using Data Validation.

Step 2: Open VBA Editor

Press Alt + F11 to open the VBA Editor.

Step 3: Insert the VBA Code

Click on the worksheet name where your dropdown list is located in the Project Explorer, and insert the following VBA code:

Private Sub Worksheet_Change(ByVal Target As Range)
    If Target.Address = "$A$1" Then
        Application.Goto Reference:=Target.Offset(0, 1), Scroll:=True
    End If
End Sub

This code assumes that your dropdown list is in cell A1. Change "$A$1" to the cell reference of your dropdown list.

Step 4: Close VBA Editor and Test the Function

Close the VBA Editor and select an item from your dropdown list. The cursor should jump to the adjacent cell.