Index match minifs

martinijr

New Member
Joined
Jan 26, 2022
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hi Everyone.

Could you please assist in identifying a formula that will work to convert the Data into the below Summary?

I am trying to find the minimum cost in each category + type and pull into a summary sheet along with the corresponding company name and code.

I've pasted my sheet below. The formula I am running in K5 (and dragged across and down) is =INDEX($D$4:$D$22,MATCH(MINIFS($C$4:$C$22,$A$4:$A$22,$H5,$B$4:$B$22,$I5),$C$4:$C$22,0))

But it is not working as for different categories that have the same minimum, index is unable to differentiate between the categories and pulls through the first one in the data.

I.e. the correct response should be Company 5 in K5 and Company 6 in K6 and similarly Code 5 in L5 and Code 6 in L6.

Thank you in advance.

1643192519655.png
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Hi & welcome to MrExcel.
In J4 copied down only try
Excel Formula:
=INDEX(SORT(FILTER($C$4:$E$22,($A$4:$A$22=H4)*($B$4:$B$22=I4)),1,1),1)
 
Upvote 0
The solution that I found most effective was:
1. in column J to find the minimum:=MINIFS($C$4:$C$22,$A$4:$A$22,$H4,$B$4:$B$22,I4)
2. In Column K, use index,match for multiple of criteria. One of which was the solution to Column J. =INDEX(D$4:D$22,MATCH(1,INDEX(($H5=$A$4:$A$22)*($I5=$B$4:$B$22)*($J5=$C$4:$C$22),0,1),0))
3. In Column L, same as Column K: =INDEX(E$4:E$22,MATCH(1,INDEX(($H5=$A$4:$A$22)*($I5=$B$4:$B$22)*($J5=$C$4:$C$22),0,1),0))
 
Upvote 0
Solution

Forum statistics

Threads
1,214,793
Messages
6,121,617
Members
449,039
Latest member
Mbone Mathonsi

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