Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Match Multiple Values

I have 2 variable values in spreadsheet 1 that match 2 values in spreadsheet
2. The B/MarkCost needs to be reported back to Spreadsheet 1. Any ideas on
how to do it?

Eg.

Spreadsheet 1

To Suburb Serv B/markCost
ALBION E
ALDERL N
ALBION N


Spreadsheet 2

TO SERV B/MarkCOST
ALBION E $37.06
ALDERL N $14.96
ALEXAN E $31.35
A.OVER G $62.70
ALBION N $7.80
ALBION A $78.40



  #2   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Match Multiple Values

In Sheet1,
Put this in C2, normal ENTER:
=INDEX(Sheet2!C$2:C$7,MATCH(1,INDEX((Sheet2!A$2:A$ 7=A2)*(Sheet2!B$2:B$7=B2),),0))
Copy C2 down. Adapt the ranges to suit. This expression is generic, it'll
work even if Sheet2!C$2:C$7 were to contain text/mixed data to be returned,
which sumproduct cannot handle.

Celebrate your success, click the YES button below
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:25,000 Files:300 Subscribers:70
xdemechanik
---
"Cazulu" wrote:
I have 2 variable values in spreadsheet 1 that match 2 values in spreadsheet
2. The B/MarkCost needs to be reported back to Spreadsheet 1. Any ideas on
how to do it?

Eg.

Spreadsheet 1

To Suburb Serv B/markCost
ALBION E
ALDERL N
ALBION N


Spreadsheet 2

TO SERV B/MarkCOST
ALBION E $37.06
ALDERL N $14.96
ALEXAN E $31.35
A.OVER G $62.70
ALBION N $7.80
ALBION A $78.40



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Match Multiple Values

Try this:

=SUMPRODUCT(--(Sheet2!A$2:A$7=A2),--(Sheet2!B$2:B$7=B2),Sheet2!C$2:C$7)

--
Biff
Microsoft Excel MVP


"Cazulu" wrote in message
...
I have 2 variable values in spreadsheet 1 that match 2 values in
spreadsheet
2. The B/MarkCost needs to be reported back to Spreadsheet 1. Any ideas on
how to do it?

Eg.

Spreadsheet 1

To Suburb Serv B/markCost
ALBION E
ALDERL N
ALBION N


Spreadsheet 2

TO SERV B/MarkCOST
ALBION E $37.06
ALDERL N $14.96
ALEXAN E $31.35
A.OVER G $62.70
ALBION N $7.80
ALBION A $78.40





  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Match Multiple Values

Thanks for your help Max and T.V

"Cazulu" wrote:

I have 2 variable values in spreadsheet 1 that match 2 values in spreadsheet
2. The B/MarkCost needs to be reported back to Spreadsheet 1. Any ideas on
how to do it?

Eg.

Spreadsheet 1

To Suburb Serv B/markCost
ALBION E
ALDERL N
ALBION N


Spreadsheet 2

TO SERV B/MarkCOST
ALBION E $37.06
ALDERL N $14.96
ALEXAN E $31.35
A.OVER G $62.70
ALBION N $7.80
ALBION A $78.40



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
Match multiple values willemeulen[_41_] Excel Worksheet Functions 15 June 15th 09 08:48 AM
Find a Match in Multiple Places & Return Multiple Values Toria Excel Worksheet Functions 3 June 24th 08 09:49 PM
Returning MULTIPLE values with Index and Match Fly Excel Discussion (Misc queries) 1 June 1st 06 05:50 PM
How do I add multiple values that match multiple conditions? Joel Excel Discussion (Misc queries) 5 April 10th 06 01:32 PM
match/index using multiple values perky2go Excel Worksheet Functions 5 January 20th 06 07:21 PM


All times are GMT +1. The time now is 12:59 AM.

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"