Ranking prices at same facilities and identifying minimums

nirvehex

Well-known Member
Joined
Jul 27, 2011
Messages
503
Office Version
  1. 365
Platform
  1. Windows
Hi All,

I'm a bit stumped on how to setup a calculation in Excel.

In column A I have a list of Facility ID's and in column K I have prices. What I am trying to do is create a formula in column O that outputs "Minimum" if in column K it is the lowest price for the facility ID in column A. Example Table below. If there is a tie in price, I'd like to only identify one of them as "minimum."

Facility IDPriceOutput
FAC00000151.96Minimum (reason is only one price for this facility)
FAC0000021.0392Minimum (reason is lowest price for this facility)
FAC0000024.33
FAC000004.5196Minimum (reason is lowest price for this facility - only put minimum on one line if there is a tie)
FAC000004.5196
FAC0000042.165
FAC0000054.33
FAC000010.5196Minimum (reason is lowest price for this facility)

Is there some sort of ranking/array function I can use?

Thanks!

-M
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
What version of Excel are you using?

I suggest that you update your Account details (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’)
 
Upvote 0
Thanks Fluff, Happy New Year to ya! I just updated my Excel version by doing what you suggested. I'm on Office 365 ProPlus.
 
Upvote 0
Thanks for that, how about
Excel Formula:
=IF(AND(COUNTIFS(A$2:A2,A2,K$2:K2,K2)=1,MINIFS(K:K,A:A,A2)=K2),"Minimum","")
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,947
Messages
6,122,413
Members
449,082
Latest member
tish101

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