Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
How can I calculate and display the actual dates (workdays, not incl weekends
preferred but not essential) in, say, column A which refer to WEEKNUM in column B? -- tia Jock |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
How can I calculate and display the actual dates (workdays, not incl
weekends preferred but not essential) in, say, column A which refer to WEEKNUM in column B? Let us assume that the year number is in A1 and that the week number is in B1. To list the 5 weekdays in that week number, put this formula =DATE($A$1,1,1+MOD((9-MOD(WEEKDAY(DATE($A$1,1,1)),7)),7))+7*($B$1-1)+ROWS($1:1)-1 in any cell and drag down through the next 4 cells. Rick |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Absolutely brilliant.
Thanks very much. Jock "Rick Rothstein (MVP - VB)" wrote: How can I calculate and display the actual dates (workdays, not incl weekends preferred but not essential) in, say, column A which refer to WEEKNUM in column B? Let us assume that the year number is in A1 and that the week number is in B1. To list the 5 weekdays in that week number, put this formula =DATE($A$1,1,1+MOD((9-MOD(WEEKDAY(DATE($A$1,1,1)),7)),7))+7*($B$1-1)+ROWS($1:1)-1 in any cell and drag down through the next 4 cells. Rick |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
How can I calculate and display the actual dates (workdays, not incl
weekends preferred but not essential) in, say, column A which refer to WEEKNUM in column B? Let us assume that the year number is in A1 and that the week number is in B1. To list the 5 weekdays in that week number, put this formula =DATE($A$1,1,1+MOD((9-MOD(WEEKDAY(DATE($A$1,1,1)),7)),7))+7*($B$1-1)+ROWS($1:1)-1 in any cell and drag down through the next 4 cells. Looks like we can simplify that expression a little bit... =DATE($A$1,1,1+MOD(9-MOD(DATE($A$1,1,1),7),7))+7*($B$1-1)+ROWS($1:1)-1 Rick |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Date format and weeknum formel | Excel Discussion (Misc queries) | |||
Displaying range value when range name is concatenated | Excel Discussion (Misc queries) | |||
WEEKNUM to dynamic range name | Excel Worksheet Functions | |||
Convert WeekNum to Sunday's date | Excel Worksheet Functions | |||
Translate WEEKNUM result into a date | Excel Worksheet Functions |