Solved

change weekend days in Excel

Posted on 2014-02-02
3
1,457 Views
Last Modified: 2014-02-05
Hi

In my country weekends are Friday and Saturday instead of Sat and Sun. So, how can change it in Excel due to I have some functions to calculate working days ??


Thanks
0
Comment
Question by:obad62
3 Comments
 
LVL 18

Assisted Solution

by:Steven Harris
Steven Harris earned 167 total points
ID: 39828068
Are you using networkwordays() by chance?  Switch to:

=NETWORKDAYS.INTL(start_date, end_date, [weekend], [holidays])

In your case, [weekend] = 7, so - If start date is A1, end date is B2:

=NETWORKDAYS.INTL(A1,B1,7)
0
 
LVL 81

Accepted Solution

by:
byundt earned 167 total points
ID: 39828721
There is also WORKDAY.INTL, which is equivalent to WORKDAY but lets you specify the days of the weekend. Like NETWORKDAYS.INTL as mentioned by ThinkSpaceSolutions, your Friday & Saturday weekend would be specified by [weekend] = 7

To get a date 12 working days in the future, you would use:
=WORKDAY.INTL(TODAY(),12,7,HolidayList)          
where HolidayList is a named range listing public holidays in your country

NETWORKDAYS.INTL and WORKDAY.INTL require Excel 2010 or later.
0
 
LVL 50

Assisted Solution

by:barry houdini
barry houdini earned 166 total points
ID: 39829407
In earlier versions of Excel you can modify the regular NETWORKDAYS function to treat Friday and Saturday as weekend days by "offsetting" the dates, e.g. like this:

=NETWORKDAYS(A2+1,B2+1)

[+2 would give you Thurs/Fri weekend, +3 Wed/Thurs etc.]

With holidays in H2:H10 you can also exclude holidays with this version

=NETWORKDAYS(A2+1,B2+1,INDEX(H$2:H$10+1,0))

For WORKDAY try this

=WORKDAY(A2+1,C2)-1

where A2 is start date and C2 the number of days to add

Again you can exclude holidays with this version

=WORKDAY(A2+1,C2,INDEX(H$2:H$10+1,0))-1

regards, barry
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now