Min of non-consecutive range with criteria

bloppers

New Member
Joined
May 24, 2017
Messages
8
Hi Guys,

I've tried searching for a solution but couldn't come up with anything that was suitable.

Basically, I want to try to find the min price of each item bid by each vendor. This I can do easily using excel formulas but the problem comes up when I want to find the min price of only vendors on the vendor list.

Small snapshot:

[TABLE="width: 654"]
<colgroup><col><col><col span="2"><col><col><col><col><col><col></colgroup><tbody>[TR]
[TD] [/TD]
[TD] [/TD]
[TD]AVL[/TD]
[TD]non AVL[/TD]
[TD][/TD]
[TD]Bidder A[/TD]
[TD][/TD]
[TD]Bidder B[/TD]
[TD][/TD]
[TD]Bidder C[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]Quantity[/TD]
[TD]Min Price[/TD]
[TD]Min Price[/TD]
[TD]Unit Price[/TD]
[TD]Total Price[/TD]
[TD]Unit Price[/TD]
[TD]Total Price[/TD]
[TD]Unit Price[/TD]
[TD]Total Price[/TD]
[/TR]
[TR]
[TD]Item 1[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]180[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]150[/TD]
[TD="align: right"]150[/TD]
[TD="align: right"]180[/TD]
[TD="align: right"]180[/TD]
[/TR]
[TR]
[TD]Item 2[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]180[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]150[/TD]
[TD="align: right"]150[/TD]
[TD="align: right"]180[/TD]
[TD="align: right"]180[/TD]
[/TR]
[TR]
[TD]Item 3[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]180[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]150[/TD]
[TD="align: right"]150[/TD]
[TD="align: right"]180[/TD]
[TD="align: right"]180[/TD]
[/TR]
[TR]
[TD]Item 4[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]180[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]150[/TD]
[TD="align: right"]150[/TD]
[TD="align: right"]180[/TD]
[TD="align: right"]180[/TD]
[/TR]
[TR]
[TD]AVL[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD][/TD]
[TD]No[/TD]
[TD][/TD]
[TD]No[/TD]
[TD][/TD]
[TD]Yes[/TD]
[/TR]
</tbody>[/TABLE]


I'm not sure what's the best way to go about getting what I need (formula/VBA).

Please advice!

Thanks!
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
I only got the first part without criteria.

=IFERROR(SMALL(item1,1+FREQUENCY(item1,0)),"N/A")

It lets me select the lowest bidder excluding 0.

Control+shift+enter, not just enter:

=IFERROR(SMALL(IF(ISNUMBER(MATCH(Vendors,VendorList,0)),Item1),INDEX(FREQUENCY(IF(ISNUMBER(MATCH(Vendors,VendorList,0)),Item1),0),1)+1),"N/A")

where Vendors is the range corresponding to Item1 and VendorList is a range housing the vendors of interest.
 
Upvote 0

Forum statistics

Threads
1,223,246
Messages
6,170,999
Members
452,373
Latest member
TimReeks

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