Basic Lookup Function

Gcook90

New Member
Joined
Feb 3, 2015
Messages
20
Office Version
  1. 365
Platform
  1. Windows
Apologies i'm sure this is really basic - trying to work out a way to lookup:

Sheet 1:
Column A has a list of numbers 1-60
Column B has a list of animals e.g. Dog, Cat - with a different number being a different animal. e.g. 1 = dog, 34 = giraffe.

Sheet 2:
Column A has a list of the numbers (1-60), how do I get it to display what animal it is?

Thank you!
 

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.
Thanks Joe.
Have had a look, so it would be VLOOKUP(A1:A60, B1:B60, ??, True)
 
Upvote 0
Thanks Joe.
Have had a look, so it would be VLOOKUP(A1:A60, B1:B60, ??, True)
Note quite.

The first argument should just be a single value - the value you are looking up in that case.
The second argument is the range you are looking up into. It needs at least two columns - the left-most column is the value you are matching on, and the right-most column is the value you want to return.
The third argument relates to the second one. However many columns you have in the second argument, this tells it which one of those columns you want to return.
The fourth argument tells it whether or not to return an approximate match if there is not a perfect match (used most commonly with numbers). If you want an EXACT match only, it should be FALSE.

So, if you want to look up the value for cell A1 from Sheet1, and find it in column A on Sheet2 and return the corresponding value from column B on Sheet2, your would put this formula in cell B1 on Sheet1:
Excel Formula:
=VLOOKUP(A1,Sheet2!A1:B60,2,FALSE)

Spend some time reading/studying that link I gave you. Everything I mentioned here is explained there in much more detail.
 
Upvote 1
Solution
Thanks - I did work out my mistake - last one is the third argument '2' - that's pulling from the wrong sheet - is there a way to make it pull from the other sheet?
 
Upvote 0
Thanks - I did work out my mistake - last one is the third argument '2' - that's pulling from the wrong sheet - is there a way to make it pull from the other sheet?
No, that is not correct.

The second argument tells you what range you are looking into. Note my last post and the sheet reference in the range.
The third argument just tells it what column in the range in argument two to return.

The formula in the last post I gave you should give you what you need, with some minor adjustments to reflect your actual ranges.
Though note that if you are going to copy it down multiple rows, you will want to lock your lookup range, i.e.
Excel Formula:
=VLOOKUP(A1,Sheet2!$A$1:$B$60,2,FALSE)
 
Upvote 0

Forum statistics

Threads
1,223,240
Messages
6,170,951
Members
452,368
Latest member
jayp2104

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