Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

VLOOKUP with other sheet

Posted on 2012-12-21
9
370 Views
Last Modified: 2012-12-31
Hi. When I use the following VLOOKUP on the same sheet as the range "staff" it works fine.
It doesn't, however, work on a different sheet

=VLOOKUP(A5,staff,6,0)
0
Comment
Question by:murbro
  • 3
  • 3
  • 2
  • +1
9 Comments
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 167 total points
ID: 38712395
it works for me just fine; what error do you get?
and with "other sheet" you mean really just another sheet in the same workbook?
can you upload the file (or a sample where you reproduce the issue)?
0
 
LVL 52

Assisted Solution

by:Scott Fell, EE MVE
Scott Fell,  EE MVE earned 167 total points
ID: 38712396
if on sheet1

=VLOOKUP(A5,Sheet1!staff,6,0)
0
 
LVL 50

Assisted Solution

by:barry houdini
barry houdini earned 166 total points
ID: 38712413
Agree with AngelIII, works OK for me - you shouldn't need to refer to the sheet for a named range, is the lookup value the same, where is A5?

regards, barry
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 52

Expert Comment

by:Scott Fell, EE MVE
ID: 38712456
Is the A5 on the same sheet?
0
 

Author Comment

by:murbro
ID: 38712466
Here is the file. I am trying to do a VLOOKUP on the sheet "Template" that references the Sheet Data1
Scheduler.xls
0
 
LVL 50

Expert Comment

by:barry houdini
ID: 38712489
This formula works for me

=VLOOKUP(A5,staff,4,0)

.....but the names need to match - you have "Anthony" on one sheet (with an "h") and "Antony" (without "h") on the other

regards, barry
0
 
LVL 52

Expert Comment

by:Scott Fell, EE MVE
ID: 38712495
Also I think the names need to be in order to get correct results
0
 
LVL 50

Expert Comment

by:barry houdini
ID: 38712516
>Also I think the names need to be in order to get correct results

No, that's not correct - VLOOKUP with a 4th argument of FALSE or zero will give you an exact match only - the lookup range doesn't need to be sorted (that only applies when 4th argument of VLOOKUP is TRUE or 1)

The formula used should work OK on the data given, as long as the lookup value finds a match

regards, barry
0
 

Author Closing Comment

by:murbro
ID: 38732083
Thanks for the help
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question