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

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
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,215,483
Messages
6,125,064
Members
449,206
Latest member
Healthydogs

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