I need to multiply & sum my data in Row 4 x either row one (B1:E1) or row 2 (B2:B4) with result in Cell F6; I would like to do a lookup based on value in cell A6 to return the the appropriate range to use in the sumproduct formula. I figured I could use multiple if statements as I showed below. but would like to use a Index/Match and sumproduct as I will have more than the 2 options in "mysumproduct range 1" below
Sumproduct range 1(input table)
A B C D E F
Row 1 S1 .25 .25 .10 .40
Row 2 C1 .25 .50 .15 .10
Sumproduct range 2
Row 4 10 20 30 40
Row 6 S1
Formula in F6 = if($A6="S1",Sumproduct($B1:$E$1,B4:E4),if(A6="C1",Sumproduct($B2:$E$2,B4:E4),"error"))
(note F6 will be copied to down & to the right)
I would like to use and Index/Match to lookup the proper range based on the value placed in A6. My input table will not be sorted in acending order so I believe Lookup will not work. Is this possible? and can I use index match to return a range to use in the sumproduct?
Thanks guys!
Sumproduct range 1(input table)
A B C D E F
Row 1 S1 .25 .25 .10 .40
Row 2 C1 .25 .50 .15 .10
Sumproduct range 2
Row 4 10 20 30 40
Row 6 S1
Formula in F6 = if($A6="S1",Sumproduct($B1:$E$1,B4:E4),if(A6="C1",Sumproduct($B2:$E$2,B4:E4),"error"))
(note F6 will be copied to down & to the right)
I would like to use and Index/Match to lookup the proper range based on the value placed in A6. My input table will not be sorted in acending order so I believe Lookup will not work. Is this possible? and can I use index match to return a range to use in the sumproduct?
Thanks guys!