Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
RS RS is offline
external usenet poster
 
Posts: 113
Default Combining 2 INDEX/MATCH eq'ns; also 2 Sumproduct eq'ns

In Excel 2000, I have a table with (w/) a formula (Equation 1 below) that
finds & inserts pay rates from another workbook (let's call it WB1) based on
multiple criteria. I now have a 2nd workbook (call it WB2) w/ additional
rates that I want my table to also check. I've created a formula (Equation
2) to find the rates for those criteria which weren't found by WB1
(basically, the bottom half of my current table starting at row 140). How
can I combine the 2 formulas (from row 2 on down) such that the formula would
search both WB1 & WB2 w/ their respective criteria together?

Equation 1 (searches WB1 only; currently found in rows 2 - 139)

=IF(L2="Level
1",100,INDEX('[WB1.xls]Coded'!O$3:O$340,MATCH(1,('[WB1.xls]Coded'!$S$3:$S$340=$AD2)*('[WB1.xls]Coded'!$K$3:$K$340=CONCATENATE($J2,"/",$K2,"/",$L2)),0)))

Equation 2 (searches WB2 only; originally found from row 140 on; modified in
this post for row 2):

=IF(L2="Level 1",100,INDEX('[WB2.xls]Rates'!$O$2:$O$411,MATCH(1,
('[WB2.xls]Rates'!$C$2:$C$411=$AD2)*('[WB2.xls]Rates'!$D$2:$D$411=$K2)
*('[WB2.xls]Rates'!$E$2:$E$411=$L2),0)))

I've tried a few variations to combine the 2, but I'm not getting it right.
That's why Equation 1 was found in rows 2 €“ 139 and Eqn 2 was found in 140 &
beyond. If you want a description of the various parts of the formula see my
previous post:

http://www.microsoft.com/office/comm...c-f54b507d0440

Using the same logic, how would I combine the 2 following equations into one?

Equation 3:

=IF(L2="Skill Level
1","-",SUMPRODUCT(('[WB1.xls]Coded'!$S$3:$S$340=$AD2)*('[WB1.xls]Coded'!$K$3:$K$340=CONCATENATE($J2,"/",$K2,"/",$L2))))

Equation 4:

=IF(L2="Skill Level
1","-",SUMPRODUCT(('[WB2.xls]Rates'!$C$2:$C$411=$AD2)*('[WB2.xls]Rates'!$D$2:$D$411=$K2)*('[WB2.xls]Rates'!$E$2:$E$411=$L2)))

I tried the following formula but keep getting an #N/A error even though the
value of 1 is correctly displayed w/ Equation 1 only:

=IF(L2="Skill Level
1","-",SUMPRODUCT(('[WB1.xls]Coded'!$S$3:$S$340=$AD2)*('[WB1.xls]Coded'!$K$3:$K$340=CONCATENATE($J2,"/",$K2,"/",$L2))*('[WB2.xls]Rates'!$C$2:$C$411=$AD2)*('[WB2.xls]Rates'!$D$2:$D$411=$K2)*('[WB2.xls]Rates'!$E$2:$E$411=$L2)))
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
INDEX / MATCH with SUMIF/COUNTIF/SUMPRODUCT Statements? Ronny Hamida Excel Worksheet Functions 10 July 29th 08 03:50 PM
vlookup, sumproduct, hlookup, index match, not sure SteveC Excel Discussion (Misc queries) 5 February 15th 07 08:46 PM
Help: Vlookup, Index, Match, or Sumproduct? Phrank Excel Worksheet Functions 3 February 14th 07 06:43 PM
maybe lookup/index/match/sumproduct been dribbled to 2007 Excel Discussion (Misc queries) 7 January 2nd 07 07:00 PM
Combine index match and sumproduct Esrei Excel Discussion (Misc queries) 2 July 8th 06 05:22 PM


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