# Get values to the left of VLOOKUP.

#### jsuvman58

##### New Member
I have a pivot table that can not be changed. I am using VLOOKUP on another sheet to create a different form. Is there a way to get data from the “Left” of the value that the VLOOKUP formula finds? </SPAN>

Here is a example I created. Let’s say VLOOKUP is using the “Employee ID” as its reference. How do I get it to return the “Department”? It would be nice if you could just tell it minus one (-1) and it would work. </SPAN>

I know it can be done with a macro but was wondering if there was an easier way? Maybe with the INDEX or MATCH function? I am not that familiar with these. </SPAN>

=VLOOKUP(34, B2:D5, 3, FALSE) – This would return the address of Jim Kim as you know. </SPAN>
 Department Employee ID Name Address Sales 34 Jim Kim Anywhere Production 45 John Doe Anywhere Accounting 32 Jane Hatty Anywhere Operations 67 Joe Turner Anywhere

<TBODY>
</TBODY>
</SPAN>

### Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
You need INDEX/MATCH like this

Excel Workbook
ABCDEF
2Sales34Jim KimAnywhere
3Production45John DoeAnywhere
4Accounting32Jane HattyAnywhere
5Operations67Joe TurnerAnywhere
Sheet2

Thanks VoG. I was able to use a variation of your formula and it worked great. I now understand the Index and Match a little better. I will now take a look at the option that Firefly2012 gave.

Replies
0
Views
811
Replies
1
Views
384
Replies
3
Views
1K
Replies
6
Views
287
Replies
4
Views
685

1,203,739
Messages
6,057,089
Members
444,904
Latest member
SelamT

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

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