COUNTIF date is in previous week

surkdidat

Well-known Member
Joined
Oct 1, 2011
Messages
597
Office Version
  1. 365
How do I compose a formula that looks at values in column BP that are from the previous week (The week always starts on a Monday. So for today,(being 4 December) I want it to count anything from Monday 26 November to Sunday 2 December inclusive please. On a Monday it needs to automatically change for the prev. week. So on Monday 10 Dec, it will automatically change the data to Mon 3 Dec-Sun 9 Dec.
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Hi, Column BP are dates correct?

I think the below will suffice.

=COUNTIFS(BP:BP,">="&(TODAY()-7)-MOD((TODAY()-7)-2,7),BP:BP,"<="&TODAY()-7+(7-WEEKDAY(TODAY()-7,2)))
 
Upvote 0

Forum statistics

Threads
1,226,114
Messages
6,189,052
Members
453,522
Latest member
Seeker2025

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