M
moily
Hi there,
I have a list of start and end dates that mark when holidays were begun and
ended. Some holidays were begun at the end of one month and bridged onto the
following month (ie: 26/01/09 to 06/02/09). An example list in cells (A1:B6):
Start Date End Date
05/01/09 06/01/09
14/01/09 15/01/09
26/01/09 06/02/09
18/02/09 19/02/09
09/03/09 13/03/09
I need to find out the following using a FORMULA preferably in one column
rather than spread out over several (please NO MACRO):
I need to have a list of months showing how many days were taken in each
month (say labels months 01/01/2009 through 01/12/2009 (custom formatted as
mmmmmmmmm to show the full month name) are in cells E1:E12 and the formulas
to calculate the answers are in cells F1:F12).
One complication is that one of the set of dates bridges between January and
Feburary.
Another complication is that there are more than one items per month. This
will need to assume dates could be a max of 45 start/end date rows.
I need a formula that, for the above example, will arrive at the following:
January 7
February 7
March 5
I currently have the following formula (found on the net) which deals
brilliantly with the first complication but I can't use it as it is because
it only goes line by line therefore doesn't recognise if there are multiple
lines for a given month.
=MAX(0,NETWORKDAYS(MAX(E1,A3),MIN(DATE(YEAR(E1),MONTH(E1)+1,0),B3)))
Thank you in advance for any help!
Cheers,
Ann
I have a list of start and end dates that mark when holidays were begun and
ended. Some holidays were begun at the end of one month and bridged onto the
following month (ie: 26/01/09 to 06/02/09). An example list in cells (A1:B6):
Start Date End Date
05/01/09 06/01/09
14/01/09 15/01/09
26/01/09 06/02/09
18/02/09 19/02/09
09/03/09 13/03/09
I need to find out the following using a FORMULA preferably in one column
rather than spread out over several (please NO MACRO):
I need to have a list of months showing how many days were taken in each
month (say labels months 01/01/2009 through 01/12/2009 (custom formatted as
mmmmmmmmm to show the full month name) are in cells E1:E12 and the formulas
to calculate the answers are in cells F1:F12).
One complication is that one of the set of dates bridges between January and
Feburary.
Another complication is that there are more than one items per month. This
will need to assume dates could be a max of 45 start/end date rows.
I need a formula that, for the above example, will arrive at the following:
January 7
February 7
March 5
I currently have the following formula (found on the net) which deals
brilliantly with the first complication but I can't use it as it is because
it only goes line by line therefore doesn't recognise if there are multiple
lines for a given month.
=MAX(0,NETWORKDAYS(MAX(E1,A3),MIN(DATE(YEAR(E1),MONTH(E1)+1,0),B3)))
Thank you in advance for any help!
Cheers,
Ann