=VLOOKUPreturnstowrongrow

Some videos you may like

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.

PaddyD

MrExcel MVP
Joined
May 1, 2002
Messages
14,234
Hi - welcome to the board!

You're going to have to give us a bit more info to work on than that ;)

How about posting the formula you're using and a representative sample of the data..?
 

Elmac511

New Member
Joined
Jan 22, 2018
Messages
3
=vlookup(“New York”,A2:C100,3,False). Col A was sorted and is the City. Col B is the emp-name. Col C is where I want the emp-name it finds to go. Ex. Found “New York” hit in Row37 ColA. Next column cell B37 is his name which I want put in Col C row 37. It is going into row 2 of col. C. Ps. Thank you for replying. Am new to vlookup. I say I am advanced beginner ready to go into the intermediate category.
 

Joe4

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
54,456
Office Version
  1. 365
Platform
  1. Windows
I think you want this:
Code:
[COLOR=#333333]=vlookup("New York",A2:B100,2,False)[/COLOR]
You were telling it to look up "New York" in column A, and return the value from column C in that row. But it sounds like you actually want to return the value from column B.
In the formula, you don't tell it which cell to return the value to. The value will be returned to whatever cell you have placed the formula in.

For more on VLOOKUP, take a look at the examples here:
https://www.ablebits.com/office-addins-blog/2014/07/17/excel-vlookup-tutorial-beginner/
 

Elmac511

New Member
Joined
Jan 22, 2018
Messages
3
Yes, thank you for explaining that. I am much more knowledgeable of the vlookup function.
 

Watch MrExcel Video

Forum statistics

Threads
1,109,028
Messages
5,526,336
Members
409,696
Latest member
EERS

This Week's Hot Topics

Top