LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 510
Default INDEX - MATCH with three variables

Hi

=SUMPRODUCT(--(Sheet5!$A$1:$A$10000=200702),--(Sheet5!$B$1:$B$10000="AED"),Sheet5!$C$1:$C$10000)
, or, when YRMONTH values are strings
=SUMPRODUCT(--(Sheet5!$A$1:$A$10000="200702"),--(Sheet5!$B$1:$B$10000="AED"),Sheet5!$C$1:$C$10000)

Different conditions you may add into formula are limited only by number of
characters Excel allows for formulas. All ranges in formula must be of same
dimension. You may use SUMPRODUCT for 2 different tasks:
=SUMPRODUCT(--(Range1=Condition1),--(Range2=Condition2),...,--(RangeN=ConditionN))
(the formula counts the number of occurrences where all conditions are
True);
=SUMPRODUCT(--(Range1=Condition1),--(Range2=Condition2),...,--(RangeN=ConditionN),RangeX)
(the formula sums all values in range RangeX, for which all conditions are
True)


Arvi Laanemets


"Pops Jackson" wrote in message
...
Column 1 contains the Year and Month for each currency.
Column 2 contains each currency, repeated for each year-month group.
Columns 3 through 33 contain the spot rate for each day of the month

I can set up a formula to capture two of the three above variables but run
into trouble when trying to insert a third condition. The below is a
sample
of where I can get. The problem is that it finds the first occurrence of
the
currency. I need to be able to add the month-year column into the
equation.

=INDEX(Sheet5!$A$1:$AG$10000,MATCH(G2,Sheet5!$B$1: $B$10000,0),MATCH(D2,Sheet5!A1:AG1,0))

1
YRMONTH CCY SPOTRATE1_8
200702 AED 3.67265
200702 ARS 3.10375
200702 ATS 10.56940
200702 AUD 0.77375
200702 BBD 2.00000
200702 BEF 30.98180
200702 BMD 1.00150

Thanks for any help you can give.
--
Pops Jackson



 
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
index match array function-returning only first match, need last. Julie Olsen Excel Worksheet Functions 3 December 29th 06 12:50 AM
Index Match function for multiple linked variables Bob Excel Worksheet Functions 13 November 23rd 05 12:56 AM
Index Match function for multiple linked variables Bob Excel Worksheet Functions 0 November 22nd 05 02:12 AM
How do I display more than one match in a Index/Match formula? Trish Excel Worksheet Functions 0 September 26th 05 10:21 PM
Index Match With 3 Variables Scooterdog Excel Worksheet Functions 5 January 2nd 05 07:05 PM


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