Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.newusers
|
|||
|
|||
days calculation
Hi All
The following formula is calculating the no of days without holidays, so I want this formula in excel function way. =SUMPRODUCT(INT((D5-C5+WEEKDAY(C5-{1,2,3,4,5}))/7)) |
#2
Posted to microsoft.public.excel.newusers
|
|||
|
|||
days calculation
Have a look in Help at NETWORKDAYS
best wishes -- Bernard V Liengme Microsoft Excel MVP http://people.stfx.ca/bliengme remove caps from email "Yousoft" wrote in message ... Hi All The following formula is calculating the no of days without holidays, so I want this formula in excel function way. =SUMPRODUCT(INT((D5-C5+WEEKDAY(C5-{1,2,3,4,5}))/7)) |
#3
Posted to microsoft.public.excel.newusers
|
|||
|
|||
days calculation
I mean that I want this formula in UDF form. "Bernard Liengme" wrote: Have a look in Help at NETWORKDAYS best wishes -- Bernard V Liengme Microsoft Excel MVP http://people.stfx.ca/bliengme remove caps from email "Yousoft" wrote in message ... Hi All The following formula is calculating the no of days without holidays, so I want this formula in excel function way. =SUMPRODUCT(INT((D5-C5+WEEKDAY(C5-{1,2,3,4,5}))/7)) |
#4
Posted to microsoft.public.excel.newusers
|
|||
|
|||
days calculation
Here is the code
Function workdays(firstday, lastday, holidays) workdays = WorksheetFunction.NetworkDays(firstday, lastday, holidays) End Function called with =workdays(a1,b1,d1:5) where A1 has the first day, B1 the last day and D1:D5 a list of holiday dates Not bothered by holidays? Function workdays(firstday, lastday) workdays = WorksheetFunction.NetworkDays(firstday, lastday) End Function called with =workdays(a1,b1,d1:5) where A1 has the first day, B1 the last day best wishes -- Bernard V Liengme Microsoft Excel MVP http://people.stfx.ca/bliengme remove caps from email "Yousoft" wrote in message ... I mean that I want this formula in UDF form. "Bernard Liengme" wrote: Have a look in Help at NETWORKDAYS best wishes -- Bernard V Liengme Microsoft Excel MVP http://people.stfx.ca/bliengme remove caps from email "Yousoft" wrote in message ... Hi All The following formula is calculating the no of days without holidays, so I want this formula in excel function way. =SUMPRODUCT(INT((D5-C5+WEEKDAY(C5-{1,2,3,4,5}))/7)) |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Calculation of working days between two dates | Excel Worksheet Functions | |||
How to calculation no. of days (only working days) between two dat | Excel Discussion (Misc queries) | |||
Please Help With Days Elapsed And Days Remaining Calculation | Excel Worksheet Functions | |||
Days calculation between months | Excel Worksheet Functions | |||
cALCULATION OF DAYS | Excel Worksheet Functions |