Hey there,
I have a sheet with one column, indicating the week number for that row. Is there an easy way to chech whether the week number is exceeded, by comparing to the today's week number (1-52)?
thanks in advance
kizzie
Hey there,
I have a sheet with one column, indicating the week number for that row. Is there an easy way to chech whether the week number is exceeded, by comparing to the today's week number (1-52)?
thanks in advance
kizzie
Hi,Originally Posted by kizzie
try
=If(A1>WeekNum(Today()), true , false )
hth
---
but note, on the first of January it will (again) not be.
Si fractum non sit, noli id reficere.
If you date is in A1, then
=WEEKNUM(A1,1) 1 being if week starts on Sunday, 2 for Monday
to get WEEKNUM to this week
=WEEKNUM(TODAY(),1)
oldchippy
-------------
![]()
![]()
Blessed are those who can give without remembering and take without forgetting
If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.
Click here >>> Top Excel links for beginners to Experts
Forum Rules >>>Please don't forget to read these
Hey
Does this also work in vba code?
thanks
Hi,Originally Posted by kizzie
the WeekNum is not available as a WorkSheet function, and there may be a suitable code to get the week, but you can always use the formula option from VB, useful for those processes where the Formula is easier than the code,should help you.![]()
Please Login or Register to view this content.
hth
---
Hi kizzie,
I remember some serious headaches with this issue ...
A good explanation is provided by Chip ...
http://www.cpearson.com/excel/weeknum.htm
HTH
Carim
![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks