aamir
Board Regular
- Joined
- Feb 17, 2010
- Messages
- 116
i know how to find the days in a month by using the following formula:
Number of days in a month
Number of Thursdays
Number of Fridays
My questions:
1. is thr any simple formula for above formaule?
2. I want to calculate,(total # of days in a month)- minus (sum of Fridays and Thursdays) in that month multiplied with 9 and this complete is added to number of (Thursdays multiplied by)* 5
Number of days in a month
Code:
=DAY(DATE(YEAR(E2),MONTH(E2)+1,0))
Number of Thursdays
Code:
=SUMPRODUCT(--(WEEKDAY(ROW(INDEX(B:B,E2-DAY(E2)+1):INDEX(B:B,EOMONTH(E2,0))))=5))
Number of Fridays
Code:
=SUMPRODUCT(--(WEEKDAY(ROW(INDEX(B:B,E2-DAY(E2)+1):INDEX(B:B,EOMONTH(E2,0))))=6))
My questions:
1. is thr any simple formula for above formaule?
2. I want to calculate,(total # of days in a month)- minus (sum of Fridays and Thursdays) in that month multiplied with 9 and this complete is added to number of (Thursdays multiplied by)* 5