Hi
i am trying to calculate number of week days between 2 dates.
In my Excel named 'Leave Detail', Cell H8 = Starting Date and Cell I8 = End Date i tried to save the return value in Cell J8 but it is populated with '#VALUE'.
Sheets("Leave Detail").Range("J8").Value = Evaluate("SUMPRODUCT(--(WEEKDAY(ROW(INDIRECT('Leave Detail'!H8:Leave Detail'!I8)),2)<6))")
Please help.
Bookmarks