Friday as weekend instead of Saturday & Sunday

N

Naushad

in a Workday function, Saturday & Sunday is taken as weekend. How can I make
Friday as weekend instead of Sat & Sun
 
M

Mike H

Hi,

If you mean just Friday i.e. a single day as the weekend try this

=SUM(IF(ISERROR(MATCH(WEEKDAY(ROW(INDIRECT(A1&":"&B1))),{5},0)),1,0))

with your start date in a1 and end date in B1

This is an array formula which must be entered with CTRL+Shift+Enter and NOT
'just enter. If you do it correctly then Excel will put curly brackets around
'the formula{}. You can't type these yourself. If you Edit the ranges
'then you must re-enter as An array.


Mike
 
M

Mike H

oops,

Friday is 6 not 5

=SUM(IF(ISERROR(MATCH(WEEKDAY(ROW(INDIRECT(A1&":"&B1))),{6},0)),1,0))

Mike
 
N

Naushad

Hi,
What you have said it functions, but I want to find the end date if Start
date and number of days is given (with Friday only as weekend). Suppose
Thursday is the start date and number of days is 4 then End date should be
Monday (i.e. thu, Sat, Sun & Mon)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top