Calculate number of days used last week and this week to date between two dates

ExcelFanatic

Board Regular
Joined
May 22, 2009
Messages
83
I use the following formula to calculate how many days were used last month

=MAX(0,MIN(IF($K422="",$I422,$K422),DATE(YEAR(TODAY()),CEILING(MONTH(TODAY()),1),0)+1)-MAX($J422,DATE(YEAR(TODAY()),FLOOR(MONTH(TODAY())-1,1),1)))

and this formula to calculate how many days were used this month through today

=MAX(0,MIN(IF($K422="",$I422,$K422),TODAY())-MAX(DATE(YEAR(TODAY()),MONTH(TODAY()),1),IF($J422="",$H422,$J422),0))


I want to do the same as above, but used last week and this week and can't seem to figure out how to make the formula work.

Any help is greatly appreciated.
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
How are you defining "this week"? Is the start date the Sunday preceding today (or the Monday) or something else?
 
Upvote 0

Forum statistics

Threads
1,214,833
Messages
6,121,857
Members
449,051
Latest member
excelquestion515

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