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")
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
I had a lot of viewers but, no response. Does that mean their is no access formula for this? I thought if there was an excel formula it could be converted into an access formula. Not True?
 
Upvote 0
I had a lot of viewers but, no response. Does that mean their is no access formula for this? I thought if there was an excel formula it could be converted into an access formula. Not True?
Not necessarily. All threads with no replies show up in the "Zero Replies" listing. Many people look there for unanswered questions. However, many people are unaware that Access questions show up there too (not just Excel questions). So, they might have throught it was an Excel question, until they opened it up and read the details. And I would venture to say that most users here don't use Access.

Can you post the Excel version of the formula that you have that is working? I want to re-create it and see exactly what it does.
 
Upvote 0
The formula from Welshgasman gives me the week of the year. I am looking for the week 1-5 that it falls in for each month. I use this formula in excel and it seems to work fine.

=ISOWEEKNUM(A1)-ISOWEEKNUM(DATE(YEAR(A1),MONTH(A1),1))+1
 
Upvote 0
The formula from Welshgasman gives me the week of the year. I am looking for the week 1-5 that it falls in for each month. I use this formula in excel and it seems to work fine.

=ISOWEEKNUM(A1)-ISOWEEKNUM(DATE(YEAR(A1),MONTH(A1),1))+1
So could you not use Weeknumber of your date - weeknum of 1st of your month +1 ?

That appears to be what that Excel formula is calculating?
 
Upvote 0
yes, the excel formula is giving me the week of the month which is what I am trying to get a formula for in Access.

This formula Completed Week: Format([Completed Dt],"ww" ), is giving me the week of the year
 
Upvote 0
So use the DatePart function to calculate the week, exctly the same way you are doing it in Excel?
 
Upvote 0
It's the same date format in access as it is 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