Broken VLookup

kscwgirl

New Member
Joined
Jan 19, 2018
Messages
9
I have a spreadsheet where the data is on 2 tabs and the vlookup has been broken. The person in this position before me didn't bother to fix it and now I'm having trouble doing so. Is anyone willing to help out? I think an INDEX MATCH is better in this case and I've been trying to do one but I can't get it to work either. Thank you!
 
I just skimmed through this and i believe what you need is this

=if(A2="","",VLOOKUP(A2,VL_Data!A:I,9,FALSE))
 
Last edited:
Upvote 0

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
That was my fault I got in a hurry and gave you a bad formula.
Try this. Copy formula down as needed. If needed change ranges to match your data,

Excel Workbook
ABHI
1Emp. NameSupr.
2Bart AMack
3Bart AMack
4Bart AMack
5
6Kyle AMack
7Kyle AMack
8
9Dane BJerrey
10Dane BJerrey
11Dane BJerrey
Sheet1
Excel Workbook
AB
1Emp. NameSupr.
2Bart AMack
3Kyle AMack
4Dane BJerrey
VL_Data
 
Upvote 0
Okay so now when I copy this over and I change the A# based on my rows... it's only resulting in Mack. No other supervisor name is copying over.
 
Upvote 0
What is the actual range that you have for the employee name and Sup. name on sheet VL_Data?
I'm assuming on sheet 1 that employee name is starts in A2 and Sup. in cell I2.
What is the actual formula you entered that is only returning Mack?
 
Upvote 0
Formula is the one above that you gave me.

Cell range is as shown, currently goes through row 40 but is subject to change based on hires/terminations.

H5fvBDT.jpg
 
Upvote 0
By any chance did you lock both the column and the row to A2 (should be $A2 and not $A$2)?

See the example below, instead of using whole columns I made the VL_Data range $A$2:$B$100 (note this range must be locked in).

I also listed all the formulas so you can see how the formula should change as it's copied down. The employee names from one sheet to the next must match exactly.

Excel Workbook
ABHI
1Emp. NameSupr.
2Acree, BartMack
3Acree, BartMack
4Acree, BartMack
5 
6Axe, KyleMack
7Axe, KyleMack
8 
9Borgan, DaneJerry
10Borgan, DaneJerry
11Borgan, DaneJerry
12 
13Harris, RobertMack
14 
15Dutton, Justin TNick
16Dutton, Justin TNick
Sheet1
Excel Workbook
AB
1Employee NameSupervisor Name
2Acree, BartMack
3Axe, KyleMack
4Borgan, DaneJerry
5Dutton, Justin TNick
6Harris, RobertMack
7
VL_Data
 
Upvote 0
Sick of me yet?

Those formulas all work, the problem now is that they are all returning a result of Mack, regardless of what the supervisor name is on the VL_Data table.. which makes NO sense to me at all.
 
Upvote 0
OK, do this for me.
On your sheet one copy the formula you have in cell I2 for "Acree, Brad". Then go down to "Borgan, Dane" name and copy the formula you have in column I for them and post both formulas here where I can see them. I need to see what rows each formula is referencing.
 
Upvote 0
Bart : =IF($A2="","",VLOOKUP($A2,VL_Data!A:B,2,FALSE))

Dane: =IF($A4="","",VLOOKUP($A4,VL_Data!$A$2:$B$103,2,FALSE))
 
Upvote 0
Why the different range for VL_Data (VL_Data!A:B and then VL_Data!$A$2:$B$103)?

Is Dane's name in cell A4 of your sheet 1?

Change the formula for Bart which I assume is in cell I2 to:
IF($A2="","",VLOOKUP($A2,VL_Data!$A$2:$B$103,2,FALSE))
Then copy this formula down.

Take a look at the formulas in my post #16 above this is how your formulas should be if your data starts in row 2 of sheet1.
 
Upvote 0

Forum statistics

Threads
1,214,516
Messages
6,119,980
Members
448,934
Latest member
audette89

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