Index/Match :: MrExcel Message Board


 FAQFAQ
   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   FavoritesFavorites   StatisticsStatistics 
 RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Online StoreOnline Store

MrExcel Message Board Forum Index -> Excel Questions

Index/Match
Post new topic   Reply to topic
Last Thread | Next Thread  >   Printable version
  Author    Thread

Lester601
Board Regular


Joined: 04 Apr 2003
Posts: 55


Status: Offline

 Reply with quote  

Index/Match

Need some help with indexMatch.


I have two worksheets (Sameworkbook)
worksheet 2 has the data that I need to look at example

Col. C:
Joe
Mark
Bill

Now, match the names above to those in worksheet 1 and return the value in col. A of worksheet 1 to col.B of worksheet 2

note: worksheet 1has the same names I just need to get its matching value.

I was told index/match might be able to do this.

can someone give me a start?

Post Mon Nov 24, 2003 5:21 pm 
 View user's profile Send private message

Aladin Akyurek
.


Joined: 15 Feb 2002
Posts: 14242
Location: The Hague
Flag: Blank

Status: Offline

 Reply with quote  

Re: Index/Match

quote:
Originally posted by Lester601:
Need some help with indexMatch.


I have two worksheets (Sameworkbook)
worksheet 2 has the data that I need to look at example

Col. C:
Joe
Mark
Bill

Now, match the names above to those in worksheet 1 and return the value in col. A of worksheet 1 to col.B of worksheet 2

note: worksheet 1has the same names I just need to get its matching value.

I was told index/match might be able to do this.

can someone give me a start?


Where are the names on Sheet1 -- in B perhaps?

Post Mon Nov 24, 2003 5:24 pm 
 View user's profile Send private message

Yogi Anand
MrExcel MVP


Joined: 13 Mar 2002
Posts: 5831
Location: Michigan USA

Status: Offline

 Reply with quote  

Re: Index/Match

Hi Lester601:

It is not very clear from your description what you are trying to accomplish -- so bear with me, I am going to make some assumptions about how your data is laid out and what you are trying to get. Let us say the names in worksheet1 are laid out as in ...

Microsoft Excel - Book2___Running: xl97 : OS = Windows 98
(F)ile (E)dit (V)iew (I)nsert (O)ptions (T)ools (D)ata (W)indow (H)elp (A)bout
=

A
B
C
D
1
Bill   
2
Joe   
3
Mark   
4
    
Sheet1 

[HtmlMaker 2.20] To see the formula in the cells just click on the cells hyperlink or click the Name box
PLEASE DO NOT QUOTE THIS TABLE IMAGE ON SAME PAGE! OTHEWISE, ERROR OF JavaScript OCCUR.


then let us say the names in worksheet2 are laid out as shown in cells C1:C3 as depicted in ...

Microsoft Excel - Book2___Running: xl97 : OS = Windows 98
(F)ile (E)dit (V)iew (I)nsert (O)ptions (T)ools (D)ata (W)indow (H)elp (A)bout
=

A
B
C
D
1
 2Joe 
2
 3Mark 
3
 1Bill 
4
    
Sheet2 

[HtmlMaker 2.20] To see the formula in the cells just click on the cells hyperlink or click the Name box
PLEASE DO NOT QUOTE THIS TABLE IMAGE ON SAME PAGE! OTHEWISE, ERROR OF JavaScript OCCUR.


Then I assume you are trying to find the row number in sheet1 of the matching name in sheet2 -- these are presented in column B -- meaning the name Joe is is row2 (cell A2) in worksheet1, and similarly Mark is in row3 and Bill is in row1

I hope this helps. If I have misunderstood your question -- my apologies!
_________________
Regards!
Yogi Anand

Post Mon Nov 24, 2003 5:35 pm 
 View user's profile Send private message

Lester601
Board Regular


Joined: 04 Apr 2003
Posts: 55


Status: Offline

 Reply with quote  

Re: Index/Match

Thanks for your reply, worksheet1 has may cols. with all the names in worksheet2.

Worksheet1, using your example books, has data in colum C for each name. Example "2A"


From workbook2:

I want the fomula to match each name in workbook 2 with workbook 1 and return the value in Col. C of workbook 1.

The value will be place in col B sheet2 as per work book example.


I hope this is a little clearer

Thanks

Post Mon Nov 24, 2003 6:55 pm 
 View user's profile Send private message

Yogi Anand
MrExcel MVP


Joined: 13 Mar 2002
Posts: 5831
Location: Michigan USA

Status: Offline

 Reply with quote  

Re: Index/Match

quote:
Originally posted by Lester601:
Thanks for your reply, worksheet1 has may cols. with all the names in worksheet2.

Worksheet1, using your example books, has data in colum C for each name. Example "2A"


From workbook2:

I want the fomula to match each name in workbook 2 with workbook 1 and return the value in Col. C of workbook 1.

The value will be place in col B sheet2 as per work book example.


I hope this is a little clearer

Thanks

Please post sample data in worksheet1, and worksheet2, and show what are your expected results -- and then let us take it from there.
_________________
Regards!
Yogi Anand

Post Mon Nov 24, 2003 7:03 pm 
 View user's profile Send private message

Aladin Akyurek
.


Joined: 15 Feb 2002
Posts: 14242
Location: The Hague
Flag: Blank

Status: Offline

 Reply with quote  

Re: Index/Match

quote:
Originally posted by Lester601:
Thanks for your reply, worksheet1 has may cols. with all the names in worksheet2.

Worksheet1, using your example books, has data in colum C for each name. Example "2A"


From workbook2:

I want the fomula to match each name in workbook 2 with workbook 1 and return the value in Col. C of workbook 1.

The value will be place in col B sheet2 as per work book example.


I hope this is a little clearer

Thanks


It seems you're easily distracted. You also seem to confound the words "workbook" and "worksheet".

You have names in worksheet Sheet2: In which column?

You have names in worksheet Sheet1: In which column?

It looks like you want to match a name from Sheet2 to the names in Sheet1. And if the match succeeds, you want corresponding value from column C on Sheet1 to Sheet2. Right?

Now would you please answer the questions above? If the questions depict a wrong picture of the your problem, try to re-describe the problem you want to solve.

Post Mon Nov 24, 2003 7:21 pm 
 View user's profile Send private message

Lester601
Board Regular


Joined: 04 Apr 2003
Posts: 55


Status: Offline

 Reply with quote  

Re: Index/Match

First let me apologize, I certainly meant worksheets 1 and 2.

The names are in Col B of worksheet1

COl B
Bill
Joe
Mark

Col A
2A
2B
2C


Worksheet 2
Col C
Bill
Joe
Mark

Column B
return value from sheet 1 column A for each match (2A)
return value from sheet 1 column A for each match (2B)
return value from sheet 1 column A for each match (2C)


Sorry for confusing this I am just very tired..

Post Mon Nov 24, 2003 8:28 pm 
 View user's profile Send private message

Aladin Akyurek
.


Joined: 15 Feb 2002
Posts: 14242
Location: The Hague
Flag: Blank

Status: Offline

 Reply with quote  

Re: Index/Match

quote:
Originally posted by Lester601:
First let me apologize, I certainly meant worksheets 1 and 2.

The names are in Col B of worksheet1

COl B
Bill
Joe
Mark

Col A
2A
2B
2C


Worksheet 2
Col C
Bill
Joe
Mark

Column B
return value from sheet 1 column A for each match (2A)
return value from sheet 1 column A for each match (2B)
return value from sheet 1 column A for each match (2C)


Sorry for confusing this I am just very tired..


=INDEX(Sheet1$A$2:$A$100,MATCH(C2,Sheet1!$B$2:$B$100,0))

Adjust the ranges where needed.

Post Mon Nov 24, 2003 8:54 pm 
 View user's profile Send private message

Lester601
Board Regular


Joined: 04 Apr 2003
Posts: 55


Status: Offline

 Reply with quote  

Re: Index/Match

Thanks for your help. Its working

Post Mon Nov 24, 2003 10:24 pm 
 View user's profile Send private message
  Display posts from previous:      

MrExcel Message Board Forum Index -> Excel Questions


Forum Jump:
Jump to:  

Post new topic   Reply to topic
Page 1 of 1



Add To Favorites

 


Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB: 2.0.4 © 2001 phpBB Group

Need help posting your first question? Read how to post

Need extra help ? Couldn't get the answer you needed ? Get a free quote from our Consulting Team

Download Colo's HTML Maker utility for displaying your Excel Worksheet on the board.

Download VB HTML Maker to post your code on the board


Check out our new index to 485 Excel Articles.


Return to MrExcel Consulting

All contents Copyright 1998-2004 by MrExcel.com
If you believe information posted here is from your copyrighted source, notify us per the Terms of Use
Excel is a registered trademark of the Microsoft Corporation.
MrExcel is a registered trademark of Tickling Keys, Inc.