sum formula

aarti_rto

New Member
Joined
Nov 29, 2019
Messages
49
Office Version
  1. 2016
Platform
  1. Windows
  2. Web
Hello Experts,

i have below data
Part NumDateIssue Qty
ABC
01-01-2024​
7962​
XYZ
02-01-2024​
2938​
ABC
03-01-2024​
430​
ABC
04-01-2024​
1832​
ABC
05-01-2024​
9413​
ABC
06-01-2024​
9759​
XYZ
07-01-2024​
8676​
XYZ
08-01-2024​
147​
XYZ
09-01-2024​
5097​
XYZ
10-01-2024​
9240​
XYZ
11-01-2024​
5261​
ABC
12-01-2024​
401​
XYZ
13-01-2024​
6336​
ABC
14-01-2024​
9302​
ABC
15-01-2024​
680​
ABC
16-01-2024​
2352​
XYZ
17-01-2024​
1650​
XYZ
18-01-2024​
182​
and need below output in another sheet

Week Num
1​
2​
3​
Part Number
ABC
29396​
401​
12334​
Xyz
2938​
34757​
1832​
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Hi @aarti_rto

A pivot table would quickly do the job, but there's a problem: how do you define a week? This is a common problem. Do you start your first week from the 1st of January? Or does it start on the Monday of the week which has most of the first 7 days in it? Or do you count weeks starting on Sundays? It would be helpful if you added another column titled "Week No" to your data and either calculated or entered what you think the week number should be. Then producing a pivot table from your data would be so easy. The "Week No" would go in the columns, the "Part Num" in the rows, and the "Issue Qty" would be the value to be summed.
 
Upvote 0
Could you add a Week Num column to the data and then use a Pivot Table?

24 01 23.xlsm
ABCDEFGHIJK
1Part NumDateIssue QtyWeek NumSum of Issue QtyWeek Num
2ABC1/01/202479621Part Num123Grand Total
3XYZ2/01/202429381ABC293964011233442131
4ABC3/01/20244301XYZ293834757183239527
5ABC4/01/202418321Grand Total32334351581416681658
6ABC5/01/202494131
7ABC6/01/202497591
8XYZ7/01/202486762
9XYZ8/01/20241472
10XYZ9/01/202450972
11XYZ10/01/202492402
12XYZ11/01/202452612
13ABC12/01/20244012
14XYZ13/01/202463362
15ABC14/01/202493023
16ABC15/01/20246803
17ABC16/01/202423523
18XYZ17/01/202416503
19XYZ18/01/20241823
PT by week
Cell Formulas
RangeFormula
D2:D19D2=WEEKNUM(B2)
 
Upvote 0
Solution
hello,

thank to reply but , i can not add Weeknum Formula , my data is huge
and i need this summary to xtract in different workbook which has other formulas and data also
 
Upvote 0
, i can not add Weeknum Formula , my data is huge
Could be all the more reason to use a helper column to keep other formulas simpler & less burdensome on resources?

i need this summary to xtract in different workbook
need below output in another sheet
Is it in another workbook or another worksheet in the same workbook?


If the data is huge any formula solution is likely to make your formula calculations for this sluggish. Would a vba solution be an option?

BTW, you did not address the other questions asked by @CephasOz
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,191
Members
452,616
Latest member
intern444

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