Vlookup

LeeBillington

Board Regular
Joined
Dec 31, 2016
Messages
89
Hey guys,

So i am stuck.

I have input this formula

=IF(C6="","",VLOOKUP(C6,Data!$E$2:$E$398,5,FALSE))

And i basically want it to return what is written in the cell i am asking for. Say for example it says.. "chicken"

Any ideas how or where i am going wrong?

Obviously i am still learning!
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
You vlookup is selecting one column (E2:E398) but you say you want to find the result in column 5.

Expand your selection, which I assume will be E2:I398
 
Upvote 0
Someones badge number, so 2351 is in c6 and also in A2 in the data sheet. so that when i type 2351 it will come back with the answer in E2? is that correct
 
Upvote 0
No - the array is incorrect - you have not included the lookup column in it. Change it to this:

=IF(C6="","",VLOOKUP(C6,Data!$A$2:$E$398,5,FALSE))
 
Last edited:
Upvote 0
Ahh... I assumed that E2 was the start of your data rather than A2...
AliGW is correct...
 
Upvote 0
I love you! it worked but.. how would i get it to check every item related to that number going all the way down In Cell E?
 
Upvote 0
Yeah basically, because its currently returning the same one even though there is multiple items linked to that number
 
Upvote 0

Forum statistics

Threads
1,213,546
Messages
6,114,251
Members
448,556
Latest member
peterhess2002

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