find min from list based on criteria (DMIN??)

sophiesmith

New Member
Joined
Apr 13, 2020
Messages
3
Office Version
  1. 2019
Platform
  1. Windows
Hi!

I have an export with a list of products and prices. Each unique product has a standard reference code, but there might be different cost prices for each product from each supplier. Is there a function so that I can find 1) the lowest cost price for each reference code and ideally the supplier who sells at it?

I've tried a couple of =(MIN(IF...)) and =DMIN functions but can't get them to produce what I want.

Image attached - any help appreciated!
 

Attachments

  • excel query.png
    excel query.png
    19.6 KB · Views: 6

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
How about
+Fluff New.xlsm
ABCDEFG
1
213a12c
3110b23a
412c31b
523a
629b
725c
834a
931b
1037c
11
Totals
Cell Formulas
RangeFormula
F2:F4F2=MIN(IF($A$2:$A$10=E2,$B$2:$B$10))
G2:G4G2=INDEX($C$2:$C$10,MATCH(E2&"|"&F2,$A$2:$A$10&"|"&$B$2:$B$10,0))
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0

Forum statistics

Threads
1,214,944
Messages
6,122,387
Members
449,080
Latest member
Armadillos

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