Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Gidday
I am seeking a bit of help with what the "-{1,7}" does/means in the following formula; =ABS(IF((DATE(YEAR(C3),MONTH(C3)+1,DAY(C3))),(C3)-(DATE(YEAR(C3),MONTH(C3)+1,DAY(C3)))-SUM(INT((WEEKDAY((DATE(YEAR(C3),MONTH(C3)+1,DAY(C3 )))-{1,7})+(C3)-(DATE(YEAR(C3),MONTH(C3)+1,DAY(C3))))/7)),"")) The forumal works out the number of workdays in a month where C3= 1/1/2007 and the return answer is 20 I look forward to your responses. |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
It's subtracting 1 and 7 in order to count the number of Sundays (weekday 1)
and Saturdays (weekday 7) in the month. That formula can be replaced with: =NETWORKDAYS(C3,DATE(YEAR(C3),MONTH(C3)+1,0)) With C3 = 1/1/2007 The result is 23 with both formulas. Biff "David" wrote in message ... Gidday I am seeking a bit of help with what the "-{1,7}" does/means in the following formula; =ABS(IF((DATE(YEAR(C3),MONTH(C3)+1,DAY(C3))),(C3)-(DATE(YEAR(C3),MONTH(C3)+1,DAY(C3)))-SUM(INT((WEEKDAY((DATE(YEAR(C3),MONTH(C3)+1,DAY(C3 )))-{1,7})+(C3)-(DATE(YEAR(C3),MONTH(C3)+1,DAY(C3))))/7)),"")) The forumal works out the number of workdays in a month where C3= 1/1/2007 and the return answer is 20 I look forward to your responses. |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
OK! ... thankyou ... Biff ... I think I understand ... it is like an array of
variables to be used in a formula? "T. Valko" wrote: It's subtracting 1 and 7 in order to count the number of Sundays (weekday 1) and Saturdays (weekday 7) in the month. That formula can be replaced with: =NETWORKDAYS(C3,DATE(YEAR(C3),MONTH(C3)+1,0)) With C3 = 1/1/2007 The result is 23 with both formulas. Biff "David" wrote in message ... Gidday I am seeking a bit of help with what the "-{1,7}" does/means in the following formula; =ABS(IF((DATE(YEAR(C3),MONTH(C3)+1,DAY(C3))),(C3)-(DATE(YEAR(C3),MONTH(C3)+1,DAY(C3)))-SUM(INT((WEEKDAY((DATE(YEAR(C3),MONTH(C3)+1,DAY(C3 )))-{1,7})+(C3)-(DATE(YEAR(C3),MONTH(C3)+1,DAY(C3))))/7)),"")) The forumal works out the number of workdays in a month where C3= 1/1/2007 and the return answer is 20 I look forward to your responses. |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
it is like an array of variables to be used in a formula?
Yes. Those would be called array constants. Whenever you see {x,y,z}, the squiggly brackets mean it's an array. Biff "David" wrote in message ... OK! ... thankyou ... Biff ... I think I understand ... it is like an array of variables to be used in a formula? "T. Valko" wrote: It's subtracting 1 and 7 in order to count the number of Sundays (weekday 1) and Saturdays (weekday 7) in the month. That formula can be replaced with: =NETWORKDAYS(C3,DATE(YEAR(C3),MONTH(C3)+1,0)) With C3 = 1/1/2007 The result is 23 with both formulas. Biff "David" wrote in message ... Gidday I am seeking a bit of help with what the "-{1,7}" does/means in the following formula; =ABS(IF((DATE(YEAR(C3),MONTH(C3)+1,DAY(C3))),(C3)-(DATE(YEAR(C3),MONTH(C3)+1,DAY(C3)))-SUM(INT((WEEKDAY((DATE(YEAR(C3),MONTH(C3)+1,DAY(C3 )))-{1,7})+(C3)-(DATE(YEAR(C3),MONTH(C3)+1,DAY(C3))))/7)),"")) The forumal works out the number of workdays in a month where C3= 1/1/2007 and the return answer is 20 I look forward to your responses. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
HELP on "left","right","find","len","substitute" functions | Excel Discussion (Misc queries) | |||
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next | New Users to Excel | |||
create links to check boxes marked "good" fair"and "bad" | Excel Worksheet Functions | |||
Complex if test program possible? If "value" "value", paste "value" in another cell? | Excel Discussion (Misc queries) | |||
Insert "-" in text "1234567890" to have a output like this"123-456-7890" | Excel Discussion (Misc queries) |