Home |
Search |
Today's Posts |
#14
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() "Ron de Bruin" wrote in message ... Thank for your reply Hans I an updating all my webpages on the moment. When I do the Week number and ISO page I will check all the stuff on it and maybe do a small update Have a nice day Regards Ron de Bruin http://www.rondebruin.nl/tips.htm You too, Ron. I would be pleased if you included my WkIso() function, but you might decide that it looks too cryptic. It had to work with integers, to avoid small binary inaccuracies like 1.2-1.1-0.1 < 0, and that made for big unrecognizeable numbers. I suspect that the Datepart bug comes from a related problem. Greetings, Hans. "Hans Terkelsen" <dk wrote in message ... "Ron de Bruin" wrote in message ... Hi Hans I not test your function but do you get the same results as the VBA function and the formulas on my page http://www.rondebruin.nl/weeknumber.htm#information See the Calendar workbook Hi Ron d B! I have been slow to answer, sorry. Yes, I get the same results as your function and formula gives. The only difference is a few days at the start of the dates. We can consider Daniel Mahers function as a reference. My checker runs through all the dates, and compares the putative(?) ISO weeknumber function to a running week counter that follows the appropriate rules. Takes only a few minutes in VB. DM's function is true 4/1/100-31/12/9999 according to that checker. The first 3 days it errors, if anybody should care. Ptolemy maybe:-) Your worksheet function likewise, 2/1/1900-31/12/9999, agrees with the others. Did you want a second opinion on the Calendar workbook? Useful and correct :-) A reverse weeknumber function, from ISOweekyear and weeknumber to a date, agrees with your date for first monday 1901 to 9999, but not for 1900 as you know. Yours is the correct date. Another way to sidestep the 29/2/1900 issue, is to add 400 years to the year in formulas. All dates, weekdays, weeknumbers repeat after 400 years, and 29/2/2300 does not exist in Excel. Then the calendar could go back to 1500! I think I'll keep it as it is, Thankyou Ron, Greetings Hans. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
group sales by week and week number | Excel Discussion (Misc queries) | |||
Can Excel turn % hrs worked/week put in a cell into a real number | Excel Worksheet Functions | |||
How do I set up a week by week skill training schedule in excel? | Excel Discussion (Misc queries) | |||
how to get week number in month in excel ? | Charts and Charting in Excel | |||
I need week number in excell from a date, first week must be mini. | Excel Discussion (Misc queries) |