Finding the name of the two People who have a tie as least cost

JDMAS

New Member
Joined
Aug 14, 2014
Messages
13
Hey everyone,

This is my issue. I have a project where I have to find who provided the minimum cost. When there are two people who tie for minimum cost, I have to show both people on a spreadsheet. Normally, I would just search for the number and manually write it in, but it is getting to the point where I have 60+ people providing costs going 2000 rows down!

I have tried to come up with a formula by using index and offsets, but I cant seem to find the right combination.

My layout on the spreadsheet looks like this:


1st least cost1st least cost name2nd least cost2nd least cost nameJakeJimAlMr. WhiteJessiAndiCarol
$1.00Al$1.00Al$44.00$11.00$1.00$2.00$87.00$1.00$45.00
#VALUE!
$10.00Jake$17.00Jim$10.00$17.00$65.00$58.00$46.00$59.00$77.00
$4.00Mr. White$10.00Carol$72.00$37.00$78.00$4.00$97.00$82.00$10.00
$6.00Jim$8.00Al$97.00$6.00$8.00$20.00$8.00$94.00$9.00
$2.00Mr. White$10.00Al$50.00$56.00$10.00$2.00$86.00$25.00$39.00
$20.00Jessi$40.00Mr. White$86.00$75.00$48.00$40.00$20.00$71.00$98.00
$24.00Mr. White$24.00Mr. White$74.00$34.00$74.00$24.00$45.00$24.00$24.00
$37.00Jake$37.00Jake$37.00$37.00$100.00$74.00$100.00$53.00$38.00

<tbody>
</tbody>


The #VALUE! is where I need to show who else provided the least cost.

The formula I wrote (which does not work) is: =INDEX($J$2:$P$11,1,OFFSET(J2,,MATCH(A3,J3:P3,0)))

I was trying to write a formula where it finds the first min cost, ignore it, and find the other min cost. I believe I am on the right track, but I cant seem to get it to work.

Any help would be greatly appreciated!!!
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
This seems to work if tie for first, but if a tie for second only finds 1st (see row 5).
Excel Workbook
ABCDEFGHIJKLM
11st least costName2nd least costNameJakeJimAlMr. WhiteJessiAndiCarol
21Al1Andi$44.00$11.00$1.00$2.00$87.00$1.00$45.00
310Jake17Jim$10.00$17.00$65.00$58.00$46.00$59.00$77.00
44Mr. White10Carol$72.00$37.00$78.00$4.00$97.00$82.00$10.00
56Jim8Al$97.00$6.00$8.00$20.00$8.00$94.00$9.00
62Mr. White10Al$50.00$56.00$10.00$2.00$86.00$25.00$39.00
720Jessi40Mr. White$86.00$75.00$48.00$40.00$20.00$71.00$98.00
824Mr. White24Andi$74.00$34.00$74.00$24.00$45.00$24.00$24.00
937Jake37Jim$37.00$37.00$100.00$74.00$100.00$53.00$38.00
Sheet
 
Upvote 0
You're welcome. Thanks for the feedback and welcome to the forum.
 
Upvote 0

Forum statistics

Threads
1,215,717
Messages
6,126,422
Members
449,314
Latest member
MrSabo83

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