There are a variety of functions to work with days in Excel. The day of week function (WEEKDAY) is particularly useful for planning and scheduling, for example to determine the timeframe of a project and automatically remove weekends from the total. Continue reading
Comments page 8. Total comments: 284
How to list out every Thursday in between two dates? thank you in advance.
I have a timesheet which weekends are highlighted,I'd like the conditional formatting to highlight a day after, Monday, if holiday falls on a Sunday
Hope can get you help, thanks.
How to apply sum formula for week wise & week starts from monday & ends in sunday, is there any formula in excel which return the sum value week wise that to which automaticaly calculate the sum of Monday to Sunday in the perticular month.Please help in this.
Regards,
Gundu H Danolli
How can I get the 12 week prior Friday from the current date?
hi,
can you please help me.
how can i know which day it was 100 days ago.
is it correct: =today-100 ?
Hi Benjamininfo,
Yep. Just remember to add the parenthesis right after today:
=today()-100
thank you very much. :D
Hi
I am looking to add 39 calendar days from a date (i.e. incl. weekends).
But if the date falls on a Friday/ Saturday/ Sunday, i am looking to show the Thursday before.
Would anyone be able to help, please?
Thanks
Hi,
I am working for a project and for that project we need to calculate number of months between two dates in excel. For instance, I need to calculate the month between: 00-Jan-1964 and 00-Mar-1966. As you can see we don't have exact dates in them. Most of the excel functions that I found online work when I put exact dates in it. But we don't have any exact dates at our disposal. Any help would be greatly appreciated!
Hi,
Please i need you to help me use my spreadsheet to automatically do remaining number of days or countdown between two dates. e.g 02/feb/2016 to 20/June/2016 and for everyday it will automatically update the remaining days to get to 20/June/2016.
Thanks
Hi,
Good day.
I want to know what formula I can use to count the number of a day in a month (ie. the number of Mondays in June2016 or the number of Tuesdays in July2016, etc.) or is there such a formula for this?
Thanks! :)
need to calculate total income for the week.. need to get the total of mon to sat of the week
=IF(A2=WEEKDAY("Monday"),"Meade","Sanchez") Would you tell me how to fix this formula? I want the cell to say "Meade" for Monday, Wednesday, and Friday, and "Sanchez" for the Tue, Thur, Sat,(1st and 3rd "Sun") and 2nd Sun And 4th Sun "Meat" Thank you.
=IF(A2=WEEKDAY("Monday"),"Meade","Sanchez") Would you tell me how to fix this formula? I want the cell to say "Meade" for Monday, Wednesday, and Friday, and "Sanchez" for the Tue, Thur, Sat,Sund (1st and 3rd) and 2nd Sun And 4th Sun "Meat" Thank you.
Great article, thank you! I'm working on a pretty simple spreadsheet, but I've run into an issue with returning the weekday in a column. The formula below works great if there is data in column A. Is there a way to leave the weekday column blank if no date is entered in column A?
=TEXT(A2, "ddd")
I need to make 2 drop downs. One with selection of week 1 to week 8 and I want to limit the date in other drop down. Example if I select week 2 in drop down then other drop down should give me only option of dates starting 6th June to 10th June.
Please tell me if that's possible.
Hi,
I am a Marketing Executive. We have monthly tour plan. So I am trying to make up a formula to check for the current month and as per that the routes will be added to the corresponding dates and Sunday's has to be left blank. Format is
Month Date Route
Can you suggest how to use the formula for this
I am creating a protected 60-day calendar. Cell E2 is unlocked for a date input. The calendar week starts on Monday, going through Sunday (A7-G7). The calendar grid is A8-G8 all the way down to A17-G17. I want to be able to input a date in E2, (ie:5/10/16) and for excel to know that 5/10/16 is a Tuesday, so it automatically inserts 5/10 in the cell B8. I can then formulate for the autofil of the rest of the dates all the way through the end of the 60 days.
I just cant remember how I set this up before, where excel knew which day (monday-sunday) to start the calendar by entering a date in E2...
IF DUE DAY IS SUNDAY. HOW CAN I FIND -1 DAY SATURDAY.
I am trying to create a dynamically updated calendar based on a given date propagating to a 6 months individual calendar grids. I am trying to find out how to auto insert the correct first day of the month under the correct day. Example my project starts Feb 20 so the first calendar grid would show February 1st as the Monday so the second cell from the left of the calendar since my week starts on Sunday.
Hi, Can some one help me to separate time bands as per below through excel formula for each day and date
Weekday 1800-0000 hrs = Prime time
Weekend 0600-0000 hrs = Prime time
Weekday 0000-1700 hrs = Non Prime time
Weekend 0000-0600 hrs = Non Prime time
Hi, Can some one help me to separate time bands as per below through excel formula for each day and date
Weekday 1800-0000 hrs = Prime time
Weekend 0600-0000 hrs = Prime time
Weekday 0000-1700 hrs = Non Prime time
Weekend 0000-0600 hrs = Non Prime time
Week Day Hour PT:NPT
Wednesday 0 NPT
Wednesday 1 NPT
Thursday 2 NPT
Friday 3 NPT
Saturday 4 NPT
Sunday 5 NPT
Monday 6 NPT
Tuesday 7 NPT
Wednesday 8 NPT
Thursday 9 NPT
Friday 10 NPT
Saturday 11 PT
Sunday 12 PT
Monday 13 NPT
Tuesday 14 NPT
Wednesday 15 NPT
Thursday 16 NPT
Friday 17 NPT
Saturday 18 PT
Sunday 19 PT
Monday 20 PT
Tuesday 21 PT
Wednesday 22 PT
Thursday 23 PT
Friday 24 PT
Saturday 25 PT
Thanks in advance
I have scenario such as if in a column contain date weekend or holiday we should get the previous working day.for example Date:04/30/2016 is a Saturday,so I should get the Friday's date (04/29/2016)if this results is a holiday then we should get Thursday's date( 04/28/2016).
Please help me on this!
Hi experts, I'm looking for divine intervention!
I need to be able to enter a date that will count back 14 days and show the Monday ahead e.g. enter 18 February 2016 and get a return of 8 February 2016, however at the same time if I enter a date that is a Monday it will show the previous Monday only e.g. enter 15 February and get 8 February.
I tried using this formula but anytime i enter a date that falls on a Sunday it skips forward to the upcoming Monday...!!??!
=IF(WEEKDAY(D4)<2,D4+2-WEEKDAY(D4),D4+2-7-WEEKDAY(D4))
Make sense? Thanks everyone
I have a timesheet for our employee, weekends are highlighted so are US holidays based on countif formula, my dilemma is if a holiday falls on a Saturday I'd like the conditional formatting to highlight a day before instead and if the holiday falls on a Sunday, I'd like cf to highlight it on the time-sheet a day after, Monday. Please help, thanks,
Svetlana,
Thanks for your tutorial, I want to do finding next the four firday, but without public hoildaym, ie. tomorrow is chrismax hoilday and 7 days later is 1 Jan, so the next four firday would be 8/1, 15/1, 22/1 and 29/1.
How can i do it in execl? thanks a lot
Hello, Jesse,
Please enter the formulas below to 4 different cells:
=WORKDAY.INTL(A1,1,"1111011",$B$1:$B$3)
=WORKDAY.INTL(A1,2,"1111011",$B$1:$B$3)
=WORKDAY.INTL(A1,3,"1111011",$B$1:$B$3)
=WORKDAY.INTL(A1,4,"1111011",$B$1:$B$3)
So you'll find the 1st, 2nd, 3rd and 4th Friday. Please note that range $B$1:$B$3 should contain Public holidays.
Very Very Thanks
Svetlana - I need your expertise as I am truly struggling to find the formula for “next week 1st working day”. Currently I am using this formula =IF(A1="","",A1-WEEKDAY(A1)+2+IF(WEEKDAY(A1)>=2,7)) and it works great where every result returned on Monday.
However, the return date or that Monday is our Public Holidays so it is not going to be our 1st working day of the week. Is there a formula to include Public Holiday? I already have Public Holidays table set up.
Hello, Aziruzam,
The following formula should work for your task:
=WORKDAY.INTL(IF(A1="","",A1-WEEKDAY(A1)+1+IF(WEEKDAY(A1)>=2,7)),1,1,$B$1:$B$3)
Please note that range $B$1:$B$3 should contain Public Holidays.
If I have a Saturday date (12/5/2015) how do I figure out how to get a the Saturday date for 2016?
i want to insert starting day and end day and date in excel as follwos
start date 15.10.2015, end date 16.10.2015
ans. i want 16-16.10.2015
Hello Shiv,
To enter the date in the format 15.10.2015, select the cells, press Ctl+1, switch to Custom and type the following format in the "Type" box:
dd.mm.yyyy
Hi
I want to convert weekday name Mon, Tue, Wed to be converted to no of weekdaylike 1 for sunday, 2 for monday. Can you help me out
Hi Surjeet,
If you have a date displayed as the weekday name, you can use a usual WEEKDAY function like =WEEKDAY(A1)
If those are the text values, you can use the following nested IF's:
=IF(A1="Sun", 1, IF(A1="Mon", 2, IF(A1="Tue", 3, IF(A1="Wed", 4, IF(A1="Thu", 5, IF(A1="Fri", 6, IF(A1="Sat", 7, "")))))))
What if I would like to see the text WE + the month and date (in numeric) to my cell? Like WE 11/02.
Truly appreciate your help.
I want to give employee reviews on the 90th day. If the 90th day falls on a SAT or SUN I want to give the review on the previous FRI instead. How do I use =IF(WEEKDAY function to give the date and not just the text FRI?
For instance, the review date falls on 11/21/2015 a SAT (in Cell B5) but want to give revised review date of 11/20/2015 a FRI (in Cell C5) instead. Or if review falls on 11/22/2015 a SUN (in Cell B5) but want to give revised review date of 11/20/2015 a FRI.
I know I have to subtract 1 (SAT) or 2 (SUN) but when I put -1 or -2 it doesn't work. Please I have tried many different ways to no avail.
Thank you
Hi Svetlana
It would be a great help if you can tell me the syntax to use a date both as holidays and weekdays (As per situations).
For example: 1-April-2016 is a Holiday, but if task is done on 1-April-2016 (start date) then the date should be included else excluded.
Waiting for positive reply :)
Hi!
Thank you for the article! In a range of dates I need to know how many days there are in one month and how many days in the following month!
Example:
30/05/2015-13/06/2015 : 2 days in May and 12 days in June.
Is it possible? Thank you ;)
Hi
I want to calculate moving weekly average from the data column. The start date should Sunday ending on Saturday. So the average # should be same for that week and the same for the next week and so on. This is monitor weekly permit limit for a process plant data. I don't need rolling weekly average but moving fixed week average. Thanks.
Hi, I want the spreadsheet to calculate as of the start of the working week (Monday) each time I open it. I use the now function which gives an indication but my data would be more accurate if dated as of the start of week. Can you suggest formula for this please?
WE NEED TO MAKE A SCHEDULE IN THAT 2 PEOPLE WILL WORK EACH WEEKEND (TWO PEOPLE ON SATURDAY AND ONE PERSON ON SUNDAY ) THERE ARE 8 PEOPLE TOTAL TO WORK - HOW WOULD WE GENERATE A RANDOM ROTATION FOR SOMETHING LIKE THIS. IF IT IS NOT RANDOM THE SAME PEOPLE WILL WORK ALL HOLIDAY WEEKENDS
THANK YOU
Hi,
Great article, thank you. Not sure if I missed it - I need to count working dates between 2 dates and then working dates relating to the previous month. I can do it long way of cause, but maybe there is an easier way?
example:
25/07/15-28/08/15 -25 work days - 4 relates to July
Hi Namesake :)
You can use the NETWORKDAYS function, e.g. =NETWORKDAYS(A2,B2) where A2 is the start date and B2 is the end date.
Is it possible to only do certain dates and days of the week, say every Monday, Wednesday, Friday for a certain time frame? Thank you.
Hi Luvly,
It depends on exactly what you mean by "do certain dates". Can you clarify please?
=IF(A2=WEEKDAY("Monday"),"Meade","Sanchez") Would you tell me how to fix this formula? I want the cell to say "Meade" for Monday, Wednesday, and Friday, and "Sanchez" for the ether days. Thank you.
Hi!
You can use the following formula:
=IF(OR(WEEKDAY(A13)=2, WEEKDAY(A13)=4, WEEKDAY(A13)=7), "Meade","Sanchez")
If you are curious to learn more about the WEEKDAY function, please check out the following tutorial:
https://www.ablebits.com/office-addins-blog/excel-weekday-function/
I need to set up a chart with backdating from an event date. Some of those days have to be on a Tuesday. Is it possible to set a formula so that the dates returned are always on a Tuesday, regardless of the day of the week of the original event date? Or, do I have to set each event individually, rather than cut and paste?
Dependent on how your data is.
Conditional format; =weekday(date(year,month,day))=3
Anything in *s mean link it to relevant cell. I have numbers 1-31 in row 1 for example and months (Jan-15 format) then from B2 till the end of my table I have the conditional format on. The calendar is colour co-ordinated. The date formula only likes numbers, if you are going to link to the "Jan-15" then that part of the formula has to be; date(year(*cell*),month(*cell*),*day*)
Sunday is day 1, therefore Tuesday day 3
what if I want to calculate the number of days between two dates but only for weekdays (exclude weekend)? thanks.
Hi Saehu,
I have just published a new article that covers exactly this task. It explains how to count weekdays excluding weekends and, optionally, holidays:
https://www.ablebits.com/office-addins-blog/excel-workday-networkdays-functions/