INDEX/MATCH help

Yamezz

Active Member
Joined
Nov 22, 2006
Messages
336
Office Version
  1. 2019
I would like to have a formula that gives the sales rate of the current product on the market, from the following table

ProductBatchCurrentRate
Apple14X24
Apple1628
Apple172
Orange22X119
Banana17X188
Banana190
Result:
ProductRate
Apple24
Orange119
Banana188


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.
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
I think sumifs is your answer, assuming you only have one current Apple at any given time.

=sumifs(columnD range, columnC range, "X", ColumnA range, $A11)

Where A11 is the criteria you are looking for.

Index match can work. But can be confusing.
=INDEX($D$2:$D$6,AND(MATCH($A11,$A$2:$A$6,0),MATCH("x",$C$2:$C$6,0)))
 
Upvote 0
Solution

Forum statistics

Threads
1,215,076
Messages
6,122,984
Members
449,092
Latest member
Mr Hughes

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top