DateDiff

azizrasul

Well-known Member
Joined
Jul 7, 2003
Messages
1,304
Office Version
  1. 365
  2. 2019
  3. 2016
Platform
  1. Windows
I'm using the DateDiff to calculate various values. I've got everything to work. However I don't know what influence the firstweekofyear has on a calculation. Whatever value I try i.e. 1,2 or 3 I get the same answer. However further in the future I may have a problem because I don't know what affect the firstweekofyear could have.

Can anyone give me an example where changing the firstweekofyear value gives me a different answer.

While I'm on the subject, what is the difference in using the "d" interval symbol as opposed to the "y" symbol.
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
I don't know what the FirstWeekOfYear parameters do -- check the Help if you haven't already done so. As for the intervals, "d" is days, "y" is years, "w" is weeks. "ww" will give you the week of the year.

Denis
 
Upvote 0
Can u think of an example that makes the result different when altering the firstweekofyear value because I can't seem to. This leads me to believe that this parameter is invalid.
 
Upvote 0

Forum statistics

Threads
1,221,579
Messages
6,160,615
Members
451,658
Latest member
NghiVmexgdhh

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