ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   New Users to Excel (https://www.excelbanter.com/new-users-excel/)
-   -   count weeks (https://www.excelbanter.com/new-users-excel/140932-count-weeks.html)

Croco

count weeks
 
hello

how can we count how many weeks we have between a specific date in a cell
(A1 for example) and today?
--
Croco

Mike H

count weeks
 
With today in b1 try this:-

=ABS((B1-A1)/7)

The cell this is in must be formatted as 'Number'

Mike

"Croco" wrote:

hello

how can we count how many weeks we have between a specific date in a cell
(A1 for example) and today?
--
Croco


Mike H

count weeks
 
Croco,

I didn't like the decimal weeks the previous formula gives so try this
instead:-

=INT(ABS((B1-A1)/7))&" Weeks "&MOD(ABS(A1-B1),7)& " Days"

"Croco" wrote:

hello

how can we count how many weeks we have between a specific date in a cell
(A1 for example) and today?
--
Croco


Bob Phillips

count weeks
 
=weeknum(TODAY())-weeknum(A1)

you may want to adjust by 1 and compensate for day of the week.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Croco" wrote in message
...
hello

how can we count how many weeks we have between a specific date in a cell
(A1 for example) and today?
--
Croco





All times are GMT +1. The time now is 10:35 PM.

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