Need to Return Lowest Price based on Criteria

BYates123

New Member
Joined
Jun 17, 2011
Messages
24
I have a list of states in the first column and a list of transporters respective to each price on the top row. I need to pull the lowest price for a given state (i.e. if the state matches the state listed in another sheet/cell). I also need to pull the transporter for said lowest price. Help?

StateF PRIJF LDWYF BGMEF MCETF TENHF ATQWF MTLAF CRDTF HUNAFLSF GTILF SYTPATSF SAMMF KCTNCRSTP&SV AMSA
AB $ 2.51 $ 2.65 $ 2.25 $ 2.10 $ 2.62 $ 3.00 $ 2.60$1.94 $ 2.10
BC $ 2.25 $ 2.65 $ 2.25 $ 2.10 $ 2.65 $ 3.00 $ 2.25$1.94 $ 2.10
MB $ 2.31 $ 2.65 $ 2.25 $ 2.25 $ 2.62 $ 2.50 $ 2.60$1.94 $ 2.25
NB $ 2.31 $ 2.65 $ 2.25 $ 2.25 $ 2.67 $ 2.50 $ 2.25
NL $ 2.31 $ 2.65 $ 2.35 $ 2.25 $ 3.53 $ 3.50 $ 2.25
NS $ 2.37 $ 2.85 $ 2.35 $ 2.25 $ 2.62 $ 2.80 $ 2.25
NT $ 2.51 $ 2.87 $ 2.35 $ 3.50 $ 4.25 $ 3.75
ON $ 2.31 $ 2.65 $ 2.25 $ 2.10 $ 1.91 $ 2.62 $ 2.30$1.96 $ 2.10
PE $ 2.41 $ 2.65 $ 2.35 $ 2.25 $ 2.66 $ 2.80 $ 2.25
QC $ 2.41 $ 2.65 $ 2.25 $ 2.10 $ 2.00 $ 2.66 $ 2.25$2.05 $ 2.10
SK $ 2.31 $ 2.65 $ 2.25 $ 2.40 $ 2.67 $ 2.95 $ 2.60$2.20 $ 2.50
YT $ 2.99 $ 3.15 $ 2.50 $ 2.25 $ 4.00 $ 2.25
AL $ 1.75 $ 1.36 $ 1.55 $ 1.75 $ 1.59$1.50 $ 1.40 $ 1.59 $ 1.45$1.28 $ 1.65 $ 1.50$1.501.231.3
AR $ 1.75 $ 1.43 $ 1.55 $ 1.70 $ 1.48$1.44 $ 1.50 $ 1.55 $ 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$ 1.93$1.74 $ 1.75 $ 1.74$1.66 $ 1.75 $ 1.90$1.901.6
WA $ 1.65 $ 1.47 $ 1.71 $ 1.65 $ 1.72$1.50 $ 1.60 $ 1.49 $ 1.65 $ 1.60$1.46 $ 1.40 $ 1.70$1.701.6
WI $ 1.50 $ 1.51 $ 1.52 $ 1.55 $ 1.50$1.45 $ 1.48 $ 1.40 $ 1.35$1.24 $ 1.40 $ 1.40$1.401.3
WV $ 1.85 $ 1.51 $ 1.61 $ 1.73 $ 1.66$1.50 $ 1.58 $ 1.50 $ 1.51$1.41 $ 1.55 $ 1.50$1.501.35
WY $ 2.15 $ 1.81 $ 1.78 $ 1.90 $ 1.95$1.85 $ 2.40 $ 1.85$1.59 $ 1.80 $ 1.80$1.801.75

<tbody>
</tbody>
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Your rates eg $2.15 are in text format - can you tolerate these being turned into numbers?
 
Upvote 0
Try something like:

=MIN(OFFSET($B$1:$S$1,MATCH(A70,$A$2:$A$67,0),0))

Where:
B1:S1 = your column headers
A70 = The state you're interested in and
A2:A67 = The states
 
Upvote 0
StateF PRIJF LDWYF BGMEF MCETF TENHF ATQWF MTLAF CRDTF HUNAsmallestCompanyhelper1No of identical low quotes
ABn/a2.512.652.25n/a2.1n/an/an/a2.1F ATQW-11
BCn/a2.252.652.25n/a2.1n/an/an/a2.1F ATQW-21
MBn/a2.312.652.25n/a2.25n/an/an/a2.25F MCET-32
NBn/a2.312.652.25n/a2.25n/an/an/a2.25F MCET-42

<colgroup><col span="11"><col><col span="2"></colgroup><tbody>
</tbody>

this approach shows you the lowest current quote, the company, and how many duplicate lows there are.
 
Upvote 0

Forum statistics

Threads
1,215,200
Messages
6,123,612
Members
449,109
Latest member
Sebas8956

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