"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

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.

lenze

Legend
Joined
Feb 18, 2002
Messages
13,690
How is your data Arranged???
If in columns, say Date, Name, Class you could use a Pivot Table with NO formulas.

lenze
 
Upvote 0

stephensm

New Member
Joined
Jun 19, 2008
Messages
11
ADVERTISEMENT
Sunday through Saturday would be fine....
 
Upvote 0

dcamos

Board Regular
Joined
May 21, 2008
Messages
225
=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

stephensm

New Member
Joined
Jun 19, 2008
Messages
11
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,195,590
Messages
6,010,611
Members
441,558
Latest member
lambierules

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
Top