# Index and Match - Sheet Reference

#### ExcelEndeavor

##### New Member
I have a worksheet where I can select an employee name in cell A1 (drop down list) and simply want to show the employee's manager name in A2.

I have the employee list on another sheet called "Menus" in cells E2:E48 and their corresponding manager list is next to it in cells G2:G48 (I have column F as a spacer)

When I select the employee in A1, I simply want Excel to go get the corresponding Manager's name in the "Menus" worksheet and bring it into cell A2 below the employee.

My current formula in A2 looks like this:

(7 at the end represents the column of the Manager list)

I currently see #REF! - not sure what I am doing wrong. Please advise. Thank you in advance.

### Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"

#### JEC

##### Well-known Member
INDEX("a range", "Rowindex", Columnindex")

You should take another look at the INDEX parameters.

#### Fluff

##### MrExcel MVP, Moderator
Try it like
Excel Formula:
``=INDEX(Menus!G2:G48,MATCH(A1,Menus!E2:E48,0))``

#### ExcelEndeavor

##### New Member
Try it like
Excel Formula:
``=INDEX(Menus!G2:G48,MATCH(A1,Menus!E2:E48,0))``
Thank you Fluff - that was the ticket!

#### Fluff

##### MrExcel MVP, Moderator

You're welcome & thanks for the feedback.

#### ExcelEndeavor

##### New Member
Thank you Fluff - that was the ticketWhat
Try it like
Excel Formula:
``=INDEX(Menus!G2:G48,MATCH(A1,Menus!E2:E48,0))``
If I don't select anything in A1, it displays #N/A in A2 - what can I add to the formula to have A2 be blank when A1 has no value selected?

#### Fluff

##### MrExcel MVP, Moderator
In future please do not type your reply inside quotes. It looks as though you are simply making a totally pointless post.
To handle the #N/A, you can simply wrap the formula in IFNA

Replies
6
Views
125
Replies
1
Views
75
Replies
0
Views
158
Replies
3
Views
133
Replies
1
Views
296

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

1,152,403
Messages
5,769,872
Members
425,576
Latest member
niall54321

### 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.

### Which adblocker are you using?

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

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