Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi,
I am using the following formula to get number of days passed excluding Fridays in a given Month from fisrt date to the given date (today) =(E4-D1+1)-(INT((E4-D1)/7)+IF(WEEKDAY(D1)+MOD(E4-D1,7)=6,1,0)) Where E4 is the end date (today) and D1 start date of the Month and also Number of days remaing in the month excluding Fridays from today till end of month. =(C1-E4)-(INT((C1-(E4+1))/7)+IF(WEEKDAY(E4)+MOD(C1-(E4+1),7)=6,1,0)) Where E4 is the start date and C1 is the end date Some how it is not working for all days.. some times it gives 1 day difference. It is the same case if I use a formula like this =SUM(IF(ISERROR(MATCH(WEEKDAY(ROW(INDIRECT(E4&":"& B1))),{6},0)), 1,0))-1 of course the cell address is different in above example. Is there a better workaround? Thanks |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
number of week days in a period of time | Excel Worksheet Functions | |||
add number of days within a department for a given time period | Excel Worksheet Functions | |||
Number of days in a running period | Excel Worksheet Functions | |||
count work days excluding Fridays and Saturdays ??? | Excel Worksheet Functions | |||
Finding number of particular days in a period | Excel Worksheet Functions |