Joined
Feb 25, 2013
Messages
10
People always ask 'can i add x amount of days to a date excluding weekends/holidays?'

I want to know;

Can I add x amount of days to a date, excluding specific days of the week i.e mondays and tuesdays?

So if I want to add 20 days to a date but not count mondays or tuesdays? Is that possible? :eek:


Please help me!

All input appreciated
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Welcome to the board.

Which version of Excel do you have?
It's pretty easy in XL2010

=WORKDAY.INTL(A1,10,"1100000")

The string "1100000" represents each day Monday through Sunday.
1 means the day is excluded
0 means the day is counted.
 
Upvote 0
If you have at least xl2010 then you can use WORKDAY.INTL:


Excel 2010
AB
125/02/201324/03/2013
Sheet1
Cell Formulas
RangeFormula
B1=WORKDAY.INTL(A1,20,3)
Check Excel Help for the third argument options
 
Upvote 0
Hello guys, thanks for responding

I have excel 2010.

The issue is the excluded days will be based on an input work pattern

Is it possible to exclude days that are based on a range of cells (which will change based on selected working days)?

Sorry if this is too complicated or confusing.

I can attach my spreadsheet if necessary?
 
Upvote 0
Can you be specific?
How EXACTLY should the formula know which days to include/exclude ?
 
Upvote 0
The user selects their working days based on a 'Yes/No' drop-down list.

So if they select 'No' beside Tuesday, that means Tuesday should be excluded
 
Upvote 0
Can you be more specific please..
So you have 7 cells with yes or no..
Which 7 Cells? Are they in E1:K1 ?? Does E1=Sunday F1=Monday etc..
Which cell contains the beginning date?
Which cell contains the number of days to add?


Yes this can be done, but not easily. That's why we need the specifics.
and it will require the use of "Helper" cells.
 
Upvote 0
Ok so if the user selects 'No' next to Monday, the cell next to 'No' populates with the number '2' - in line with the excel standard of 2= Monday

And if they select 'No' next to Tuesday, the cell next to 'No' populates with the number '3' - and so forth

I have this range names as ExcludeDaysOfWeek, so excel recognises these numbers as corresponding to the days that have to be excluded, but i'm not even sure if i can use the range
 
Upvote 0
Here is an example of how I would do it.

The user selects their days worked in F2:F8. Yes = working, No = Not Working
The week MUST be in Monday through Sunday fassion.
The data can be entered in F2:F8 in any order you like, but the formula in G10 MUST go in order from Monday to Sunday.

Excel Workbook
ABCDEFG
1Start DateNumber to addResultPattern
22/25/2013103/11/2013SundayYes0
3MondayYes0
4TuesdayNo1
5WednesdayYes0
6ThursdayYes0
7FridayNo1
8SaturdayYes0
9
100010010
Sheet1
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,398
Latest member
rjsteward

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top