Index Match Unique Formula

Lrodriguez

New Member
Joined
Dec 16, 2020
Messages
4
Office Version
  1. 365
Platform
  1. Windows
Good Morning,

I need a Formula to find the best price based on the quantity chosen by the end user, which then would be chosen by the vendor and the imprint charges. the Imprint color will be a Drop down list, but the Quantity will be based on the End users desire.

so essentially the end user will say i want 250 shirts from vendor 1 with a 1 color imprint (drop down list) then it will put the price in as $1.50

Minimum QuantityVendor1 Color Imprint2 Color Imprint
12Vendor 1$2.25$3.50
25Vendor 1$2.00$2.95
50Vendor 1$1.85$2.50
75Vendor 1$1.85$2.25
100Vendor 1$1.60$2.25
200Vendor 1$1.50$2.00
12Vendor 2$4.00$5.15
25Vendor 2$3.40$4.25
50Vendor 2$3.05$3.75
75Vendor 2$3.05$3.40
100Vendor 2$2.85$3.40
200Vendor 2$2.85$3.40
12Vendor 3$3.29$4.95
25Vendor 3$2.75$3.95
50Vendor 3$2.40$2.75
75Vendor 3$2.00$2.40
100Vendor 3$1.90$2.40
200Vendor 3$1.75$2.25
12Vendor 4$1.40$1.75
25Vendor 4$1.50$1.50
50Vendor 4$1.25$1.50
75Vendor 4$1.25$1.50
100Vendor 4$1.25$1.35
200Vendor 4$1.10$1.35
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
If your table Range is A2:D25, then your first Criteria at Cell G2 ("Vendor 1" or ...) & your Second Criteria at Cell H2 ("1 Color Imprint" or "2 Color Imprint")
Then your Header for "1 Color Imprint" is C1
you can use this formula:
Excel Formula:
=VLOOKUP(250, IF(F2="Vendor 1",$A$2:$D$7,IF(F2="Vendor 2",$A$8:$D$13,IF(F2="Vendor 3",$A$14:$D$19,$A$20:$D$25))),IF(G2=C1,3,4),TRUE)
 
Upvote 0
Another option
+Fluff v2.xlsm
ABCDEFGH
1Minimum QuantityVendor1 Color Imprint2 Color ImprintQty
212Vendor 12.253.5VendorVendor 1250
325Vendor 122.95Colours1 Color Imprint1.5
450Vendor 11.852.5
575Vendor 11.852.25
6100Vendor 11.62.25
7200Vendor 11.52
812Vendor 245.15
925Vendor 23.44.25
1050Vendor 23.053.75
1175Vendor 23.053.4
12100Vendor 22.853.4
13200Vendor 22.853.4
1412Vendor 33.294.95
1525Vendor 32.753.95
1650Vendor 32.42.75
1775Vendor 322.4
18100Vendor 31.92.4
19200Vendor 31.752.25
2012Vendor 41.41.75
2125Vendor 41.51.5
2250Vendor 41.251.5
2375Vendor 41.251.5
24100Vendor 41.251.35
25200Vendor 41.11.35
Master
Cell Formulas
RangeFormula
H3H3=INDEX(FILTER(SORT(FILTER(A2:D25,(B2:B25=G2)*(A2:A25<=H2)),1,-1),COUNTIF(G3,A1:D1)),1)
 
Upvote 0
Solution
On the second option, when i enter that formula it gives me a #CALC! error.
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0
A little late, but another option:

=AGGREGATE(15,6,C2:D25/(B2:B25=G2)/(A2:A25<=H2)/(C1:D1=G3),1)
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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