Vlookup problem

Noz2k

Well-known Member
Joined
Mar 15, 2011
Messages
693
Right so I have a list of values in column B of Sheet 1 which correspond to values in a column F of a sheet named 'Incidents'

What I am trying to call back is the value of the cell in Column Z of the 'Incidents' sheet, however it's not working properly.

the formula I have is

Code:
=VLOOKUP($B3,Incidents!$F$2:$Z$3179,21)

Strangely this seems to work for B3, but when I go down a row and the formula is

Code:
=VLOOKUP($B4,Incidents!$F$2:$Z$3179,21)

it gives me the same result as the first formula, despite them not being the same on the incidents sheet.

Any idea why this would be?
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
It's probably because you left out the optional fourth parameter for vlookup.
Regardless, consider using index/match instead of vlookup (it's much faster):

=INDEX($Z$2:$Z$3179,MATCH($B3,$F$2:$F$3179,0))
 
Upvote 0
Just getting an N/A using the Index/Match formula?

Edit: The Value is definitely there in column F, I copied and pasted it, and used ctrl+f to check
 
Upvote 0
Just realised it's because I didn't prefix it with the sheet name

All works, thanks
 
Upvote 0

Forum statistics

Threads
1,224,522
Messages
6,179,299
Members
452,904
Latest member
CodeMasterX

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