I would like to have a formula that gives the sales rate of the current product on the market, from the following table
The Results, which I've manually entered to show what I'd expect from the formula, would find the Rate where the Product is Apple and the Current column has an "X" (indicating that this is the batch of that product that is currently being sold). I presume INDEX/MATCH is the way to go, but I've got myself muddled. Any help would be appreciated.
Product | Batch | Current | Rate |
Apple | 14 | X | 24 |
Apple | 16 | 28 | |
Apple | 17 | 2 | |
Orange | 22 | X | 119 |
Banana | 17 | X | 188 |
Banana | 19 | 0 | |
Result: | |||
Product | Rate | ||
Apple | 24 | ||
Orange | 119 | ||
Banana | 188 | ||
The Results, which I've manually entered to show what I'd expect from the formula, would find the Rate where the Product is Apple and the Current column has an "X" (indicating that this is the batch of that product that is currently being sold). I presume INDEX/MATCH is the way to go, but I've got myself muddled. Any help would be appreciated.