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 3. Total comments: 284
Hi ther, plz help me on this,
I have to do fortnightly payments (on Every alternate Friday) if i received a job card on monday or Thursday, that payment date( due date) should be reflect as alternative friday date on received date in excel payment sheet.
Please help me on this.
Svetlana, Merry me!
Dear Sir,
My doubt is quite a basic one. I have the Seven Days of the week. I want to now create a dummy for those days as
Monday to Thursday = Weekday
Friday to Sunday = Weekend
How do I do that in Excel?
Hello!
Use the WORKDAY.INTL and NETWORKDAYS.INTL functions.
You can learn more about WORKDAY.INTL and NETWORKDAYS.INTL functions in this article: Calculating weekdays in Excel
I hope this will help.
Hello
I want to identify last Thursday of each month from all Thursdays by a formula from given dates of style 04FEB2021,11FEB2021, and so on. Thanking you in advance.
Hello!
To find the last Thursday of the month use this formula
=EOMONTH($A2,0)-MOD(EOMONTH($A2,0) +2,7)
A2 - cell with date.
To convert text to date, I recommend reading this article.
Hello,
I have a very complex tracking sheet for my work.
One of the functions counts the amounts of any specified day within a date range.
I would like to add one more part to this formula and am not sure how.
Current formula:
=SUMPRODUCT(--(WEEKDAY(ROW(INDIRECT(Z2&":"&AA2)))=V2))
Is there a way so that my formula will equal 9, (instead of 10) in cell AC when it is complete? The formula would need to use a list of populated holidays from another sheet titled “Lists”. That range of holidays is - F2:F5. When it calculates, it will determine that because the Day after thanksgiving is a Friday and falls within that range, it will automatically subtract an additional day.
How can this be accomplished?
Thank you in advance!
Hello!
Unfortunately, without seeing your data it is impossible to give you advice.
I'm sorry, it is not very clear what result you want to get. Could you please describe your task in more detail and send us a small sample workbook with the source data and expected result to support@ablebits.com? Please shorten your tables to 10-20 rows/columns and include the link to your blog comment.
We'll look into your task and try to help.
I received your email and it works beautifully!!
Thank you!! LIFE SAVER!!
I have a production schedule on excel that the date column feeds off another cell. Basically todays date , plus the amount of time in the daily work schedule. Formula currently is = I3 +TODAY() So if today is 8/28 and I have 20 + jobs in lines I3,I4,........and so on. Each one adds up to .25 of a 8 hr shift. So my sheet shows 8/28 for the 1st 4 lines, on the 5th line it turns to 8/29 as it should as my 8 hr capacity is used up. My issue is I cant figure out how to take out Sat. and Sun and holidays from being populated as dates, therefore making it look like I can complete jobs sooner cause its using those 2 day we dont work on.
Hello!
If I understand your task correctly, the following formula should work for you:
=WORKDAY(TODAY(),I3,E1:E6)
For more information on how to add weekdays to a date, read here.
I need to generate a formula to where If Tuesday a cell value = 1 and if any other day of the week the cell value = 2.
I have been trying to work with the =Weekday but so far, unable to get it to work.
Thanks for any advice in working through this.
Thanks
John
sir i need formula for create a list of working days dates ignore Saturday,Sunday dates require date list based on date in a cell reference (like 7/1/2020,7/2/2020,7/3/2020.7/6/2020,7/7/2020) thank you
Hello!
I recommend reading this article on calculating working days. If there are difficulties, give an example of the source data and the expected result.
It’ll help me understand it better and find a solution for you.
I have a cell with a date that is changed each week in A1 and formula to give me the day of week starting with Sunday ending Saturday and also give the date of each day based on the date in cell A1. The following formula is used in each cell C5:I5 =DATE(YEAR($A$1),MONTH($A$1),DAY($A$1)) C5 is Sunday Then D5:I5 adjust the Day($A$1+1) it's +1 for Monday,+2 for Tuesday,+3 for Wednesday,+4 for Thursday,+5 for Friday,+6 Saturday. My problem is since June only has 30 days it skewed the DAYS of the week but the DATE is correct, so it reads Sunday 28th Monday 29th Tuesday 30th Monday 1st Thursday 2nd Wednesday 3rd Thursday 4th. If I change the formula starting on the first thru 4th to be =DATE(YEAR($A$1),MONTH($A$1+6),DAY(I5+1)) then it works until there is a change from 30 to 31 day month.
Is there a formula that will recognize and make the adjustment automatically?
Hello Cindy!
I propose the formula = $ A $ 1 in cell C5, the formula = $ A $ 1 + 1 in cell D5, the formula = $ A $ 1 + 2 in cell E5, and so on. I think this will help solve the problem.
Hi, please would you know the function or a way i can use to get the weekend (Saturday) date of a particular day in a week. Let's say i want to automatically get the weekend date of today (6/23/2020) in my cell. conditional formatting didn't work for me. Thanks in anticipation.
Hello Michael!
If I understand your task correctly, the following formula should work for you:
=A1+(8-WEEKDAY(A1,16))
In WEEKDAY function, use parameter 16
I hope this will help
Wooooooow! I wish could give a hug right now. It worked perfectly. You saved me a lot of stress. Thanks a lot, great work you're doing here!
=OrText($B$3,"DDD") ="SAT",text($B$3,"DDD")="SUN" Hi.am trying to use this formula in conditional formating, to highlight Saturdays and sundays..can you please help me... there is something am missing... can you please help me
Hello!
The formula below will do the trick for you:
=WEEKDAY(B3,2) > 5
I hope my advice will help you solve your task.
Thank you..i think there is something wrong with my excel...all the other formulas are working fine,, but only this weekend highlighting formula is not working for me.
Hello
Can you help me?
I need to add 2 days if the date falls on a Saturday and if it falls on sundays, we add 1 day
Hello!
You need to determine the day of the week using the WEEKDAY function and apply it as a condition in the IF function
=IF(WEEKDAY(A7,2)=7, A7+1, IF(WEEKDAY(A7,2)=6, A7+2,A7))
Hope this is what you need.
=OrText($B$3,"DDD") ="SAT",text($B$3,"DDD")="SUN" Hi.am trying to use this formula in conditional formating, to highlight Saturdays and sundays..can you please help me... there is something am missing... can you please help me
Hi, I am having an issue and I do not understand why this is happening.
I am using Google Spreadsheet.
My year begins on a Sunday, December 29th (cell B1) and ends on Saturday, January 4th (cell B4)
Since the formula WEEKNUM refers to the date in cell B1, and is a Sunday, I omitted the type since the week begins on a Sunday, per Excel reference sheet: -> System 1: The week containing January 1 is the first week of the year, and is numbered week 1.
But whatever I do, it always returns as week number 53 instead of 1, as it should be.
The second issue is that the second week begins on Sunday, January 5th (cell J1) and ends on Saturday, January 11th (cell P1). Since the formula still refers to the Sunday of the first day of this week (January 5th), It returns as week number 2.
That would be correct week number is the first week wasn't considered as week #1.
Because of this issue, Week 1 does not exist and causes problems with futur weeks and years.
I would be very grateful if you could help me find a solution to my problem.
Thank you very much and have a good day :)
Sorry, I meant to say in my second sentence: "I am using Excel 2013, I got a bit distracted"
Hello,
I have a question and maybe someone could help me here.
How can I make a formula to count for the whole year weeks and dates with more then 1 cell with the same date?
FX:
Week1 01/01/2020
Week1 01/01/2020
week1 02/01/2020
week1 02/01/2020
Thank you in advance and have a nice day!
Hello!
I’m sorry but your task is not entirely clear to me.
For me to be able to help you better, please describe your task in more detail. Please let me know in more detail what you were trying to find, what formula you used and what problem or error occurred. Give an example of the source data and the expected result. For example, Week1 01/01/2020 - is it one cell or several?
It’ll help me understand it better and find a solution for you. Thank you.
Hello,
I am new to excel. Could you please help me? Is it possible to set a range by using "TODAY()" with a certain cell? For example: =SUMPRODUCT(--(WEEKDAY(TODAY():B34)={3,5}))
Hello!
I’m sorry but your task is not entirely clear to me.
In the WEEKDAY function, you can record WEEKDAY(B33:B34). And in cell B33 write the formula =TODAY(). For me to be able to help you better, please describe your task in more detail. Please let me know in more detail what you were trying to find, what problem or error occurred. It’ll help me understand it better and find a solution for you. Thank you.
I have a table of lunch expenses. I have dates of May on B4:B34, the expenses on E4:E34, and a fixed budget for the month. I need to sum all lunch expenses except Tuesdays and Thursdays and figure out the left budget for lunch expense to spend till the end of the month. So What I want is to sum all Tuesdays and Thursdays from today to the end of the month so every morning whenever I open the file I would know how much is left to spend for lunch. That formula is just a part portion. Sorry, if I didn't make it clear still.
Hello!
To add all expenses for Tuesdays and Thursdays, use the formula
=SUMPRODUCT((WEEKDAY(B4:B34)=3) + (WEEKDAY(B4:B34)=5),E4:E34)
I hope this will help, otherwise please do not hesitate to contact me anytime.
Hello,
Thanks for taking time to help me out. What I want to do though is to use "today()" within sumproduct fuction. I want the computer automatically calculate left days of the month from "today" excluding Tuesdays and Thursdays, not the amount of the expenses but the actually days.
I need the mathematical number sentence like this:
Lunch Budget ÷ (Days Left - (Tuesdays & Thursdays from the left days)*)
* Since I have to check the left lunch budget each day I want to use "today()" function.
I came up with this formula and it worked:
P27(LUNCH BUDGET) | B34(LAST DAY OF THE MONTH) | B31(TODAY'S DATE)
P27 / ((NETWORKDAYS(TODAY(),B34)) - SUMPRODUCT(--(WEEKDAY(B31:B34)={3,5})))
but, I want to make it like this:
P27 / ((NETWORKDAYS(TODAY(),B34)) - SUMPRODUCT(--(WEEKDAY(today():B34)={3,5}))) or
P27 / ((NETWORKDAYS(TODAY(),B34)) - SUMPRODUCT(--(NETWORKDAYS(today(),B34)={3,5})))
but both won't work.
I hope it help you to understand better as to what I want to figure out.
Please help and thank you so much!
Hi,
I try to get a result for the following example: if today is 04/14/2020, and last month 03/14/2020 fell on the weekend, what formula does it apply to bring me the next working day in March = 03/16/2020?
Thx
Hello Cristian!
If I understand your task correctly, maybe the following formula should work for you:
=IF(WEEKDAY(EDATE(A1,-1))>5, WORKDAY(EDATE(A1,-1)-1,1), EDATE(A1,-1))
Hope you’ll find this information helpful.
In weeknum suggestions why we have to use different numbers for monday like 2,3(0-6),11 and for sunday 1,17. For ex: for sunday we can use 1 right, why 17 also there for sunday, and where will have to use 17, is there any logic for using 1 or 17, like here we have to use only 17 for sunday but not 1, please let me know this, thankyou
Hello Kiwi!
The list of possible values for the return_type argument in the WEEKDAY function is set by Microsoft. You simply choose a type from the list which suits better for your task. You can use any of the them as they just determine what day of the week to use as the first day.
Hi, I am trying something a bit different than what ever everyone else seems to be doing. I hope you can help me as I've been trying different ways for a very long time now and am getting nowhere fast.
I am building a weekly schedule and can allocate weekdays easily. I am trying to enter holidays into this formula but it does not work. I don't care about how many days it takes. I am only concerned with what my end date will be (without weekends or holidays).
This is what I've been entering so far..Example (=weekday,1). "weekday" being in the box next to it. then I simply follow through with that formula across the row and it self tabulates the weekdays only. When I try to enter a holiday with it...example (=weekday,1, B6:B12) "these would be dates in a different box", it does nothing. hope this makes sense. Please help if you can.
Hello Rob!
If I understand your task correctly, the following formula should work for you:
=IF(AND(WEEKDAY(A1,2)<6,ISNA(VLOOKUP(A1,$G$1:$G$7,1,FALSE))),"workday","holiday")
where $G$1:$G$7 - list of holidays.
10-1-2019 1:30AM, - 12-1-2020 3:10AM total year,munth,dd, Hh,mm Excel convert plg sent
i have this date 08-01-10 11:15
and i want to transform it to day of the week...
any suggestions?
Day 1 in Excel is January 1, 1900.
Weekday of this date gives a Sunday.
However, when you Google for a calendar image of January 1900 you get a Monday.
Can anyone explain this anomaly?
Thanks,
Fred
I have a range of random dates in column b3:b30 and wish to find the oldest date and convert to the corresponding Monday
How do I nest and use the MIN and Weekday function in excel?
I have problem when creating =WEEKDAY($A2,2)>5 for year 2020 Feb 28 cross over to Mar 01. My "Sat" did not appear. It turns out to be a "Sun". I've checked the cell, the date is 01/03/2020 but ddd turn out to be a "Sun". How can I solve this?
I am using conditional formatting to highlight weekends. If the first falls on a weekend it does not highlight. I am using =OR(WEEKDAY($A1)=7,WEEKDAY($A1)=1). What is wrong?
Hello Bill,
Since 30 and 31 of December is the 53rd week of 2019 and 1st to 5th January is the first week of 2020, the formula for this particular week needs some modification. Please try the one below:
=IF(OR(WEEKNUM($A1, 1) = 53,WEEKNUM($A1, 1) = 1), TRUE)
Hope it'll work for you.
Thanks for the tip, but it didn't quite work. I am using a new spreadsheet for the year. However, I did get it to work by starting it in the correct cell (not $A1 but $A2). I like your site, I have learned a lot from it.
Thank you for replying, Bill. Glad to hear you found a solution!
Sir..i need to formula.one cell i enter month and i get result in column sequences ..wed..thu..sun..wed..thu..sun..wed..thu with date for this month
Can I actually do this? :)
I have this format in the cells for date and time:
04:35 PM EDT Oct 29 2019
How can I create a formula for finding how many minutes elapsed between cells in column A (arrival time) and column B (departure time)?
I want to calculate how long my visitors spent in my office.
Hi Team,
I am working in a BPO industry. I need to track the production as well as the other details in day wise. For example The date is 1st November, in need to track the Target, Achieved, Production. So I have merged the 1st November header has been merged into three above cells. I do not have any issues on this. Please help me out to convert into weekly basis with the same header.
I'm looking to calculate the date of the year based on a day.
I'm doing some analysis using 31 years of day and have a mean value, 45 (i.e. day 45 of 365). I want to convert 45 to represent a date, so I don't have a generic year to plug in.
What would be the excel formula to do this?
How can i calculate the first (1st) day of each calendar month or the immediately preceding Business Day if the first (1st) day of such calendar month is not a Business Day?
Is there a way to calculate the day of the week with the numbering 1-14 instead of 1-7?
hi,
i need to calculate age between 2 dates excluding weekends?
Hi, I need to return a custom day (i.e S for Sunday and so forth).. I used the CHOOSE and WEEKDAy function but then the formula doesn't drag across and then follow the next day sequence. It's just copying the S from the cell before. How do I get this formula to work across the schedule I am creating? =CHOOSE(WEEKDAY(cell reference), "S", "M", "T", etc etc. Can you please help as I will using this to setup monthly work schedules
Thanks, very helpfull
Hello . I'm following all the functions from last week. You are Awesome because all your examples are very useful..
I have once quick question for you , Please help me out because I'm stuck here.
Question : For ex : I have a one date as a reference and from this reference date i need to get 3 different dates i.e ( 7 days before the ref date, 2 days before the ref date & 1 day before the ref date) but the twist is that the new date should fall on Weekday and not on Weekend( i.e Sat & sun).
Please help me out , i'm trying to figure out this from many days.
Thank you in Advance!!!!
I am working on something and I need to enter a formula that counts a large number of days of the week that automatically adds up how many for example Fridays are in that list.
may i get the answer in Microsoft Excel to these questions and reassure me if I can be selected. 1.sunday - Saturday + 4 Monday =? , Thursday - 3 Saturday + monthly total = 2. Summation = Sunday of the month divided by summation Monday of the month. 3. 40% of the Wednesday of the month multiplying by 20% of Friday. I'm counting on you really.
Condition 1 should meet any text
Condition 2 if the date exceeds or equal the current date (eg: 16th of any month), it should return a value 2
Condition 3 if the date is between 1st and 15th of the same month, it should return a value of 1
Condition 4 if the date is of the preceding month, it should return a value of 0
My formula
=if(and(a1="A", or(today()>=date(2019,3,16), 2, if(a1="A", or(today()=date(2019,3,1),1, if(a1="A", or(today()<date(2019,3,1),0)))
This formula is not working . could you please let me know what is the syntax error
Hello, I've got a problem with a specific formula.
I have 2 cells generating dates:
Todays date (using =now () ) - In the format of dd-mm-yy hh:mm:ss
Working date (using =workday(todays date,5)+time(15,0,0) so it adds +5 to working date + declares time of 15:00:00. For my purpose, I need the format to remain dd-mm-yyyy 15:00:00.
The issue that I'm having is that once the time passes 15:30:00 on today's date (=now() function) - I need the working date to increase from 5 to 6, so it becomes tomorrow's work.
Can you please advise on this?
Kind Regards,
James.
I forgot to add, this will probably need to be converted to an IF function, my cell references are:
Todays Date = I2 ( =NOW() )
Working Date = I3 ( =WORKDAY(I2,5)+TIME(15,0,0) )
Say I want an "IF" formula that checks a cell (a1) with a date indicated then on a different cell (b1) it validates the indicated date on cell A1 that its already pass 3 business days once confirmed cell B1 would indicate as a "Yes" if not then a "No", is this possible?
Dear sir i want to account the month. from start date to end date
Example
01-12-2018 - 01-06-2018 total 06 month
If the date field is blank how do I get the return cell day of the week to stay blank? The =WEEKDAY(A2) formula is working fine and reporting as needed into the day of the week when the date is filled in, but if the date cell is blank yet (haven't added that data line yet) how do I get the day of the week cell to stay blank also?
Try:
=iferror(weekday(a2), " ")
Faisal:
You want to use an Excel function NETWORKDAYS or WORKDAYS. There is an excellent article here on AbleBits that explains these functions. The address is:
https://www.ablebits.com/office-addins-blog/excel-workday-networkdays-functions/
or simply search the site for the functions.
hi
i want to calculate total working days in a whole month using conditions that where in the cell there is Saturday and sunday dont count it, skip it and count only mon, tue, wed, thu, fri as working day.
how i can find working days using countif or any other fuction?
please help
i need the date range for example
1-10-2018
2-10-2018
if 3 is Sunday then excluded the next day enter / delete the Sunday
04-10-2018
05-10-2018
Hi,
I need a formula which calculates if a person has worked on 2 consecutive Fridays in a month.
I need to convert week in to days. for example if I enter Week-23 in 52 weeks of a year automatically it will fill the dates 5 working days form Monday to Friday.
Any one help please.
I need a formula that will skip Sunday. I start with a date from another cell,"Friday, October 19, 2018". In the next cell I write =A3+1, but I must miss Sunday. How do I write a formula for this?
I'm struggling with my Report, My requirement is based on Date Column in my Excel
1. to fetch Today() and Today()+1 from weekdays starting from Monday to Thursday and
2. For Friday, it has to fetch the row from friday,Saturday, Sunday and Monday.
I have created a column index after date column and trying to apply the below formula, But it is not working. Could anyone please help?
(A2 is my date column)
=IF((AND(WEEKDAY(A2,1)=1,WEEKDAY(A2,1)=2,WEEKDAY(A2,1)=6,WEEKDAY(A2,1)=7)),"","Closed"),
IF((AND(A2>=TODAY(), A2<=TODAY()+1)), "", "Closed")
i need your help, our work days (Sunday to Thursday), once you input the date the following status should be done like these;
1. if the closing date is today = status "Today"
2. if the closing date before 2 days = status "Attention required!"
3. if the closing date before 3 to 7 days= status "Still time"
4. if the closing date past = status "Overdue"
5. if the closing days are day off (Friday and Saturday) it should not be counted.
I have an excel sheet Where I need one column to display a date and another collum to display what date is 4 days away but only count business days. For example, Monday to display that same Friday in the next column, Tuesday to display the following Monday's date, Wednesday the next Tuesday so on and so on.
CJ:
I think what you want to use is the WORKDAY function.
Where the first date is in A18 and you want a workday 4 days from the date in A18 enter this in B18:
=WORKDAY(A18,4)
So, if the date in A18 is 6/7/18 four workdays forward is displayed in B18 as 6/13/18.
If you need to know the day of the week 6/13/18 is then this will show it in C18:
=CHOOSE(WEEKDAY(B4),"Sun","Mon","Tue","Wed","Thu","Fri","Sat")
You can enter "Sunday" or "SU" or Sunday in another language.