Skip weekends while autofilling dates in excel
Often you may want to fill a column only with weekday dates instead of all dates. Here is a simple trick you can use instead of writing nifty if formulas or manually entering the weekday dates.
When you auto fill dates by dragging mouse (or using menu > edit > fill > series > selecting “type: date”), just use weekdays only option as shown below.
Now you dont have to create project plans with weekends in it
Do you want to be awesome in Excel?
Here is a smart way to become awesome in Excel. Just signup for my Excel newsletter. Every week you will receive an Excel tip, tutorial, template or example delivered to your inbox. What more, as a joining bonus, I am giving away a 25 page eBook containing 95 Excel tips & tricks. Please signup below:
Your email address is safe with us. Our policies
More awesome tips for you:
 

Leave a Reply
Google maps 3d building outlines – wow  Copy like a cat – paste like a pro : 17 excel pasting tricks you must know 
26 Responses to “Skip weekends while autofilling dates in excel”
[…] Original post by Chandoo […]
Hi,
Is there any way that I will choose which are my “working days”?
means, I want to leave also Friday as a free day and not only Saturday.
Or, maybe someday I will pick Tuesday as a day off.
I need to also peek Wednessday, Thursday and Friday as days off. Also, for Tuesday, I would need to leave it off once every two weeks. Is there a way to easy achieve this, so that I won’t actually add to my workload?
Hi Mihai… you can use pattern fill feature to do this. Simply follow steps in below demo.
Hi,
I am using MS Office 2007 and for some reason, it does not show me these options. It just shows me 3 options:
Copy Cell (Not sure about the exact text)
Copy with Formatting
Copy without Formatting
Any idea how to get those options up?
Regards,
Deep
@Deep : I am not so well versed with 2007, but here is how you can do this using menus:
enter first date of the series
select the range you want to fill
go to menu > edit > fill > series
in the dialog, select date as the series type and “weekdays only” option
press ok…
Let me know if this doesnt work…
Now that was FAST!!!
I tried it but unfortunately it didn’t work..
Here is the screenshot:
http://img291.imageshack.us/img291/6573/excelsheetyr2.gif
This is what I tried..
I put the date in one row, in another row, added some calculations (as you can see in the image) and drag the content in other rows..
I could not find any Edit menu so i just clicked on the icon as you have shown in the 2nd image..
I hope I did the right thing…
Hmm…
there should be an edit menu as far as I know. Let me check that…
meanwhile… if it works you can use formulas to fill the series.
1. just enter the first date
2. in the 2nd row, enter a formula like =if(weekday(firstdatecell,2)=6,firstdatecell+2, firstdatecell+1)
3. copy the formula over the rest of the range…
@Deep:
you have to use the autofill handle, the small box at the lower right of the active cell. Right click on the autofill handle and drag down to the cells you want to autofill. A menu pops up showing the weekdays only option and others.
@Chandoo – Thanks but it did not work with my calculations.
@Robert – Yes, it worked this time but I guess, in my case it won’t work as I want to add up the days from the column on the left. (As shown in the image)
Basically this is what I want:
1. I want to define project start date
2. There are no. of days assigned for each module
3. I want excel to calculate the date automatically. (By adding up the no. of days and deducting the weekends)
Any kind of help is appriciated.
Reagrds,
Deep
@Deep,
sorry, I misunderstood your question, I thought you would be searching for the autofillfunction only (values).
If I got your request corrctly now, you could use the WORKDAYfunction, returning the date before or after a specified number of workdays.
In Excel 2003 and earlier the AddIn Analysis Toolpak has to be installed, but since you are using 2007, it should work immediately.
@Deep.. as Robert suggested, Workday is what you should be using. It will calculate future date based number of working days you want to add to input date. Also, you can use this with your own list of holidays.
Thanks Robert, Chandoo.. I will try the things..
I tried it and this time it worked.. Thanks to both of you.. you guys made my life much more easier
[…] You can also customize excel lists so that you can autofill, lets say bank holidays in your country or types of beer in your pub. One more auto fill trick. […]
Hello,
I understand how to turn off the weekend values for a date fill in a regular auto fill. But, what if you are trying to create a custom one, that counts the amount of days in the formula bar, like 2 days, then 5 days, then 1 day etc etc etc, but they must be working days only and they must not include the weekends.
can that be done?
thanks!
hi..
i’m using excel 2007
I’m trying to insert current date automatically
then it suppose not to change after i save and open it on the next day.I need it to stay on the issued date.
i’m using Today function and it is not well work 4 me.
anybody can help to resolve my prob here?
please…
Hi guys,
How about if I just wanna fill up with weekend? The way I am doing now is using the function weekday and use filter to get weekend. Would appreciate if any one comes up with a better idea. Thank you very much.
Regards
Cheng
What happened to being able to indicate the series by adding a few cells and then using the autofill to copy? I can’t get this to work – I need 4 rows with the same date skipping weekends.
2/6/2012
2/6/2012
2/6/2012
2/6/2012
2/7/2012
2/7/2012
2/7/2012
2/7/2012
2/8/2012
2/8/2012
2/8/2012
2/8/2012
2/9/2012
2/9/2012
2/9/2012
2/9/2012
Hi Kathy, sorry for a late comment. However, here’s the solution.
1.) put your 1st desired date in the 1st 4 cells required (e.g. <cell A1:A4> 2/6/2012)
2.) put the following formula as is in the following four cell (i.e. A5:A8)
=IF(WEEKDAY(A1,2)=5,A1+3, A1+1)
=IF(WEEKDAY(A2,2)=5,A2+3, A1+1)
=IF(WEEKDAY(A2,2)=5,A2+3, A1+1)
=IF(WEEKDAY(A2,2)=5,A2+3, A1+1)
Note: “=5” denotes the number of working days in the week
“+3” denotes the number of days on weekends.
“+1” last denotes the number of days after the working date.
3.) Finally, select cells A4:A8 and then drag drown for furthur dates. The formula will skip Saturday & Sunday in the dates.
Let me know, if you want to tweak the formula as per other ways.
Kamlesh: Thanks for the formula. That was what I was looking for. It works the same in Google Docs Spreadsheets. At first I thought it didn’t and did some unnecessary tweaking to make it work.
I was confused by the “IF(WEEKDAY(A2,2)” the modifier 2. I took it out and surpise, the formula didn’t work right. I changed the 5 to 6 and then it worked. Turns out, (you probably know this) the default week starts with Sunday. Using 2 makes it start with Monday.
Any way, I didn’t know about the Weekday function. Thanks for sharing this post.
At this moment I am going to do my breakfast, when having my breakfast
coming yet again to read further news.
Hi,
I’m using excel 2007
I’m trying to calculate a workday
4 nov 2014(a1) to 12 nov 2014(a2)
Normally i’m using Int formula to do this
=int(a2)int(a1)
But, hey thats including weekend too… 😀
how do you calculate workday with this condition ?
and if there is not only those day, i mean in a month or two
Thanks before
sagari
@Sagari
=NETWORKDAYS.INTL(DATE(2014,11,4),DATE(2014,11,12),1)
=7
You can also include holidays into the formula by having a list of holidays in say A1:A10
Then use
=NETWORKDAYS.INTL(DATE(2014,11,4),DATE(2014,11,12),1,A1:A10)
Thanks for replying
Get #NAME? in return when using NETWORKDAYS.INTL
But get 7 with NETWORKDAYS
why ??
Hi
i had a query while making a template for one of my school daily task.
Most of the work in these template includes copy from webpage and paste in the template.
so the problem here is, whenevr me or my mates try to do ctrl+v
the format of the cell changes automatically.
I suggested them to use ctrl+alt+v (text) to paste
but they are not ok with it. they want me to make template in such a way that it should work with normal ctrl +v
Any ideas guys ?