Looking up a value in columns based on two criteria

MiguelS

New Member
Joined
Apr 8, 2016
Messages
18
I have this sheet that has data in columns, qty break with price break. I want to pull the correct price (N2,P2,R2,T2,V2) based on teh Qty Due (M2) in my PODetails Sheet cOLUMN (BL)

If A2 matches in PO Details, give me the price in which the qty falls into.

For the future, I try to work on these, but I dont think I start the process correctly. How do you tackle these type of equations?

Thanks for any help.

AMNOPQRSTUV
1Part_RevBrk1DUP Brk1Brk2DUP Brk2Brk3DUP Brk3Brk4DUP Brk4Brk5DUP Brk5
2853-282223-001_A1344332052421022715217
3853-282263-002_A1233321751711016115154

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
QuotedLam



ADEGLMRXYZBL
1Material_Part RevPO NumberPO LineMaterialPart RevQty DueUnit PriceSupplier Price*Qty Due 1*Supplier Due Date 1*Qprice
2853-267465-001_A450149764020853-267465-001A1.0047.59853-267465-001_A
304-436814-00_A45014977091004-436814-00A3.003456.6804-436814-00_A
404-436814-00_A45014977092004-436814-00A1.003456.6804-436814-00_A
503-450833-00_145014977093003-450833-0012.00300.18#N/A

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
PO Details
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
I cannot understand what you want. All I see is that price goes down with increasing quantity purchased.

853-282223-001_A does not occur in the lower table ?
 
Upvote 0
col D
itemquantityband1band2band3
456-0014000row 7123-456150140130
456-002230215210
456-001375350340
789-003975900850
itemband1band2band3FINDERFINDER2FINDER locates the column number that the quantity
1123-4561500250040003band3slots in for EVERY item
2456-0022000275050002band2
3456-0012500500060001band1FINDER2 locates the band for every item
4789-0032900325070002band2
the 3 under FINDER is obtained by
=MATCH($D$7,D21:F21,1)
band3 under FINDER2 is obtained by
so we find the band from the lower table=OFFSET($C21,-B21,G21)
band1formula
=OFFSET(OFFSET($C$20,MATCH(C7,$C$21:$C$24,0),0),0,5)
so 4000 is not a big enough quantity to go to band 2

<colgroup><col width="64" span="16" style="width:48pt"> </colgroup><tbody>
</tbody>
 
Upvote 0
For some reason I cannot find the EDIT feature. But you are right, I should have made 853-267465-001_A on both tables. Replace 853-28223-001_1 with 853-267465-001_A on QuoteLam table. The value is there, but some where down the table on QuoteLam.

I want to take PO_Details A2 and search the QuoteLam array (table) (Column A). Once I locate that Row in quotedLam, I want to pull the correct Pricing based on the qty. For example, If the PO Details Column M2 is 1, I will put 344 from QuotedLam. If PO Details Column M2 is 4, I would pull 320 because Brk2 is 3 and Brk 3 is 5, so Qty 4 falls in between. If my QTY was 5, 6, 7, 8, 9 I would pull 242.
 
Upvote 0
Seems like I got the correct Price Break now, maybe there is asimplier way to do this? I just need to be able to pull the correct row now to pull the correct data.

Y
2217

<colgroup><col style="width: 25pxpx"><col></colgroup><thead>
</thead><tbody>
</tbody>
PO Details

Worksheet Formulas
CellFormula
Y2=IF(M2<QuotedLam!O2, QuotedLam!N2, IF(M2<QuotedLam!Q2, QuotedLam!P2, IF(M2<QuotedLam!S2, QuotedLam!R2, IF(M2<QuotedLam!U2, QuotedLam!T2, IF(M2>=QuotedLam!U2,QuotedLam!V2,)))))

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,214,914
Messages
6,122,211
Members
449,074
Latest member
cancansova

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