Hi
How can i change week number to start from 1 if my year starts 1/07/2009 if i use function = weeknum() it returns the value 27.
Thanks
Hi
How can i change week number to start from 1 if my year starts 1/07/2009 if i use function = weeknum() it returns the value 27.
Thanks
Last edited by tek9step; 06-19-2009 at 05:23 AM.
Hi there,
Would...
...work?Please Login or Register to view this content.
HTH,
SamuelT
Hi,
Maybe this?
=IF(OR(A1>TODAY(),(INT((TODAY()-A1)/7)+1>53)),1,INT((TODAY()-A1)/7)+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
Thank you guys.
Last edited by daddylonglegs; 06-19-2009 at 05:53 AM.
=int((today()-date(year(now())-(today()<date(year(now()),7,1)),7,1))/7)+1
Regards
Darren
Update 12-Nov-2010 Still job hunting!
If you are happy with the results, please add to our reputation by clicking the blue scales icon in the blue bar of the post.
Learn something new each day, Embrace change do not fear it, evolve and do not become extinct!
Which one did you go with?
=WEEKNUM(A1)-26 will give negative numbers when A1 is a January date. Won't yours always give 1 for future dates, oldchippy?
I recommend squiggler's formula, assuming you always want week 1 to be the first 7 days of July, regardless of the weekday of 1st July. You can also use a shorter version, assuming your date in A1
=INT((A1-DATE(YEAR(A1+184)-1,6,24))/7)
Hi DLL,
Yes as 01/07/2009 is in the future I assumed he would want 1 to show, but if he uses a date in the past and week 1 starts from that date then - 01/06/2009 mine shows week 3 from today. So am I wrong?Won't yours always give 1 for future dates, oldchippy?
I bow to your expert knowledge when it comes to working with dates.
OC, only with Dates ?- my back hurts with all the bowing...
My Recommended Reading:
Volatility
Sumproduct & Arrays
Pivot Intro
Email from XL - VBA & Outlook VBA
Function Dictionary & Function Translations
Dynamic Named Ranges
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks