How to add weekly values from Monday to Sunday

atiq124

New Member
Joined
May 9, 2014
Messages
27
The required results from the below data are:

Required Result
Week 25 = Batches 25
Week 26 = Batches 40


Data

Data - Day No. of Batches
16/06/14 Mon5
17/06/14 Tue6
18/06/14 Wed9
19/06/14 Thu2
20/06/14 Fri3
21/06/14 Sat
22/06/14 Sun
23/06/14 Mon5
24/06/14 Tue9
25/06/14 Wed
26/06/14 Thu10
27/06/14 Fri7
28/06/14 Sat5
29/06/14 Sun4

<colgroup><col><col><col></colgroup><tbody>
</tbody>

<colgroup><col span="2"><col></colgroup><tbody>
</tbody>
 
yes, that's right.
I have previously used a formula like below but can not get it working now:

=sumif(A2:A100,"="&,C2,B2:B100)

it used to sum all the values for date mentioned in C2.
A2:A100 = All dates
B2:B100 = values for each date
C2 = manually entered date and formula cell returned sum of all values in that date.
 
Last edited:
Upvote 0

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
yes, that's right.
I have previously used a formula like below but can not get it working now:

=sumif(A2:A100,"="&,C2,B2:B100)

it used to sum all the values for date mentioned in C2.
A2:A100 = All dates
B2:B100 = values for each date
C2 = manually entered date and formula cell returned sum of all values in that date.
It looks like you used different columns for you new question. I will assume the columns you specified in Message #9 (Columns A and C). Given that, put this array-entered** formula in cell D2 and copy it down...

=IFERROR(SUM(C2:OFFSET(A2,IF(A2="","",IFERROR(ROW()+MATCH(1,--(LEN(A3:A$1000)>0),0),1000)-ROW())-1,2)),"")

**Commit this formula using CTRL+SHIFT+ENTER and not just Enter by itself

NOTE: Change the two 1000's highlighted in red to a row number guaranteed to be larger than any row you ever expect to have data in.
 
Upvote 0

Forum statistics

Threads
1,215,622
Messages
6,125,886
Members
449,269
Latest member
GBCOACW

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