Formula to calculate week of month completed

bwlytkr

Board Regular
Joined
Jun 8, 2012
Messages
185
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
I tried this formula in Access to calculate the week of the month the task was completed and it doesn't calculate correctly. Any thoughts on the formula I can use to do this. It's the standard 3/17/2020 date format.

Completed Week: Format([Completed Dt],"w""Week")
 
Sorry, misunderstood the date part function. I'm not sure how to write this, =ISOWEEKNUM(A1)-ISOWEEKNUM(DATE(YEAR(A1),MONTH(A1),1))+1, in access. Can you help?
 
Upvote 0

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Sorry, misunderstood the DatePart Function. I' don't know how to write this, =ISOWEEKNUM(A1)-ISOWEEKNUM(DATE(YEAR(A1),MONTH(A1),1))+1, in Access. I could use some help if you know.
 
Upvote 0
as info, I found a formula that works. Here it is in case someone else wants to use it.

Completed Week: DatePart("ww",[Completed Dt])-DatePart("ww",DateSerial(Year([Completed Dt]),Month([Completed Dt]),1))+1
 
Upvote 0
That is the way. The logic is exactly the same as your formula in Excel.
 
Upvote 0

Forum statistics

Threads
1,221,537
Messages
6,160,406
Members
451,644
Latest member
hglymph

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