Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default Return value with 2 conditions (using Lookup/Match/Index)

I am looking for a formula to return 1 value with 2 criteria. There are 2
excel sheet:
Sheet 1 - Row A (city), Row B (airlines)
Sheet 2 - Row A (airline), Row B (city), Row C (airlines rate)

If in sheet 1, cell A3 Indonesia and flying with SIA Airlines (cell B3), how
can make use Sheet 2 data of Row C with the condition of "Indonesia" and
"SIA"(2 conditions) to pull out the airlines rate.

Any main formula, I've searched through MATCH, VLOOKUP, INDEX, most of them
only cater to 1 look up value condition. Pls help. Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default Return value with 2 conditions (using Lookup/Match/Index)

Try this formula in cell Sheet1 C3. I have assumed in Sheet2 you have 10
rows...If there are more change the 10 to the rowcount.

=SUMPRODUCT(--(Sheet2!$A$1:$A$10=B3),--(Sheet2!$B$1:$B$10=A3),--(Sheet2!$C$1:$C$10))


If this post helps click Yes
---------------
Jacob Skaria


"Venice" wrote:

I am looking for a formula to return 1 value with 2 criteria. There are 2
excel sheet:
Sheet 1 - Row A (city), Row B (airlines)
Sheet 2 - Row A (airline), Row B (city), Row C (airlines rate)

If in sheet 1, cell A3 Indonesia and flying with SIA Airlines (cell B3), how
can make use Sheet 2 data of Row C with the condition of "Indonesia" and
"SIA"(2 conditions) to pull out the airlines rate.

Any main formula, I've searched through MATCH, VLOOKUP, INDEX, most of them
only cater to 1 look up value condition. Pls help. Thanks.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default Return value with 2 conditions (using Lookup/Match/Index)

Thanks Jacob. It really works!

May i know what's the purpose of putting "--+ in each of the array?

"Jacob Skaria" wrote:

Try this formula in cell Sheet1 C3. I have assumed in Sheet2 you have 10
rows...If there are more change the 10 to the rowcount.

=SUMPRODUCT(--(Sheet2!$A$1:$A$10=B3),--(Sheet2!$B$1:$B$10=A3),--(Sheet2!$C$1:$C$10))


If this post helps click Yes
---------------
Jacob Skaria


"Venice" wrote:

I am looking for a formula to return 1 value with 2 criteria. There are 2
excel sheet:
Sheet 1 - Row A (city), Row B (airlines)
Sheet 2 - Row A (airline), Row B (city), Row C (airlines rate)

If in sheet 1, cell A3 Indonesia and flying with SIA Airlines (cell B3), how
can make use Sheet 2 data of Row C with the condition of "Indonesia" and
"SIA"(2 conditions) to pull out the airlines rate.

Any main formula, I've searched through MATCH, VLOOKUP, INDEX, most of them
only cater to 1 look up value condition. Pls help. Thanks.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 265
Default Return value with 2 conditions (using Lookup/Match/Index)

Have a look at the following link...

http://www.xl-central.com/lookup-mulitple-criteria.html

Hope this helps!

In article ,
Venice wrote:

I am looking for a formula to return 1 value with 2 criteria. There are 2
excel sheet:
Sheet 1 - Row A (city), Row B (airlines)
Sheet 2 - Row A (airline), Row B (city), Row C (airlines rate)

If in sheet 1, cell A3 Indonesia and flying with SIA Airlines (cell B3), how
can make use Sheet 2 data of Row C with the condition of "Indonesia" and
"SIA"(2 conditions) to pull out the airlines rate.

Any main formula, I've searched through MATCH, VLOOKUP, INDEX, most of them
only cater to 1 look up value condition. Pls help. Thanks.

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
VLOOKUP MATCH INDEX two conditions / criterias text and date John Excel Worksheet Functions 7 September 10th 08 11:31 AM
index(match) Wind Uplift Calculations (match four conditions) JMeier Excel Worksheet Functions 8 August 1st 08 01:45 AM
lookup with INDEX MATCH formule depending on 2 conditions Excel ESG Excel Worksheet Functions 6 June 7th 07 10:21 AM
Match/Index return #N/A DHS64 Excel Worksheet Functions 2 September 27th 05 05:01 PM
Error Return Value from and INDEX(A:2,MATCH()) function BJ Excel Worksheet Functions 4 January 26th 05 02:59 PM


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