Finding the lowest cost dynamically

traveler84

New Member
Joined
Feb 17, 2020
Messages
12
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
On my spreadsheet, I have multiple addresses with vendor bids. The addresses might be slightly different such as an extra space or thoroughfare spelled (i.e. ST vs Street). So I was going to create a helper column that I will statically number for duplicated addresses. My list could be 10 addresses or could be 1000s. I'm trying to find a formula that can calculate the lowest cost in each group number for every address.

Here is a simplied version of the data: (could be 1 entry for an address or could be 10)
1683213393690.png


The output that I would like on another sheet would look like:
1683213429917.png


Where I am confused is how to keep running the formula to generate all the best options starting with 1 through the last number. In my mind, I am thinking of some kind of loop function that seeks all the remaining options until the last number. If the data was static, I am pretty confident I could figure it out but since the address lists could vary day to day, that's my challenge.

The SMALL function might work if I could figure out the loop till the last number and output each number. I am open to VBA which isn't my strong suit if that's what I need.

Thank you all so very much.
 
Using Fluff's formula as a starting point, I think this one should also work for you.

traveler84.xlsm
ABCDEFGHIJKLMNO
11123 ElmStatealw5001123 ElmStatealw500
21123 Elm streetStatebmx6001123 Elm stStatecny500
31123 Elm stStatecny5002100 Elm StreetStateepaa200
43999 ElmStatejuaf300
52100 Elm StreetStateepaa200
62100 Elm St.Statefqab600
7
83999 ElmStatehsad500
93999 Elm stStateitae600
103999 ElmStatejuaf300
Lowest (2)
Cell Formulas
RangeFormula
I1:O4I1=LET(a,A1:A1000,g,G1:G1000,u,UNIQUE(FILTER(a,a<>"")),FILTER(A1:G1000,IFNA(MATCH(a&"|"&g,u&"|"&MINIFS(g,a,u),0),0)))
Dynamic array formulas.
 
Upvote 0

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.

Forum statistics

Threads
1,215,086
Messages
6,123,040
Members
449,092
Latest member
ikke

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