Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default Looking up data by row and column (Arrays, Lookups, Index, Match??

Hello:

I'm pretty comfortable with VLOOKUPS but having a difficult time
understanding MATCH and INDEX. I'm trying to fill in column D on Database
Table with column C from SAP Table where Columns A and B from each table
matches.

I was thinking an array would work, but I don't have much experience with
this either.

For example: A3 & B3 of SAP Table = A2 & B2 of Database Table

SAP Table
A B C
1 PersNo. End Date Vacation Hours
2 0007635A 07/28/2007 40.00
3 0011203A 06/30/2007 40.00
4 9400171A 07/28/2007 40.00
5 9400180A 07/28/2007 40.00



Database Table
A B C D
1 SAP Number End Date Vacation SAP Vacation
2 0011203A 6/30/07 40 Result of formula here.
3 9400180A 4/14/07 40

Thanks for any suggestions.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Looking up data by row and column (Arrays, Lookups, Index, Match??

One way

Assume source "SAP table" is in sheet: X

In the other sheet ("Database Table"),
Put in D2, array-enter the formula by pressing Ctrl+Shift+Enter:
=INDEX(X!C$2:C$100,MATCH(1,(X!A$2:A$100=A2)*(X!B$2 :B$100=B2),0))
Copy D2 down. Adjust the ranges to suit.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Victoria@DIG" wrote:
Hello:

I'm pretty comfortable with VLOOKUPS but having a difficult time
understanding MATCH and INDEX. I'm trying to fill in column D on Database
Table with column C from SAP Table where Columns A and B from each table
matches.

I was thinking an array would work, but I don't have much experience with
this either.

For example: A3 & B3 of SAP Table = A2 & B2 of Database Table

SAP Table
A B C
1 PersNo. End Date Vacation Hours
2 0007635A 07/28/2007 40.00
3 0011203A 06/30/2007 40.00
4 9400171A 07/28/2007 40.00
5 9400180A 07/28/2007 40.00



Database Table
A B C D
1 SAP Number End Date Vacation SAP Vacation
2 0011203A 6/30/07 40 Result of formula here.
3 9400180A 4/14/07 40

Thanks for any suggestions.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default Looking up data by row and column (Arrays, Lookups, Index, Mat

It WORKED!!! Thank you so much.

"Max" wrote:

One way

Assume source "SAP table" is in sheet: X

In the other sheet ("Database Table"),
Put in D2, array-enter the formula by pressing Ctrl+Shift+Enter:
=INDEX(X!C$2:C$100,MATCH(1,(X!A$2:A$100=A2)*(X!B$2 :B$100=B2),0))
Copy D2 down. Adjust the ranges to suit.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Victoria@DIG" wrote:
Hello:

I'm pretty comfortable with VLOOKUPS but having a difficult time
understanding MATCH and INDEX. I'm trying to fill in column D on Database
Table with column C from SAP Table where Columns A and B from each table
matches.

I was thinking an array would work, but I don't have much experience with
this either.

For example: A3 & B3 of SAP Table = A2 & B2 of Database Table

SAP Table
A B C
1 PersNo. End Date Vacation Hours
2 0007635A 07/28/2007 40.00
3 0011203A 06/30/2007 40.00
4 9400171A 07/28/2007 40.00
5 9400180A 07/28/2007 40.00



Database Table
A B C D
1 SAP Number End Date Vacation SAP Vacation
2 0011203A 6/30/07 40 Result of formula here.
3 9400180A 4/14/07 40

Thanks for any suggestions.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Looking up data by row and column (Arrays, Lookups, Index, Mat

welcome, glad it helped.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Victoria@DIG" wrote in message
...
It WORKED!!! Thank you so much.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with lookups (Index/Offset/Match/Choose???) [email protected] Excel Discussion (Misc queries) 3 August 15th 07 09:31 PM
How to use index match for multi lookups? rcnclovis Excel Worksheet Functions 1 July 20th 07 09:02 PM
INDEX / MATCH performance for lookups VancitysFinest Excel Worksheet Functions 4 April 25th 07 04:00 PM
SUM of INDEX lookups Liz Steffen Excel Worksheet Functions 3 May 11th 06 04:43 PM
index,match,match on un-sorted data Brisbane Rob Excel Worksheet Functions 3 September 24th 05 10:04 PM


All times are GMT +1. The time now is 07:17 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"