Lookup

Johnboy28

Board Regular
Joined
Jun 22, 2013
Messages
198
Office Version
  1. 365
  2. 2019
  3. 2016
  4. 2013
  5. 2010
Platform
  1. Windows
Hi, Need a lookup that can match Week Price Number to product code? Example if week price number is "1" and product code is 12143 price would be $11.40. If week price number is "2" then price would be $9.00. Thank you

Week Price Number1123456
Product CodeDescriptionSales PriceSales PriceSales PriceSales PriceSales PriceSales Price
12143Pastry$11.40$9.00$8.20$5.00$8.00$8.50
12145Meat$9.00$8.00$8.15$7.00$5.00$7.50
12251Bread$9.20$8.50$6.50$6.25$6.10$6.80
12255Flour$9.00$7.50$7.00$6.50$6.25$5.80
12256Eggs$9.15$8.25$8.00$9.00$8.00$7.50
14902Butter$15.00$14.00$13.00$10.00$11.00$10.55
Week Price Number1
Price/kgProduct Code
$11.4012143
??12145
??12251
??12255
??12256
 

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
Try:

Book1
ABCDEFGH
1Week Price Number1123456
2Product CodeDescriptionSales PriceSales PriceSales PriceSales PriceSales PriceSales Price
312143Pastry$11.40$9.00$8.20$5.00$8.00$8.50
412145Meat$9.00$8.00$8.15$7.00$5.00$7.50
512251Bread$9.20$8.50$6.50$6.25$6.10$6.80
612255Flour$9.00$7.50$7.00$6.50$6.25$5.80
712256Eggs$9.15$8.25$8.00$9.00$8.00$7.50
814902Butter$15.00$14.00$13.00$10.00$11.00$10.55
9
10
11Week Price Number2
12Price/kgProduct Code
13$9.0012143
14$8.0012145
15$8.5012251
16$7.5012255
17$8.2512256
18$14.0014902
Sheet3
Cell Formulas
RangeFormula
A13:A18A13=INDEX($C$3:$H$8,MATCH($B13,$A$3:$A$8,0),MATCH($B$11,$C$1:$H$1,0))
 
Upvote 0
Try:

Book1
ABCDEFGH
1Week Price Number1123456
2Product CodeDescriptionSales PriceSales PriceSales PriceSales PriceSales PriceSales Price
312143Pastry$11.40$9.00$8.20$5.00$8.00$8.50
412145Meat$9.00$8.00$8.15$7.00$5.00$7.50
512251Bread$9.20$8.50$6.50$6.25$6.10$6.80
612255Flour$9.00$7.50$7.00$6.50$6.25$5.80
712256Eggs$9.15$8.25$8.00$9.00$8.00$7.50
814902Butter$15.00$14.00$13.00$10.00$11.00$10.55
9
10
11Week Price Number2
12Price/kgProduct Code
13$9.0012143
14$8.0012145
15$8.5012251
16$7.5012255
17$8.2512256
18$14.0014902
Sheet3
Cell Formulas
RangeFormula
A13:A18A13=INDEX($C$3:$H$8,MATCH($B13,$A$3:$A$8,0),MATCH($B$11,$C$1:$H$1,0))
Great - Thank you.
 
Upvote 0

Forum statistics

Threads
1,223,904
Messages
6,175,295
Members
452,633
Latest member
DougMo

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