Match to min value rows and columns

ldarley

Board Regular
Joined
Apr 10, 2012
Messages
106
Office Version
  1. 2019
  2. 2016
Hi,

I'm stuck with a formula, I have my data in a grid as follows:

ReferencePlace 1Place 2Place 3
Postcode 11.1120.0130.123
Postcode 22.3211.1321.532
Postcode 31.3931.9322.392

I need to match to the minimum value based on the postcode criteria. So in another worksheet I have my data in a column with all the postcodes in it, lets call it column A and in column B I then want to have the formula that will match the corresponding row value from column A to the minimum distance value associated with that value. I've index(matched) - the easy bit, to the correct row associated with the postcode but then once I'm there how to I find column that points to the minimum value?

Any help is as always appreciated!
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Try this

Book1
ABCDEFGHI
1ReferencePlace 1Place 2Place 3Min ValuePlace
2Postcode 11.1120.0130.1230.013Place 2Postcode 1Place 2
3Postcode 22.3211.1321.5321.132Place 2Postcode 2Place 2
4Postcode 31.3931.9322.3921.393Place 1Postcode 3Place 1
Sheet1
Cell Formulas
RangeFormula
E2:E4E2=MIN(B2:D2)
F2:F4F2=INDEX($B$1:$D$1,MATCH(E2,$B2:$D2,0))
I2:I4I2=VLOOKUP(H2,A:F,6,0)
 
Upvote 0
Solution
Brilliant thanks Earthworm I was trying to think how to do it all in one formula and should have just thought to break it up like that, that's perfect thank you!!
 
Upvote 0

Forum statistics

Threads
1,214,927
Messages
6,122,309
Members
449,080
Latest member
jmsotelo

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