A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Vlookup



 
 
Thread Tools Display Modes
  #1  
Old April 14th, 2010, 11:31 PM posted to microsoft.public.excel.worksheet.functions
Jacki
external usenet poster
 
Posts: 18
Default Vlookup

What is the best way to be able to enter a number into a cell and it returns
the name that corresponds with that number in the cell to the right of it.
The numbers and names to view from would be on a master/seperate worksheet.

Thanks so much for your help.
  #3  
Old April 14th, 2010, 11:52 PM posted to microsoft.public.excel.worksheet.functions
Max
external usenet poster
 
Posts: 8,574
Default Vlookup

Index/match gives you the versatility to return any col to the left or right
of the match col

Eg in Sheet2,
You could have something like this in say, C2:
=INDEX(Sheet1!A:A,MATCH($B2,Sheet1!$B:$B,0))
to return Sheet1's col A based on exact matching B2 within Sheet1's col B

The col to return is specified in this part:
INDEX(Sheet1!A:A

Inspiring? hit the YES below
--
Max
Singapore
---
"jacki" wrote:
What is the best way to be able to enter a number into a cell and it returns
the name that corresponds with that number in the cell to the right of it.
The numbers and names to view from would be on a master/seperate worksheet.

Thanks so much for your help.

  #4  
Old April 15th, 2010, 12:20 AM posted to microsoft.public.excel.worksheet.functions
Jacki
external usenet poster
 
Posts: 18
Default Vlookup

Thanks so much for the quick reply but I guess I'm just dense.

I need to type a number in sheet 1, a2.. It will go to sheet 2 and match
that number with all the numbers in column a and copy the name next to that
number back to sheet 1,b2. I hope this makes sense as it's been awhile since
I have used Excel.

Thanks again for your time and help.

"Max" wrote:

Index/match gives you the versatility to return any col to the left or right
of the match col

Eg in Sheet2,
You could have something like this in say, C2:
=INDEX(Sheet1!A:A,MATCH($B2,Sheet1!$B:$B,0))
to return Sheet1's col A based on exact matching B2 within Sheet1's col B

The col to return is specified in this part:
INDEX(Sheet1!A:A

Inspiring? hit the YES below
--
Max
Singapore
---
"jacki" wrote:
What is the best way to be able to enter a number into a cell and it returns
the name that corresponds with that number in the cell to the right of it.
The numbers and names to view from would be on a master/seperate worksheet.

Thanks so much for your help.

  #5  
Old April 15th, 2010, 12:43 AM posted to microsoft.public.excel.worksheet.functions
Don Guillett[_2_]
external usenet poster
 
Posts: 607
Default Vlookup

If desired, send your file to my address below. I will only look if:
1. You send a copy of this message on an inserted sheet
2. You give me the newsgroup and the subject line
3. You send a clear explanation of what you want
4. You send before/after examples and expected results.


--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"jacki" wrote in message
...
Thanks so much for the quick reply but I guess I'm just dense.

I need to type a number in sheet 1, a2.. It will go to sheet 2 and match
that number with all the numbers in column a and copy the name next to
that
number back to sheet 1,b2. I hope this makes sense as it's been awhile
since
I have used Excel.

Thanks again for your time and help.

"Max" wrote:

Index/match gives you the versatility to return any col to the left or
right
of the match col

Eg in Sheet2,
You could have something like this in say, C2:
=INDEX(Sheet1!A:A,MATCH($B2,Sheet1!$B:$B,0))
to return Sheet1's col A based on exact matching B2 within Sheet1's col B

The col to return is specified in this part:
INDEX(Sheet1!A:A

Inspiring? hit the YES below
--
Max
Singapore
---
"jacki" wrote:
What is the best way to be able to enter a number into a cell and it
returns
the name that corresponds with that number in the cell to the right of
it.
The numbers and names to view from would be on a master/seperate
worksheet.

Thanks so much for your help.


  #6  
Old April 15th, 2010, 03:03 AM posted to microsoft.public.excel.worksheet.functions
Max
external usenet poster
 
Posts: 8,574
Default Vlookup

I need to type a number in sheet 1, a2.. It will go to sheet 2 and match
that number with all the numbers in column a and copy the name next to that
number back to sheet 1,b2


In Sheet1,
Put this in B2: =INDEX(Sheet2!B:B,MATCH($A2,Sheet2!$A:$A,0))
Copy down
--
Max
Singapore
---
  #7  
Old April 26th, 2010, 11:12 PM posted to microsoft.public.excel.worksheet.functions
UKMAN
external usenet poster
 
Posts: 70
Default Vlookup

Max,

found your answer below and tried to adjust it to a question I raised today,
"colating data from a table for a bespoke report". I used it to find the
first record but have problems with it finding futher records can you help
please.

(see below for example) Basically In cell a1 I have a drop down that allows
you to select a name so that all the differant Proj Code (from a 1020 row
list) against that name are shown on seperate rows in preformated report.
Once I have that data by means of a vlookup I have a formula that will show
the rest of the data.

Proj Code Name

PC01 colin
PC01 fred jones
PC12 colin
PC13 fred jones
PC14 fred jones
PC19 colin

if you can help could you post a report against that question please.

many thanks in advance.

UKMAN



"Max" wrote:

I need to type a number in sheet 1, a2.. It will go to sheet 2 and match
that number with all the numbers in column a and copy the name next to that
number back to sheet 1,b2


In Sheet1,
Put this in B2: =INDEX(Sheet2!B:B,MATCH($A2,Sheet2!$A:$A,0))
Copy down
--
Max
Singapore
---

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:10 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.