Looking for the purchase price based on the purchase quantity

Vegas01

New Member
Joined
Jun 15, 2021
Messages
43
Office Version
  1. 2019
Platform
  1. Windows
Morning everyone

I am having problem with this one.

I am trying to compare pricing on an invoice to the price list.

On the invoice I have the Item Code Column A and purchase quantity Column C and the Invoice Price in Column G

On the price list there are a number of prices for a product, the price charged is determined by the quantity purchased - on the price list I have the Item Code Column A, the Purchase quantity in Column D and the Price to be charged in Column C See tables below :


So I need to look up the Item Code on the Price list and return the Sale Price for the quantity that has been purchased - for the example below I need to return $7.22

I hope this makes sense. Thanks in advance

Invoice Details
Product CodeProductInvoice QtyDocument TypeInvoice DateInvoice Wholesale PriceInvoice Net Price
10033333Product A6Invoice202307247.955.85




Price List
Material IDMaterial DescriptionItem Best Price (per single)Item Best Price ScaleMOQState Based Price per single
10033333Product A$ 8.0211$ 8.18
10033333Product A$ 7.2231$ 8.18
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
For the example, why should return $7.22? Can you clarify it?
 
Upvote 0
Try this?
Book20
ABCDEFGHI
1Invoice Details
2Product CodeProductInvoice QtyDocument TypeInvoice DateInvoice Wholesale PriceInvoice Net Price
310033333Product A6Invoice202307247.955.857.22
4
5Price List
6Material IDMaterial DescriptionItem Best Price (per single)Item Best Price ScaleMOQState Based Price per single
710033333Product A$8.0211$8.18
810033333Product A$7.2231$8.18
Sheet1
Cell Formulas
RangeFormula
I3I3=INDEX(C7:C8,MATCH(1,(A7:A8=A3)*(D7:D8=MAX(IF((A7:A8=A3)*(D7:D8<C3),D7:D8,0))),0))
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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