Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
While calculating WEEKNUM stating from Tuesday to Friday i am getting error
massage #NUM# but for week staring from Sunday and Monday it calculating correctly. What could be the reason and how to work around it correctly. |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Maybe
=IF(WEEKDAY(A1,2)1,WEEKNUM(A1,2)+1,WEEKNUM(A1,2)) Mike "P C Verma" wrote: While calculating WEEKNUM stating from Tuesday to Friday i am getting error massage #NUM# but for week staring from Sunday and Monday it calculating correctly. What could be the reason and how to work around it correctly. |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
There is no known place in the world where week starts with Tuesday-Friday,
therefore Excel doesn't have this feature. What do you want to do? Regards, Stefi €˛P C Verma€¯ ezt Ć*rta: While calculating WEEKNUM stating from Tuesday to Friday i am getting error massage #NUM# but for week staring from Sunday and Monday it calculating correctly. What could be the reason and how to work around it correctly. |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
What is your formula? What values are in the cells leading into the
formula? What value did you get as a result? What value did you expect? What formula is working correctly for what data? -- David Biddulph "P C Verma" <P C wrote in message ... While calculating WEEKNUM stating from Tuesday to Friday i am getting error massage #NUM# but for week staring from Sunday and Monday it calculating correctly. What could be the reason and how to work around it correctly. |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I'm guessing you haven't heard of the "4-day work week" that many companies
have already adopted? One of the methods of implementing this schedule is to give the workers Monday off in conjunction with the normal weekend. Rick "Stefi" wrote in message ... There is no known place in the world where week starts with Tuesday-Friday, therefore Excel doesn't have this feature. What do you want to do? Regards, Stefi €˛P C Verma€¯ ezt Ć*rta: While calculating WEEKNUM stating from Tuesday to Friday i am getting error massage #NUM# but for week staring from Sunday and Monday it calculating correctly. What could be the reason and how to work around it correctly. |
#7
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
If you don't mind using a User Defined Function (UDF), then here is a method
that creates the worksheet function you want. Keyin Alt+F11 to go to the VB editor and click on Insert/Module on the menu bar there. Copy/Paste this code into the code window that appeared when you did that... Function WeekNumber(D As Date) As Long If D = 0 Then WeekNumber = 0 Else WeekNumber = DatePart("ww", D, vbTuesday, vbFirstJan1) End If End Function Now, back on your work sheet... assuming, say, C3 contains a date, put this in any other cell... =WeekNumber(C3) and it will display the week number you want given the Tuesday start of week (using the same start of year that the WEEKNUM function uses). Rick "P C Verma" <P C wrote in message ... While calculating WEEKNUM stating from Tuesday to Friday i am getting error massage #NUM# but for week staring from Sunday and Monday it calculating correctly. What could be the reason and how to work around it correctly. |
#8
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
You are right, but in this case Excel is behind the developments in the
world. Does Excel2007 have this feature? Regards, Stefi €˛Rick Rothstein (MVP - VB)€¯ ezt Ć*rta: I'm guessing you haven't heard of the "4-day work week" that many companies have already adopted? One of the methods of implementing this schedule is to give the workers Monday off in conjunction with the normal weekend. Rick "Stefi" wrote in message ... There is no known place in the world where week starts with Tuesday-Friday, therefore Excel doesn't have this feature. What do you want to do? Regards, Stefi €˛P C Verma€¯ ezt Ć*rta: While calculating WEEKNUM stating from Tuesday to Friday i am getting error massage #NUM# but for week staring from Sunday and Monday it calculating correctly. What could be the reason and how to work around it correctly. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Comparing & Stating The Nearest Matching | Excel Discussion (Misc queries) | |||
Rolling 12 week calculations | Excel Worksheet Functions | |||
start/end dates of a week given just the weeknum() value | Excel Discussion (Misc queries) | |||
reverse week count calculations | Excel Worksheet Functions | |||
weeknum function says jan1=week1, mod to first 4 day week needed | Excel Discussion (Misc queries) |