Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
RJF
 
Posts: n/a
Default Two-Column Lookup

I am trying to lookup information in a 3 column table based on data in
another table on a different tab. In the example, I want to look up G4 and
H4 on the first sheet, find the matching data in cells in columns B and C and
bring in the value from column D back to the first sheet in column I.

I'm using this formula: =INDEX('Update DB Ranges'!D21:D24,MATCH(1,('Update
DB Ranges'!B21:B24=G4)*('Update DB Ranges'!C21:C24=H4),0))

But I keep getting a #VALUE in cell I4 when I want to be getting 10.

Example:
1st Sheet
G H I
4 MS102 PREPAID OTHER =INDEX('Update DB Ranges'!D21:D24,MATCH(1,('Update DB
Ranges'!B21:B24=G4)*('Update DB Ranges'!C21:C24=H4),0))

Information to look up on other sheet which is called Update DB Ranges

B C D
21 MS102 PREPAID OTHER 10
22 MS103 ACCRUED VACATION 20
23 MS103 ACCRUED BONUS / COMMISSIONS 30
24 MS104 ACCRUED OTHER 40

Can anyone please help me figure out what I'm doing wrong?

Thank you so much.







  #2   Report Post  
Govind
 
Posts: n/a
Default

Hi,

This formula works fine for me:

=INDEX('Update DB Ranges'!$D$21:$D$24,MATCH(1,('Update DB
Ranges'!B21:B24=G4)*('Update DB Ranges'!C21:C24=H4),0))

But this formula should be entered using Ctrl + Shift + enter and not just
enter as this is an array formula.

Try this and let me know if this doesnt work.

Govind.

"RJF" wrote:

I am trying to lookup information in a 3 column table based on data in
another table on a different tab. In the example, I want to look up G4 and
H4 on the first sheet, find the matching data in cells in columns B and C and
bring in the value from column D back to the first sheet in column I.

I'm using this formula: =INDEX('Update DB Ranges'!D21:D24,MATCH(1,('Update
DB Ranges'!B21:B24=G4)*('Update DB Ranges'!C21:C24=H4),0))

But I keep getting a #VALUE in cell I4 when I want to be getting 10.

Example:
1st Sheet
G H I
4 MS102 PREPAID OTHER =INDEX('Update DB Ranges'!D21:D24,MATCH(1,('Update DB
Ranges'!B21:B24=G4)*('Update DB Ranges'!C21:C24=H4),0))

Information to look up on other sheet which is called Update DB Ranges

B C D
21 MS102 PREPAID OTHER 10
22 MS103 ACCRUED VACATION 20
23 MS103 ACCRUED BONUS / COMMISSIONS 30
24 MS104 ACCRUED OTHER 40

Can anyone please help me figure out what I'm doing wrong?

Thank you so much.







  #3   Report Post  
RJF
 
Posts: n/a
Default

Thank you so much. I feel like such an idiot. I did not use the Control +
Shift + Enter.

It's working great!

Thanks again.

"Govind" wrote:

Hi,

This formula works fine for me:

=INDEX('Update DB Ranges'!$D$21:$D$24,MATCH(1,('Update DB
Ranges'!B21:B24=G4)*('Update DB Ranges'!C21:C24=H4),0))

But this formula should be entered using Ctrl + Shift + enter and not just
enter as this is an array formula.

Try this and let me know if this doesnt work.

Govind.

"RJF" wrote:

I am trying to lookup information in a 3 column table based on data in
another table on a different tab. In the example, I want to look up G4 and
H4 on the first sheet, find the matching data in cells in columns B and C and
bring in the value from column D back to the first sheet in column I.

I'm using this formula: =INDEX('Update DB Ranges'!D21:D24,MATCH(1,('Update
DB Ranges'!B21:B24=G4)*('Update DB Ranges'!C21:C24=H4),0))

But I keep getting a #VALUE in cell I4 when I want to be getting 10.

Example:
1st Sheet
G H I
4 MS102 PREPAID OTHER =INDEX('Update DB Ranges'!D21:D24,MATCH(1,('Update DB
Ranges'!B21:B24=G4)*('Update DB Ranges'!C21:C24=H4),0))

Information to look up on other sheet which is called Update DB Ranges

B C D
21 MS102 PREPAID OTHER 10
22 MS103 ACCRUED VACATION 20
23 MS103 ACCRUED BONUS / COMMISSIONS 30
24 MS104 ACCRUED OTHER 40

Can anyone please help me figure out what I'm doing wrong?

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
How do I sort by row instead of by column? PercivalMound Excel Worksheet Functions 7 August 28th 06 10:41 PM
Lookup last in column formulas L. Howard Kittle Excel Discussion (Misc queries) 6 January 15th 05 05:38 AM
How to lookup data in a row and column Confused Excel Discussion (Misc queries) 5 January 10th 05 08:20 PM
How to lookup data in a row and column Confused Excel Worksheet Functions 1 January 10th 05 02:35 PM
double lookup, nest, or macro? Josef.angel Excel Worksheet Functions 1 October 29th 04 09:50 AM


All times are GMT +1. The time now is 11:03 PM.

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

About Us

"It's about Microsoft Excel"