Subtotal using formula

mondrodeep

New Member
Joined
Nov 20, 2018
Messages
2
[TABLE="width: 446"]
<colgroup><col><col><col><col><col span="2"></colgroup><tbody>[TR]
[TD]Date[/TD]
[TD]Items - Nov'18[/TD]
[TD]Qnty[/TD]
[TD]Rate[/TD]
[TD]Amt.[/TD]
[TD]Subtotal[/TD]
[/TR]
[TR]
[TD]1.11.18[/TD]
[TD]Executive Non Veg Lunch[/TD]
[TD]2[/TD]
[TD]40[/TD]
[TD]80[/TD]
[TD="align: right"]80[/TD]
[/TR]
[TR]
[TD]2.11.18[/TD]
[TD]Chicken Biryani[/TD]
[TD]2[/TD]
[TD]95[/TD]
[TD]190[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]Chicken Bharta[/TD]
[TD]2[/TD]
[TD]45[/TD]
[TD]90[/TD]
[TD="align: right"]280[/TD]
[/TR]
[TR]
[TD]3.11.18[/TD]
[TD]Egg Fried Rice[/TD]
[TD]1[/TD]
[TD]36[/TD]
[TD]36[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]Chilly Chicken Boneless[/TD]
[TD]1[/TD]
[TD]45[/TD]
[TD]45[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]Toast with Butter + Omlet[/TD]
[TD]1[/TD]
[TD]20[/TD]
[TD]20[/TD]
[TD="align: right"]101[/TD]
[/TR]
[TR]
[TD]5.11.18[/TD]
[TD]Toast with Butter[/TD]
[TD]1[/TD]
[TD]20[/TD]
[TD]20[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]Executive Non Veg Lunch[/TD]
[TD]1[/TD]
[TD]40[/TD]
[TD]40[/TD]
[TD="align: right"]60[/TD]
[/TR]
[TR]
[TD]6.11.18[/TD]
[TD]Toast with Butter[/TD]
[TD]1[/TD]
[TD]20[/TD]
[TD]20[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]Special Non Veg Lunch[/TD]
[TD]3[/TD]
[TD]45[/TD]
[TD]135[/TD]
[TD="align: right"]155[/TD]
[/TR]
[TR]
[TD]9.11.18[/TD]
[TD]Chicken Biryani[/TD]
[TD]6[/TD]
[TD]95[/TD]
[TD]570[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]Chicken Pakora[/TD]
[TD]1[/TD]
[TD]45[/TD]
[TD]45[/TD]
[TD="align: right"]615[/TD]
[/TR]
[TR]
[TD]10.11.18[/TD]
[TD]Toast with Butter + Omlet[/TD]
[TD]1[/TD]
[TD]20[/TD]
[TD]20[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]Chicken Sandwich[/TD]
[TD]1[/TD]
[TD]20[/TD]
[TD]20[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]Egg Hakka Chow[/TD]
[TD]1[/TD]
[TD]32[/TD]
[TD]32[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]Chilly Chicken Boneless[/TD]
[TD]1[/TD]
[TD]45[/TD]
[TD]45[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]Egg Fried Rice[/TD]
[TD]1[/TD]
[TD]36[/TD]
[TD]36[/TD]
[TD="align: right"]153[/TD]
[/TR]
</tbody>[/TABLE]


I would like to do the above by using formula & not by Subtotal function (under Data menu).
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Hi & welcome to MrExcel
With a helper column you could use


Excel 2013/2016
ABCDEFG
1DateItems - Nov'18QntyRateAmt.
21.11.18Executive Non Veg Lunch240801.11.1880
32.11.18Chicken Biryani2951902.11.18
4Chicken Bharta245902.11.18280
53.11.18Egg Fried Rice136363.11.18
6Chilly Chicken Boneless145453.11.18
7Toast with Butter + Omlet120203.11.18101
85.11.18Toast with Butter120205.11.18
9Executive Non Veg Lunch140405.11.1860
106.11.18Toast with Butter120206.11.18
11Special Non Veg Lunch3451356.11.18155
129.11.18Chicken Biryani6955709.11.18
13Chicken Pakora145459.11.18615
1410.11.18Toast with Butter + Omlet1202010.11.18
15Chicken Sandwich1202010.11.18
16Egg Hakka Chow1323210.11.18
17Chilly Chicken Boneless1454510.11.18
18Egg Fried Rice1363610.11.18153
Dont
Cell Formulas
RangeFormula
F2=A2
F3=IF(A3="",F2,A3)
G2=IF(COUNTIF(F$2:F2,F2)=COUNTIF(F$2:F18,F2),SUMIF($F$2:$F$18,$F2,$E$2:$E$18),"")
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,246
Members
452,623
Latest member
cliftonhandyman

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