MIN function

Ogniani

New Member
Joined
Nov 19, 2021
Messages
6
Office Version
  1. 2016
Platform
  1. Windows
  2. Web
Hello, I have a large database with two criteria (offers and product type). The aim is to find which offer contains the most proposals with a minimum price (e.g. row 8, column F,G,H). The manual solution is not possible due to the large number of rows (product type), so I hope for an automatic solution.

I have already tried the following functions, but I am obviously mistaken because they do not give the correct results:
=MINIFS(B3:D3,B2:D2,B2,A3:A6,A3)

array formulas:
{=MIN(IF(B2:D2=B2,IF(A3:A6=A3,B3:D3)))}
{=MIN(IF(B2:D2=B2,B3:D3))}

1637781779586.png


Is there any solution or not possible through excel?
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Based on your screen capture, enter this into F3 and drag right / fill down.
Excel Formula:
=MINIFS($B3:$D3,$B$2:$D$2,B$2)
 
Upvote 0
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

Another possible solution
+Fluff 1.xlsm
ABCDEFGH
1
2Offer 1Offer 2Offer 3Offer 1Offer 2Offer 3
3a1525211500
4b1320100010
5c3523300230
6d571001
Main
Cell Formulas
RangeFormula
F3:H6F3=IF(MINIFS($B3:$D3,$B$2:$D$2,F$2)=MIN($B3:$D3),MIN($B3:$D3),0)
 
Upvote 0
Based on your screen capture, enter this into F3 and drag right / fill down.
Excel Formula:
=MINIFS($B3:$D3,$B$2:$D$2,B$2)
Hmm thank you, but it seems that there is some problem - #NAME?
Neither if I try to made it array formula... so do you have an idea what could it be?

1637785538069.png
 
Upvote 0
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

Another possible solution
+Fluff 1.xlsm
ABCDEFGH
1
2Offer 1Offer 2Offer 3Offer 1Offer 2Offer 3
3a1525211500
4b1320100010
5c3523300230
6d571001
Main
Cell Formulas
RangeFormula
F3:H6F3=IF(MINIFS($B3:$D3,$B$2:$D$2,F$2)=MIN($B3:$D3),MIN($B3:$D3),0)
Hi, thank you too.
Again, there is an error in the cell, so as I understand the problem is it form Excel version (mine is 2016, I update it, thank you for that too).

In this case is there a solution or only option is to update the Excel?
1637789022152.png
 
Upvote 0
Here's @Fluff's suggestion edited to work with 2016. Note that you will need to array confirm the formula for it to work.
Book1
ABCDEFGH
1
2Offer 1Offer 2Offer 3Offer 1Offer 2Offer 3
3a1525211500
4b1320100010
5c3523300230
6d571001
Sheet1
Cell Formulas
RangeFormula
F3:H6F3=IF(MIN(IF($B$2:$D$2=F$2,$B3:$D3))=MIN($B3:$D3),MIN($B3:$D3),0)
 
Upvote 0
Solution
Thanks for that, how about
+Fluff 1.xlsm
ABCDEFGH
1
2Offer 1Offer 2Offer 3Offer 1Offer 2Offer 3
3a1525211500
4b1320100010
5c3523300230
6d571001
Main
Cell Formulas
RangeFormula
F3:H6F3=IF(MIN(IF($B$2:$D$2=F$2,$B3:$D3))=MIN($B3:$D3),MIN($B3:$D3),0)
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
Thanks for that, how about
+Fluff 1.xlsm
ABCDEFGH
1
2Offer 1Offer 2Offer 3Offer 1Offer 2Offer 3
3a1525211500
4b1320100010
5c3523300230
6d571001
Main
Cell Formulas
RangeFormula
F3:H6F3=IF(MIN(IF($B$2:$D$2=F$2,$B3:$D3))=MIN($B3:$D3),MIN($B3:$D3),0)
Press CTRL+SHIFT+ENTER to enter array formulas.
Thanks to both of you, now everything is working perfect, just great!
 
Upvote 0

Forum statistics

Threads
1,214,588
Messages
6,120,409
Members
448,959
Latest member
camelliaCase

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