LookUp or?

kandila888

New Member
Joined
Jun 25, 2018
Messages
1
HI,

I am trying to make a summation of how many items had been sold in a month but the items have different prices. Table format is below. I combined all transaction for 2017 and made a subtotal for each of the month.

[TABLE="width: 500"]
<tbody>[TR]
[TD]year[/TD]
[TD]Month[/TD]
[TD]Date[/TD]
[TD]Customer[/TD]
[TD]Product[/TD]
[TD]Quantity[/TD]
[TD]Given Price per Unit [/TD]
[TD]Subtotal
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2017[/TD]
[TD]Jan[/TD]
[TD]1-1-2017[/TD]
[TD]a[/TD]
[TD]ABC[/TD]
[TD]5[/TD]
[TD]20[/TD]
[TD]=Quantity*PriceperUnit[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2017[/TD]
[TD]Jan[/TD]
[TD]23-1-2017[/TD]
[TD]d[/TD]
[TD]fsdf[/TD]
[TD]7[/TD]
[TD]215[/TD]
[TD]=Quantity*PriceperUnit[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2017[/TD]
[TD]Jan[/TD]
[TD]30-1-2017[/TD]
[TD]d[/TD]
[TD]ABC[/TD]
[TD]9[/TD]
[TD]17
[/TD]
[TD][TABLE="width: 500"]
<tbody>[TR]
[TD]=Quantity*PriceperUnit

[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Total Jan[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2017[/TD]
[TD]Feb[/TD]
[TD]2-2-2017[/TD]
[TD]g[/TD]
[TD]DFG[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

from the above table I want to know what formula I can use to know how many ABC had been sold and how much is the amount. and what if there the price per unit is fixed but there is a discount which formula should I use to fill another table as below?


[TABLE="width: 500"]
<tbody>[TR]
[TD]Products[/TD]
[TD]ABC[/TD]
[TD]Sales$[/TD]
[TD]SDF[/TD]
[TD]Sales $[/TD]
[TD]DFG[/TD]
[TD]Sales$[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Month[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Jan[/TD]
[TD]14[/TD]
[TD]253[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Feb[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]March[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]


And if unit price is fixed but different discounts. --- so total of the discount for example product ABC needs to be summed up.

[TABLE="width: 500"]
<tbody>[TR]
[TD]Product[/TD]
[TD]ABC[/TD]
[TD]Quantity[/TD]
[TD]Subtotal[/TD]
[TD]Less Discount[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Jan[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Feb[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]March[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]to Dec down[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]


thank you for the help.
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Hi,

Your discount question can't be answered without a clear statement of what you're using as a gross price. You're only mentioning Price given.


Book1
ABCDEFGHIJKLMNOP
1yearMonthDateCustomerProductQuantityGiven Price per UnitSubtotalProductsABCSales$SDFSales $DFGSales$
22017Jan1-1-2017aABC520100Month
32017Jan23-1-2017dSDF72151505Jan142537150500
42017Jan30-1-2017dABC917153Feb000071505
5March
62017Feb2-2-2017gDFG72151505
Sheet1
Cell Formulas
RangeFormula
K3=SUMIFS($F$2:$F$6,$E$2:$E$6,K$1,$B$2:$B$6,$J3)
L3=SUMIFS($H$2:$H$6,$E$2:$E$6,K$1,$B$2:$B$6,$J3)
M3=SUMIFS($F$2:$F$6,$E$2:$E$6,M$1,$B$2:$B$6,$J3)
N3=SUMIFS($H$2:$H$6,$E$2:$E$6,M$1,$B$2:$B$6,$J3)
O3=SUMIFS($F$2:$F$6,$E$2:$E$6,O$1,$B$2:$B$6,$J3)
P3=SUMIFS($H$2:$H$6,$E$2:$E$6,O$1,$B$2:$B$6,$J3)
 
Upvote 0

Forum statistics

Threads
1,224,824
Messages
6,181,186
Members
453,020
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