Assume Product is Part A and Qty is 4 for the following fields. What is the formula I need to enter to return the correct price for the given quantity?
(I expect the formula to output 25.87)
Field values are as follows:
A1:Product B1:Price C1:Qty Start D1: Qty End
A2:PartA B2:10.35 C2:50 D2:500
A3:PartA B3:12.94 C3:25 D3:49
A4:PartA B4:12.94 C4:10 D4:24
A5:PartA B5:25.87 C5:1 D5:9
A6:PartA B6:10.35 C6:0 D6:0
A7:PartB B7:8.34 C7:50 D7:500
A8:PartB B8:10.43 C8:25 D8:49
A9:PartB B9:10.43 C9:10 D9:24
A10:PartB B10:20.86 C10:1 D10:9
A11:PartB B11:8.34 C11:0 D11:0
Additional Details
I tried a previous solution which was similar, except Quantity was 10 (which is in the Qty Start List). This question will need the answerer to allow for the fact that the quantity is BETWEEN QTY START and QTY END columns (in this case 1 and 9) and not exactly any number in the Qty start or Qty End list)
The previous correct solution was as follows:
=SUMPRODUCT((A2:A11=A2) * (C2:C11=1) * B2:B11)
(I expect the formula to output 25.87)
Field values are as follows:
A1:Product B1:Price C1:Qty Start D1: Qty End
A2:PartA B2:10.35 C2:50 D2:500
A3:PartA B3:12.94 C3:25 D3:49
A4:PartA B4:12.94 C4:10 D4:24
A5:PartA B5:25.87 C5:1 D5:9
A6:PartA B6:10.35 C6:0 D6:0
A7:PartB B7:8.34 C7:50 D7:500
A8:PartB B8:10.43 C8:25 D8:49
A9:PartB B9:10.43 C9:10 D9:24
A10:PartB B10:20.86 C10:1 D10:9
A11:PartB B11:8.34 C11:0 D11:0
Additional Details
I tried a previous solution which was similar, except Quantity was 10 (which is in the Qty Start List). This question will need the answerer to allow for the fact that the quantity is BETWEEN QTY START and QTY END columns (in this case 1 and 9) and not exactly any number in the Qty start or Qty End list)
The previous correct solution was as follows:
=SUMPRODUCT((A2:A11=A2) * (C2:C11=1) * B2:B11)