Using min function where more that one of the same MIN value is in row

oblix

Board Regular
Joined
Mar 29, 2017
Messages
183
Office Version
  1. 2010
Platform
  1. Windows
I use a sheet to look up cheapest price and the match the company that has the cheapest price

Company Names in columns $L$7:$AE$7
below prices for each company (L10:AE10)

cheapest price in column j10 =MIN(L11:AE11)


in column i10 lookup company name for cheapest price =IF(J10=0," ",INDEX($L$7:$AE$7,MATCH(J10,L10:AE10,0)))

But how would I indicate too the user if two or more companies has the exact lowest price, and then show both companies in the cell for company with cheapest price?
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Excel 2010 has limited capability for constructing the text string. Here is a somewhat clunky approach using functions available in Excel 2010. If you are willing to settle for a vertical list of the cheapest places, then use the formula shown in the helper column, and drag it down until a blank appears (indicating the last matching place with the cheapest price has been listed). The challenge in Excel 2010 is operating on that list to present all of the places in one text string in cell I10...you'll see that I used a manual concatenation (you could also do something like =CONCATENATE(H10,", ",H11,", ",H12) ), but neither approach adapts to the length of the list.
Book1
HIJKLMN
7AcmeBob'sSinclair
8
9HelperCheapest PlacesCheapest
10AcmeAcme, Sinclair, 4.54.54.654.5
11Sinclair
12 
13
Sheet1
Cell Formulas
RangeFormula
I10I10=H10&", "&H11&", "&H12
J10J10=MIN((L10:AE10))
H10:H12H10=IFERROR(INDEX($L$7:$AE$7,,AGGREGATE(15,6,COLUMN($L$10:$AE$10)-COLUMN($K$10)/($L$10:$AE$10=$J$10),ROWS(H$10:H10))),"")
 
Upvote 0
Wow...thanks for all the effort
will try this in my worksheet
Thank you
 
Upvote 0
I just noticed an error
=IFERROR(INDEX($L$7:$AE$7,,AGGREGATE(15,6,COLUMN($L$10:$AE$10)-COLUMN($K$10)/($L$10:$AE$10=$J$10),ROWS(H$10:H10))),"")
should be
=IFERROR(INDEX($L$7:$AE$7,,AGGREGATE(15,6,(COLUMN($L$10:$AE$10)-COLUMN($K$10))/($L$10:$AE$10=$J$10),ROWS(H$10:H10))),"")
where I wrapped the entire numerator that uses the COLUMN function with parentheses.
 
Upvote 0
I have over 900 products directly under each other.
dont know how to make this work for each row (900)/product as this method needs more than one row per product.
any suggestions?
 
Upvote 0
Yes, if you want to list the cheapest places across columns in the same row, you could turn the list like this:
Book1
ABCDEFGHIJKLMNOP
7AcmeBob'sSinclairElwayStarling's
8
9Helper Columns for Cheapest PlacesCheapest
10AcmeSinclairElway  4.54.54.654.54.54.65
11Bob'sElway   4.484.634.484.514.484.8
12
Sheet1
Cell Formulas
RangeFormula
A10:E11A10=IFERROR(INDEX($L$7:$AE$7,,AGGREGATE(15,6,(COLUMN($L10:$AE10)-COLUMN($K10))/($L10:$AE10=$J10),COLUMNS($A10:A10))),"")
J10:J11J10=MIN((L10:AE10))
 
Upvote 0
Solution

Forum statistics

Threads
1,223,911
Messages
6,175,337
Members
452,637
Latest member
Ezio2866

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