COUNTIF For the Current Week

Mista_sav

Board Regular
Joined
Aug 18, 2019
Messages
69
Office Version
  1. 2016
Platform
  1. Windows
  2. Web
Not sure why im finding this so difficult but im wondering if anyone can help.

I have one sheet that from columns E through to P are all dates. Some are in the future and what i need is a formula that will count all dates in the current working week.

This is about as far as i got. I tried a few tips online but could not for te life of me get it to work

=COUNTIFS('Call List'!E11:P30

Thank you
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
I tell a lie sorry haha. It worked ok first test then wen i tried it again i got this below I changed the formula you gave to cover the whole table range. But now its counting 6 when it should be 2 (Only 2 calls due this current week?) =SUMPRODUCT(--(WEEKNUM(IF(Table1[[Follow Up call Due]:[36 Months]]="",0,Table1[[Follow Up call Due]:[36 Months]]))=WEEKNUM(TODAY())))

Post Approval/Settlement Call List
All Calls Highlighted below are calls due to be made in the current Week. Calls due must be input in the Call Diary
Calls Due This Week6
Member #NameKO NumberFollow Up call DuePost Aproval Call5 days Post6 Weeks3 Months6 Months12 Months18 Months24 Months30 Months36 Months
123456Test 1987354Saturday, 28 January 2023Saturday, 28 January 2023Monday, 6 March 2023Sunday, 23 April 2023Sunday, 23 July 2023Tuesday, 23 January 2024Tuesday, 23 July 2024Thursday, 23 January 2025Wednesday, 23 July 2025Friday, 23 January 2026
742753Test 2165165164
35721Test 3161616
37433Test 413216161
453453Test 51321651566
45345342Test 651516262
4496845Test 7653265
13313Test 8313641849
431234Test 93264946
4532313Test 10232649
77888Test 1132356366
9966Test 1222564646
6633Test 133165444
5545Test 14659659569
5456Test 15326565
23968Test 16262332632
22264Test 172665262
232656Test 18265265262
 
Upvote 0
Can you post the entire data (no hidden columns) & use the minisheet option, not the table option.
 
Upvote 0
Apologies, i made some changes. I hid some columns as i dont want it to count columns D and E now. I need Columns F through to P to count if its the current week. This data pulls automatically from another sheet where the user inputs dates. This sheets then automates future dated calls


Post Approval & Settlement Call Tracking - WIP NEW STYLE.xlsm
ABCDEFGHIJKLMNOP
1Post Approval/Settlement Call List
2
3All Calls Highlighted below are calls due to be made in the current Week. Calls due must be input in the Call Diary
4
5Calls Due This Week5
6
7
8
9
10Member #NameKO NumberApproval DateSettlement DateFollow Up call DuePost Aproval Call5 days Post6 Weeks3 Months6 Months12 Months18 Months24 Months30 Months36 Months
11123456Test 1987354Friday, 27 January 2023Monday, 23 January 2023 Saturday, 28 January 2023Saturday, 28 January 2023Monday, 6 March 2023Sunday, 23 April 2023Sunday, 23 July 2023Tuesday, 23 January 2024Tuesday, 23 July 2024Thursday, 23 January 2025Wednesday, 23 July 2025Friday, 23 January 2026
12742753Test 2165165164             
1335721Test 3161616             
1437433Test 413216161             
15453453Test 51321651566             
1645345342Test 651516262             
174496845Test 7653265             
1813313Test 8313641849             
19431234Test 93264946             
204532313Test 10232649             
2177888Test 1132356366             
229966Test 1222564646             
236633Test 133165444             
245545Test 14659659569             
255456Test 15326565             
2623968Test 16262332632             
2722264Test 172665262             
28232656Test 18265265262             
Call List
Cell Formulas
RangeFormula
D5D5=SUMPRODUCT(--(WEEKNUM(IF(F11:P3000="",0,F11:P3000))=WEEKNUM(TODAY())))
A11:A28A11=IF('Input Data & Dates'!$A11="","",'Input Data & Dates'!$A11)
B11:B28B11=IF('Input Data & Dates'!$B11="","",'Input Data & Dates'!$B11)
C11:C28C11=IF('Input Data & Dates'!$C11="","",'Input Data & Dates'!$C11)
D11:D28D11=IF('Input Data & Dates'!$D11="","",'Input Data & Dates'!$D11)
E11:E28E11=IF('Input Data & Dates'!$E11="","",'Input Data & Dates'!$E11)
F11:F28F11=IF('Input Data & Dates'!$F11="","",'Input Data & Dates'!$F11)
G11:G28G11=IF($D11="","",$D11+1)
H11:H28H11=IF($E11="","",$E11+5)
I11:I28I11=IF($E11="","",$E11+7*6)
J11:J28J11=IF($E11="","",EDATE($E11,3))
K11:K28K11=IF($E11="","",EDATE($E11,6))
L11:L28L11=IF($E11="","",EDATE($E11,12))
M11:M28M11=IF($E11="","",EDATE($E11,18))
N11:N28N11=IF($E11="","",EDATE($E11,24))
O11:O28O11=IF($E11="","",EDATE($E11,30))
P11:P28P11=IF($E11="","",EDATE($E11,36))
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A11:P3443Dates Occurringthis weektextNO
 
Upvote 0
Oh, i forgot to specify; COUNT if current week in current year
 
Upvote 0
Ok you have other years in there, try
Excel Formula:
=SUMPRODUCT((YEAR(IF(F11:P3000="",0,F11:P3000))=YEAR(TODAY()))*(WEEKNUM(IF(F11:P3000="",0,F11:P3000))=WEEKNUM(TODAY())))
 
Upvote 0
Solution
Ok you have other years in there, try
Excel Formula:
=SUMPRODUCT((YEAR(IF(F11:P3000="",0,F11:P3000))=YEAR(TODAY()))*(WEEKNUM(IF(F11:P3000="",0,F11:P3000))=WEEKNUM(TODAY())))
Perfect! Like a charm.
Thanks mate again for your help
 
Upvote 0

Forum statistics

Threads
1,215,833
Messages
6,127,162
Members
449,368
Latest member
JayHo

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