Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default How to set One value from Multiple Lookup Value

Ref to the following Instance i.e in Sheet1
A B C
Destination Weight Rate
1 Chicago 500 1
2 Chicago 1000 2
3 Chicago 1500 3

I want to set up lookup value in Sheet2

A B C
Destination Weight Rate
1 Chicago 500
2 Chicago 1000
3 Chicago 1500

I want to set formula in Sheet2 Colum C. I will put destination and weight
in colum A and B and I want the rate will be automically inserted in colum C.

Thanks
Shibly
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default How to set One value from Multiple Lookup Value

=INDEX(Sheet1!$C$2:$C$20,MATCH(1,(Sheet1!$A$2:$A$2 0=$A2)*(Sheet1!$B$2:$B$20=$B2),0))

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.
Excel will automatically enclose the formula in braces (curly brackets), do
not try to do this manually.
When editing the formula, it must again be array-entered.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Shibly" wrote in message
...
Ref to the following Instance i.e in Sheet1
A B C
Destination Weight Rate
1 Chicago 500 1
2 Chicago 1000 2
3 Chicago 1500 3

I want to set up lookup value in Sheet2

A B C
Destination Weight Rate
1 Chicago 500
2 Chicago 1000
3 Chicago 1500

I want to set formula in Sheet2 Colum C. I will put destination and
weight
in colum A and B and I want the rate will be automically inserted in colum
C.

Thanks
Shibly



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default How to set One value from Multiple Lookup Value

Bob,
Curiosity: is there any advantage/disadvantage in using
SUMPRODUCT to do this? Not its normal usage I know but it will work.

"Bob Phillips" wrote:

=INDEX(Sheet1!$C$2:$C$20,MATCH(1,(Sheet1!$A$2:$A$2 0=$A2)*(Sheet1!$B$2:$B$20=$B2),0))

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.
Excel will automatically enclose the formula in braces (curly brackets), do
not try to do this manually.
When editing the formula, it must again be array-entered.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Shibly" wrote in message
...
Ref to the following Instance i.e in Sheet1
A B C
Destination Weight Rate
1 Chicago 500 1
2 Chicago 1000 2
3 Chicago 1500 3

I want to set up lookup value in Sheet2

A B C
Destination Weight Rate
1 Chicago 500
2 Chicago 1000
3 Chicago 1500

I want to set formula in Sheet2 Colum C. I will put destination and
weight
in colum A and B and I want the rate will be automically inserted in colum
C.

Thanks
Shibly




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default How to set One value from Multiple Lookup Value

I tend to avoid it John, in case there are multiple entries. With SP it will
just sum, and thus could be difficult to track the error down. I know the
INDEX gets just the first in these circumstances, but that is preferable to
adding (IMO).

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Toppers" wrote in message
...
Bob,
Curiosity: is there any advantage/disadvantage in using
SUMPRODUCT to do this? Not its normal usage I know but it will work.

"Bob Phillips" wrote:

=INDEX(Sheet1!$C$2:$C$20,MATCH(1,(Sheet1!$A$2:$A$2 0=$A2)*(Sheet1!$B$2:$B$20=$B2),0))

which is an array formula, it should be committed with Ctrl-Shift-Enter,
not
just Enter.
Excel will automatically enclose the formula in braces (curly brackets),
do
not try to do this manually.
When editing the formula, it must again be array-entered.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)

"Shibly" wrote in message
...
Ref to the following Instance i.e in Sheet1
A B C
Destination Weight Rate
1 Chicago 500 1
2 Chicago 1000 2
3 Chicago 1500 3

I want to set up lookup value in Sheet2

A B C
Destination Weight Rate
1 Chicago 500
2 Chicago 1000
3 Chicago 1500

I want to set formula in Sheet2 Colum C. I will put destination and
weight
in colum A and B and I want the rate will be automically inserted in
colum
C.

Thanks
Shibly






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
Lookup/multiple Minerva Excel Worksheet Functions 13 January 8th 10 05:21 PM
Lookup using multiple sheets and multiple criteria, sorry if 2 pos kjguillermo Excel Worksheet Functions 4 January 16th 07 03:21 AM
Lookup using multiple sheets and multiple criteria kjguillermo Excel Discussion (Misc queries) 2 January 14th 07 10:28 AM
Lookup in Multiple Columns, Return Multiple Values andy62 Excel Worksheet Functions 3 July 6th 06 02:36 AM
multiple Lookup shaj Excel Worksheet Functions 2 November 17th 05 07:10 PM


All times are GMT +1. The time now is 10:56 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"