"Last week" calculation

stephensm

New Member
Joined
Jun 19, 2008
Messages
11
Back again. I now need a calculation for subjects enrolled last week (calendar). I've only been able to get a formula to work that counts subjects enrolled in the last seven days. Is there a way to set this up based on a calendar week? Thanks.

Matt
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
How is your data Arranged???
If in columns, say Date, Name, Class you could use a Pivot Table with NO formulas.

lenze
 
Upvote 0
=SUMPRODUCT((H7:H999<=(E17-MOD(WEEKDAY(E1),7)))*(H7:H999>=(E17-MOD(WEEKDAY(E17),7)-6)))

Should give you a count of the days that are between last Sunday and last Saturday
 
Upvote 0
Thanks dcamos, your formula seems to have done the trick!

Yes, I was looking for a count of randomization dates that occurred in the last full week. So as of today, how many randomzations took place between 6/8 and 6/14. I've played around with the data a little and it looks like it's working. Thanks again.
 
Upvote 0

Forum statistics

Threads
1,214,782
Messages
6,121,532
Members
449,037
Latest member
tmmotairi

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