If Month = today and date = monday, sumproduct

charliew

Board Regular
Joined
Feb 20, 2018
Messages
68
Office Version
  1. 365
Platform
  1. Windows
So i have a list of dates and i have been asked to do a running count per month of the amount of dates on each day of the week.

Ive tried sumproduct anf countifs and i cant get any to work

I have a helper column that says what day of the that date is on, to try and keep my formulas simple and keep the size down...and i also have a helper coloumn for whwat month that dae is on for a different formula but cant get it to do what i want!

Please help!

Thank you!!!!
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop

Excel 2010
ABCD
1Criteria
2Month4Monday2
3120
4
5DateAmount
6Mon 05-Mar-1850
7Mon 09-Apr-1855
8Tue 10-Apr-1860
9Mon 16-Apr-1865
10Tue 17-Apr-1870
11Wed 18-Apr-1875
12
6c
Cell Formulas
RangeFormula
D3=SUMPRODUCT(--(MONTH(A6:A11)=B2),--(WEEKDAY(A6:A11)=D2),(C6:C11))
 
Upvote 0
Excel 2010
ABCD
1Criteria
2Month4Monday2
3120
4
5DateAmount
6Mon 05-Mar-1850
7Mon 09-Apr-1855
8Tue 10-Apr-1860
9Mon 16-Apr-1865
10Tue 17-Apr-1870
11Wed 18-Apr-1875
12

<colgroup><col style="width: 25pxpx"><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
6c

Worksheet Formulas
CellFormula
D3=SUMPRODUCT(--(MONTH(A6:A11)=B2),--(WEEKDAY(A6:A11)=D2),(C6:C11))

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>


Thank you for this, but what i really want is for the formula to tell me how many dates i have that fall on a specific day of the week so kind of

if a6:a11 = b4 AND a6:a11 = d2 then count so ive got a table for April that looks like :

Monday2
Tuesday2
Wednesday
1
Thursday0
Friday0

<tbody>
</tbody>

(based on your data above)

thanks for your time!
 
Upvote 0
You could just remove the part of the suggested formula that you do not want.
Review the formula with Excel's Formula Evaluate.

=SUMPRODUCT(--(MONTH(A6:A11)=B2),--(WEEKDAY(A6:A11)=D2))
 
Upvote 0

Excel 2010
ABCD
1CriteriaMonApr2018
2Month
3222
4
6c
Cell Formulas
RangeFormula
B3=SUMPRODUCT(--(MONTH(A6:A11)=4),--(WEEKDAY(A6:A11)=2))
C3=SUMPRODUCT(--(TEXT(A6:A11,"dddmmmyyy")="MonApr2018"))
D3=SUMPRODUCT(--(TEXT(A6:A11,"dddmmmyyy")=B1&C1&D1))
 
Upvote 0
Hi there,

I appreciate all your help and time on this but none of the are working. i'm either getting a #Value ! error or a #Name ! error. i think ill just omit this from my spreadsheet for now!!
 
Upvote 0

Book1
ABCD
101/01/2018Monday5
202/01/2018Tuesday5
303/01/2018Wednesday5
404/01/2018Thursday4
505/01/2018Friday4
606/01/2018Saturday4
707/01/2018Sunday4
808/01/2018
909/01/2018
1010/01/2018
1111/01/2018
1212/01/2018
1313/01/2018
1414/01/2018
1515/01/2018
1616/01/2018
1717/01/2018
1818/01/2018
1919/01/2018
2020/01/2018
2121/01/2018
2222/01/2018
2323/01/2018
2424/01/2018
2525/01/2018
2626/01/2018
2727/01/2018
2828/01/2018
2929/01/2018
3030/01/2018
3131/01/2018
Sheet1
Cell Formulas
RangeFormula
C1=DATE(2018,4,16)
C2=C1+1
D1=SUMPRODUCT(--(WEEKDAY($A$1:$A$31)=WEEKDAY($C1)))


Column C custom formatted as "dddd". Is that more of what you're after?

WBD
 
Upvote 0
We've got it working! thanks you for your help...How do i get it to do the same with a similar data range from a different sheet at the same time? My plan in to eventually have a drop down month menu and it tell me how many inquiries were sent on everyday of the week for that month, but i have data being put into 3 separate sheets....

thanks again!
 
Upvote 0
You'd have to add three SUMPRODUCTS together something like this:


Book1
ABCD
101/01/2018MonthFebruary
206/01/2018Monday1
311/01/2018Tuesday1
416/01/2018Wednesday0
521/01/2018Thursday1
626/01/2018Friday0
731/01/2018Saturday1
805/02/2018Sunday1
910/02/2018
1015/02/2018
1120/02/2018
1225/02/2018
1302/03/2018
1407/03/2018
1512/03/2018
1617/03/2018
1722/03/2018
1827/03/2018
1901/04/2018
2006/04/2018
2111/04/2018
2216/04/2018
2321/04/2018
2426/04/2018
2501/05/2018
2606/05/2018
2711/05/2018
2816/05/2018
2921/05/2018
3026/05/2018
Sheet1
Cell Formulas
RangeFormula
D2=SUMPRODUCT((TEXT(Sheet1!$A$1:$A$30,"mmmm")=$D$1)*(TEXT(Sheet1!$A$1:$A$30,"dddd")=$C2))+SUMPRODUCT((TEXT(Sheet2!$A$1:$A$30,"mmmm")=$D$1)*(TEXT(Sheet2!$A$1:$A$30,"dddd")=$C2))+SUMPRODUCT((TEXT(Sheet3!$A$1:$A$30,"mmmm")=$D$1)*(TEXT(Sheet3!$A$1:$A$30,"dddd")=$C2))


WBD
 
Upvote 0

Forum statistics

Threads
1,215,054
Messages
6,122,895
Members
449,097
Latest member
dbomb1414

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