List price from data

Zubair

Active Member
Joined
Jul 4, 2009
Messages
304
Office Version
  1. 2016
Platform
  1. Windows
Hi experts,

I am unable to bring List price & Cost in the tab result from the tab data contained 3 different criteria please help to bring formula to apply in B4 & B5


Result

Year​
2021​
Price change​
Feb​
SKU​
SetJet 50 CD 1 ltr​
List price​
700​
Cost​
423​


Data
Year​
Month​
Customer Name​
SKU​
Volume​
Invoice​
COGS Val​
GM Value​
List Price​
Unit Cost​
2021​
Jan​
Customer 1​
SetJet 50 CD 1 ltr​
6,887​
3,202,455​
2,231,196​
971,259​
465.00​
323.97​
2021​
Jan​
Customer 1​
SetPlus 10W40 CF4 1 ltr​
679​
316,075​
206,219​
109,856​
475.00​
303.71​
2021​
Jan​
Customer 1​
SetUltra 5W30 CH4 1 ltr​
428​
280,340​
140,064​
140,276​
655.00​
327.25​
2021​
Jan​
Customer 2​
SetJet 50 CD Bulk​
4,000​
768,000​
1,038,471​
(270,471)​
400.00​
259.62​
2021​
Jan​
Customer 2​
SetJet 50 CD 1 ltr​
913​
203,782​
295,787​
(92,005)​
465.00​
323.97​
2021​
Jan​
Customer 2​
SetPlus 10W40 CF4 1 ltr​
81​
18,468​
24,600​
(6,132)​
475.00​
303.71​
2021​
Jan​
Customer 2​
SetUltra 5W30 CH4 1 ltr​
52​
15,668​
17,017​
(1,350)​
655.00​
327.25​
2021​
Feb​
Customer 2​
SetJet 50 CD 1 ltr​
1,020​
398,000​
302,000​
96,000​
700.00​
423.00​
2021​
Feb​
Customer 2​
SetPlus 10W40 CF4 1 ltr​
120​
39,555​
20,120​
19,435​
530.00​
352.00​
2021​
Feb​
Customer 2​
SetUltra 5W30 CH4 1 ltr​
588​
195,000​
152,511​
42,489​
720.00​
351.00​
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Hi Zubair,

If this is your Data
Zubair.xlsx
ABCDEFGHIJ
1YearMonthCustomer NameSKUVolumeInvoiceCOGS ValGM ValueList PriceUnit Cost
22021JanCustomer 1SetJet 50 CD 1 ltr6,8873,202,4552,231,196971,259465.00323.97
32021JanCustomer 1SetPlus 10W40 CF4 1 ltr679316,075206,219109,856475.00303.71
42021JanCustomer 1SetUltra 5W30 CH4 1 ltr428280,340140,064140,276655.00327.25
52021JanCustomer 2SetJet 50 CD Bulk4,000768,0001,038,471(270,471)400.00259.62
62021JanCustomer 2SetJet 50 CD 1 ltr913203,782295,787(92,005)465.00323.97
72021JanCustomer 2SetPlus 10W40 CF4 1 ltr8118,46824,600(6,132)475.00303.71
82021JanCustomer 2SetUltra 5W30 CH4 1 ltr5215,66817,017(1,350)655.00327.25
92021FebCustomer 2SetJet 50 CD 1 ltr1,020398,000302,00096,000700.00423.00
102021FebCustomer 2SetPlus 10W40 CF4 1 ltr12039,55520,12019,435530.00352.00
112021FebCustomer 2SetUltra 5W30 CH4 1 ltr588195,000152,51142,489720.00351.00
12
Data


Then this should retrieve the matching data or return #N/A if no match is found.

Zubair.xlsx
AB
1Year2021
2Price changeFeb
3SKUSetJet 50 CD 1 ltr
4List price700.00
5Cost423.00
Result
Cell Formulas
RangeFormula
B4B4=INDEX(Data!$I$2:$I$9999,MATCH(1,INDEX(($B$1=Data!$A$2:$A$9999)*($B$2=Data!$B$2:$B$9999)*($B$3=Data!$D$2:$D$9999),0,1),0))
B5B5=INDEX(Data!$J$2:$J$9999,MATCH(1,INDEX(($B$1=Data!$A$2:$A$9999)*($B$2=Data!$B$2:$B$9999)*($B$3=Data!$D$2:$D$9999),0,1),0))
 
Upvote 0
Solution
How about
+Fluff 1.xlsm
ABCDEFGHIJ
1YearMonthCustomer NameSKUVolumeInvoiceCOGS ValGM ValueList PriceUnit Cost
22021JanCustomer 1SetJet 50 CD 1 ltr6,8873,202,4552,231,196971,259465323.97
32021JanCustomer 1SetPlus 10W40 CF4 1 ltr679316,075206,219109,856475303.71
42021JanCustomer 1SetUltra 5W30 CH4 1 ltr428280,340140,064140,276655327.25
52021JanCustomer 2SetJet 50 CD Bulk4,000768,0001,038,471-270,471400259.62
62021JanCustomer 2SetJet 50 CD 1 ltr913203,782295,787-92,005465323.97
72021JanCustomer 2SetPlus 10W40 CF4 1 ltr8118,46824,600-6,132475303.71
82021JanCustomer 2SetUltra 5W30 CH4 1 ltr5215,66817,017-1,350655327.25
92021FebCustomer 2SetJet 50 CD 1 ltr1,020398,000302,00096,000700423
102021FebCustomer 2SetPlus 10W40 CF4 1 ltr12039,55520,12019,435530352
112021FebCustomer 2SetUltra 5W30 CH4 1 ltr588195,000152,51142,489720351
Data


+Fluff 1.xlsm
AB
1Year2021
2Price changeFeb
3SKUSetJet 50 CD 1 ltr
4List price700
5Unit Cost423
Result
Cell Formulas
RangeFormula
B4:B5B4=INDEX(Data!$E$2:$J$11,MATCH($B$1&"|"&$B$2&"|"&$B$3,Data!$A$2:$A$11&"|"&Data!$B$2:$B$11&"|"&Data!$D$2:$D$11,0),MATCH(A4,Data!$E$1:$J$1,0))
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,465
Messages
6,124,977
Members
449,200
Latest member
Jamil ahmed

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