ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Weeks between two Dates (https://www.excelbanter.com/excel-programming/428233-weeks-between-two-dates.html)

Ayo

Weeks between two Dates
 
Is there a function that calculates the number of weeks between two dates? Or
am I going to have to use (A2-A3)/7.

PJFry

Weeks between two Dates
 
You could use WEEKNUM:
=WEEKNUM(A2)-WEEKNUM(A3)

It should all work about the same. Your original idea is probaly easier to
understand.
--
Regards,

PJ
Please rate this post using the vote buttons if it was helpful.



"Ayo" wrote:

Is there a function that calculates the number of weeks between two dates? Or
am I going to have to use (A2-A3)/7.


Ayo

Weeks between two Dates
 
Thanks PJ.

"PJFry" wrote:

You could use WEEKNUM:
=WEEKNUM(A2)-WEEKNUM(A3)

It should all work about the same. Your original idea is probaly easier to
understand.
--
Regards,

PJ
Please rate this post using the vote buttons if it was helpful.



"Ayo" wrote:

Is there a function that calculates the number of weeks between two dates? Or
am I going to have to use (A2-A3)/7.


Dave Peterson

Weeks between two Dates
 
Be careful if those two dates don't fall in the same year.

Ayo wrote:

Thanks PJ.

"PJFry" wrote:

You could use WEEKNUM:
=WEEKNUM(A2)-WEEKNUM(A3)

It should all work about the same. Your original idea is probaly easier to
understand.
--
Regards,

PJ
Please rate this post using the vote buttons if it was helpful.



"Ayo" wrote:

Is there a function that calculates the number of weeks between two dates? Or
am I going to have to use (A2-A3)/7.


--

Dave Peterson


All times are GMT +1. The time now is 02:17 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com