View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
OssieMac OssieMac is offline
external usenet poster
 
Posts: 2,510
Default date add 5 workdays AND 6 calendar months

Hi again Griffo,

Something went wrong half way through my previous reply so here it is again:-

I am not clear on whether you want the entire formula in one cell with the
date embedded in the formula or whether you have a date in another cell and
want to use that date so here is both methods.

21 Feb 2007 in cell A1:-
=DATE(YEAR(WORKDAY(A1,5)),MONTH(WORKDAY(A1,5))+6,D AY(WORKDAY(A1,5)))

21 Feb 2007 embedded in the formula:-

=DATE(YEAR(WORKDAY("21 Feb 2007",5)),MONTH(WORKDAY("21 Feb
2007",5))+6,DAY(WORKDAY("21 Feb 2007",5)))

Note that these should be one line.

Regards,

OssieMac




"OssieMac" wrote:

Hi Griffo,

I am not clear on whether you want the entire formula in one cell with the
date embedded in the formula or whetrer you have a date in another cell and
want to use that date so here is both methods.

21 Feb 2007 in cell A1:-
=DATE(YEAR(WORKDAY(A1,5)),MONTH(WORKDAY(A1,5))+6,D AY(WORKDAY(A1,5)))

21 Feb 2007 embedded in the formula:-



"GRIFFO" wrote:

Is there a way I can add 5 working days AND 6 calendar months to a date in a
one cell function/formula?

basically I want =workday(A1,5,HolidayRange) = result A
resultA + 6 calendar months.


That is I have a date of 21 Feb 2007.
5 working days after this date is 28 Feb 2007 (if there are no holidays).
= 6 calendar months is 28 August 2007.

Can this be done using one cell ? Or do I need two, one for the workday
function, and one for the + 6 calendar month function?


--
Your assistance is appreciated.
Griffo