Перейти до основного матеріалу

Як додати кількість робочих / робочих днів або годин до дати в Excel?

Можливо, вам доведеться додати кількість робочих днів або годин до дати, щоб знати точний час, коли ви виконаєте завдання протягом робочого часу. У цій статті ми покажемо вам способи додавання кількості робочих / робочих днів або годин до дати в Excel.

Додайте кількість робочих днів до дати за допомогою формули

Додайте кількість робочих годин до дати за допомогою формули


Додайте кількість робочих днів до дати за допомогою формули

Припустимо, дата 2016/1/5 розміщується в комірці А2, якщо ви хочете додати до неї лише 12 днів, включаючи робочі дні без вихідних, зробіть наступне.

1. Виділіть порожню комірку, введіть формулу = Робочий день (A2,12) в Бар Формула, а потім натисніть Що натомість? Створіть віртуальну версію себе у ключ. Дивіться знімок екрана:

Тоді ви отримаєте дату після додавання 12 робочих днів.

примітки:

1. У формулі A2 - клітинка містить дату, до якої потрібно додати робочі дні, 12 - кількість робочих днів, які ви додасте до дати. Будь ласка, змініть їх, як вам потрібно.

2. За допомогою наведеної вище формули ви отримаєте результат без урахування вихідних. Але це може включати деякі відпустки після обчислення. Якщо ви хочете виключити вихідні та святкові дні, застосуйте цю формулу = Робочий день (A2, B2, C2).

doc додає робочі години до дати 1

У цій формулі A2 містить дату, до якої ви додасте робочі дні, B2 - кількість робочих днів, а C2 визначає дату відпустки.

3. Після застосування формул, якщо ви отримаєте 5-значне число, перетворіть формат комірки у формат дати.


Додайте кількість робочих годин до дати за допомогою формули

Припустимо, у вас є дата та час початку, кількість робочих годин, необхідних для додавання, час початку та закінчення робочого часу та відпустка, яку ви хочете виключити, як показано на знімку екрана нижче. Щоб додати кількість робочих годин до дати, будь-ласка, зробіть наступне.

doc додає робочі години до дати 1

1. Виділіть порожню комірку (каже комірка С2), введіть наступну формулу в рядок формул і натисніть клавішу Що натомість? Створіть віртуальну версію себе у ключ

=WORKDAY(A2,INT(B2/8)+IF(TIME(HOUR(A2),MINUTE(A2),SECOND(A2))+TIME(MOD(B2,8),MOD(MOD(B2,8),1)*60,0)>
$F$2,1,0),$G$2:$G$2)+IF(TIME(HOUR(A2),MINUTE(A2),SECOND(A2))+TIME(MOD(B2,8),MOD(MOD(B2,8),1)*60,0)>$F$2,$E$2
+TIME(HOUR(A2),MINUTE(A2),SECOND(A2))+TIME(MOD(B2,8),MOD(MOD(B2,8),1)*60,0)-$F$2,TIME(HOUR(A2),MINUTE(A2),SECOND(A2))
+ ЧАС (MOD (B2,8), MOD (MOD (B2,8), 1) * 60,0))

Тоді ви можете побачити результат, як показано на знімку екрана нижче.

doc додає робочі години до дати 1

примітки:

1. У формулі A2 - клітинка містить дату, B2 - робочий час, який ви додасте до дати, E2 та F2 - час початку та закінчення робочого часу, а $ G $ 2 - конкретна дата відпустки. Ви можете змінити їх відповідно до своїх потреб.

2. Якщо після застосування цієї формули ви отримали число, змініть формат комірки на формат дати та часу.

Найкращі інструменти продуктивності офісу

🤖 Kutools AI Aide: Революціонізуйте аналіз даних на основі: Інтелектуальне виконання   |  Згенерувати код  |  Створення спеціальних формул  |  Аналізуйте дані та створюйте діаграми  |  Викликати функції Kutools...
Популярні функції: Знайдіть, виділіть або визначте дублікати   |  Видалити порожні рядки   |  Об’єднайте стовпці або клітинки без втрати даних   |   Раунд без Формули ...
Супер пошук: VLookup за кількома критеріями    Багатозначний VLookup  |   VLookup на кількох аркушах   |   Нечіткий пошук ....
Розширений розкривний список: Швидке створення випадаючого списку   |  Залежний спадний список   |  Виберіть розкривний список, що вибирається ....
Менеджер колонок: Додайте конкретну кількість стовпців  |  Перемістити стовпці  |  Перемкнути статус видимості прихованих стовпців  |  Порівняйте діапазони та стовпці ...
Особливості: Фокус сітки   |  Перегляд дизайну   |   Велика панель формул    Диспетчер робочих книг і аркушів   |  Бібліотека ресурсів (автотекст)   |  Вибір дати   |  Об’єднайте робочі аркуші   |  Шифрування/розшифрування клітинок    Надсилайте листи за списком   |  Супер фільтр   |   Спеціальний фільтр (фільтр жирний/курсив/закреслений...) ...
Топ-15 наборів інструментів12 текст Tools (додати текст, Видалити символи, ...)   |   50 + Графік типи (діаграма Ганта, ...)   |   40+ Практичний Формули (Розрахуйте вік на основі дня народження, ...)   |   19 вставка Tools (Вставте QR-код, Вставити зображення зі шляху, ...)   |   12 Перетворення Tools (Числа до слів, Валютна конверсія, ...)   |   7 Злиття та розділення Tools (Розширені комбіновані ряди, Розділені клітини, ...)   |   ... і більше

Покращуйте свої навички Excel за допомогою Kutools для Excel і відчуйте ефективність, як ніколи раніше. Kutools для Excel пропонує понад 300 додаткових функцій для підвищення продуктивності та економії часу.  Натисніть тут, щоб отримати функцію, яка вам найбільше потрібна...

Опис


Вкладка Office Передає інтерфейс із вкладками в Office і значно полегшує вашу роботу

  • Увімкніть редагування та читання на вкладках у Word, Excel, PowerPoint, Publisher, Access, Visio та Project.
  • Відкривайте та створюйте кілька документів на нових вкладках того самого вікна, а не в нових вікнах.
  • Збільшує вашу продуктивність на 50% та зменшує сотні клацань миші для вас щодня!
Comments (22)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
I have copy and pasted the formula below from the Add Number Of Business Hours To A Date With Formula step above. What is the equivalent formula where you could start with an end date and work backwards to the start date (instead of starting with the start date to find the end date).

=WORKDAY(A2,INT(B2/8)+IF(TIME(HOUR(A2),MINUTE(A2),SECOND(A2))+TIME(MOD(B2,8),MOD(MOD(B2,8),1)*60,0)>
$F$2,1,0),$G$2:$G$2)+IF(TIME(HOUR(A2),MINUTE(A2),SECOND(A2))+TIME(MOD(B2,8),MOD(MOD(B2,8),1)*60,0)>$F$2,$E$2
+TIME(HOUR(A2),MINUTE(A2),SECOND(A2))+TIME(MOD(B2,8),MOD(MOD(B2,8),1)*60,0)-$F$2,TIME(HOUR(A2),MINUTE(A2),SECOND(A2))
+TIME(MOD(B2,8),MOD(MOD(B2,8),1)*60,0))
This comment was minimized by the moderator on the site
This should be a simple one for you guys but I am working in a dealership and trying to create a simple formula that will automatically calculate how many working days we have in a month... example (6 days a week, because we work every Saturday but we are closed every Sunday). Thanks in advance for your help.
This comment was minimized by the moderator on the site
Hi Joshua Player,
For example, you need to count the number of working days in semptember including every Saturday. You need to do as follows:
1. Enter the start date and the end date of September in different cells, such as the start date 9/1/2022 in B1 and the last date 9/30/2022 in B2.
2. Apply one of the following formulas.
If you don't need to exclude holidays, apply this formula and press the Enter key to get the result:
=SUMPRODUCT(--(TEXT(ROW(INDIRECT(B1&":"&B2)),"dddd")<>"Sunday"))
If you need to exclude holidays (suppose the holiday dates listed in B3:C3), apply this formula and press the Ctrl + Shift + Enter keys to get the result
=SUMPRODUCT(--(TEXT(ROW(INDIRECT(B1&":"&B2)),"dddd")<>"Sunday"))-SUMPRODUCT(--IF((B3:C3>=B1)*(B3:C3<=B2),(TEXT(B3:C3,"dddd")<>"Sunday"), FALSE))
This comment was minimized by the moderator on the site
Hello Everyone,

Add Number Of Business Hours To A Date With Formula

I am not an expert but it gives me an error, everytime I insert the formula on the C2 cell. I followed all the instructions.
I have already formated all cells to time and date but still get an error saying that the formula contains an error.
Can someone explain or upload or send me an excel file with the formula already prepared?
Thanks in advance
This comment was minimized by the moderator on the site
Hi Renato,
Can you provide a screenshot of the formula error you encountered? Here I upload an Excel workbook with the formula prepared. Please download it and have a try.
This comment was minimized by the moderator on the site
Hi Crystal,

Thank you so much! I have downloaded the excel workbook and now it works.
Thanks again!
This comment was minimized by the moderator on the site
Good afternoon Sir,

How to get end date and time if i have start day and time together and to add "n" working hours excluding non working hours.

example 1) if start date=02/06/2022 02:00 and to add 4:00 working hours and the working hours are from 08:00 to 18:00 and the non working hours to be excluded are of from 18:00 to 08:00 and the end date should be like 02/06/2022 12:00. what is the formula for this one sir.
2) if start date=02/06/2022 16:00 and to add 4:00 working hours and the working hours are from 08:00 to 18:00 the and the non working hours to be excluded are of from 18:00 to 08:00 and the end date should be like 03/06/2022 10:00. what is the formula for this one sir.

In CCC to be completed time also same formula given sir.

Can u please help me with the formula sir?
This comment was minimized by the moderator on the site
How Can I add hours with working date+time. For E.g, This is the time 20/10/21 8:00am and I need to add hours with in working days and I need to add 4 hours(assume), and there are working hours between 08:00 to 05:00 and there are no holidays. How to add?
This comment was minimized by the moderator on the site
Hi, Supposing your case as shown in the screenshot below, to get a future date and time that falls within specified working hours, please try this formula:<div data-tag="code">=WORKDAY(A2,INT(B2/8)+IF(TIME(HOUR(A2),MINUTE(A2),SECOND(A2))+TIME(MOD(B2,8),MOD(MOD(B2,8),1)*60,0)>$E$2,1,0))+IF(TIME(HOUR(A2),MINUTE(A2),SECOND(A2))+TIME(MOD(B2,8),MOD(MOD(B2,8),1)*60,0)>$E$2,$D$2+TIME(HOUR(A2),MINUTE(A2),SECOND(A2))+TIME(MOD(B2,8),MOD(MOD(B2,8),1)*60,0)-$E$2,TIME(HOUR(A2),MINUTE(A2),SECOND(A2))+TIME(MOD(B2,8),MOD(MOD(B2,8),1)*60,0))
This comment was minimized by the moderator on the site
the formula adding work hours works mathwise, but it wont display the accurate time, just says 0:00. anyone know why?
This comment was minimized by the moderator on the site
can some help me to get a formula for below condition
I am unable to get the time , If i do =WORKDAY.INTL(A2,B2,1) ---Output is : Deal Date: 9/11/2018 0:00, Where the time is not coming up, As time should come with 18:34 PM

A2: Deal Date :9/7/2018 18:34 PM
B2: Days: 2
Output is :New Deal Date: 9/11/2018 0:00

Required Output is 9/11/2018 18:34 PM - Plz help me with the formula!
--------------------
9/7/2018 - Friday , I need to add 2 days excluding weekends, So if i add 2 days to 9/7/2018(Friday ) its Tuesday (9/11/2018) by removing the Sat & Sun.
This comment was minimized by the moderator on the site
Hi Harish,
Sorry can't help you with that yet. Thanks for your comment.
This comment was minimized by the moderator on the site
How to add a cell in the excel says that maximum hours per day (i.e., 8 hours) The time calculation to be bound by 8 hours per day. Please help me if we can have the spread sheet cap the calculation at 8.?
This comment was minimized by the moderator on the site
How to get cells in excel formula (H6; H7; H8; H9)
Forma C2 = =WORKDAY(B2;MAX(ROUNDUP((E2-IF((COUNTIF($J$4:$J$91;INT(B2))=0)*(WEEKDAY(B2;2)<=5);IF(MOD(B2;1)>$H$3;0;IF(MOD(B2;1)>=$H$5;(H3-MOD(B2;1))*24;($H$3-MAX(MOD(B2;1);$H$2)-($H$5-MAX(MOD(B2;1);$H$4)))*24));0))/(($H$3-$H$2-($H$5-$H$4))*24);0);0);$J$4:$J$91)+$H$2+(IFERROR(CEILING(MOD((E2-IF((COUNTIF($J$4:$J$91;INT(B2))=0)*(WEEKDAY(B2;2)<=5);IF(MOD(B2;1)>$H$3;0;IF(MOD(B2;1)>=$H$5;($H$3-MOD(B2;1))*24;($H$3-MAX(MOD(B2;1);$H$2)-($H$5-MAX(MOD(B2;1);$H$4)))*24));0))/(($H$3-$H$2-($H$5-$H$4))*24);1)-0,00000001;0,00000001);1)*($H$3-$H$2-($H$5-$H$4))*24+(IFERROR(CEILING(MOD((E2-IF((COUNTIF($J$4:$J$91;INT(B2))=0)*(WEEKDAY(B2;2)<=5);IF(MOD(B2;1)>H3;0;IF(MOD(B2;1)>=$H$5;($H$3-MOD(B2;1))*24;($H$3-MAX(MOD(B2;1);$H$2)-($H$5-MAX(MOD(B2;1);$H$4)))*24));0))/(($H$3-$H$2-($H$5-$H$4))*24);1)-0,00000001;0,00000001);1)*($H$3-$H$2-($H$5-$H$4))*24>($H$4-$H$2)*24)*($H$5-$H$4)*24)/24

and C3 = =WORKDAY(B3;MAX(ROUNDUP((E3-IF((COUNTIF($J$4:$J$91;INT(B3))=0)*(WEEKDAY(B3;2)<=5);IF(MOD(B3;1)>$H$3;0;IF(MOD(B3;1)>=$H$5;(H4-MOD(B3;1))*24;($H$3-MAX(MOD(B3;1);$H$2)-($H$5-MAX(MOD(B3;1);$H$4)))*24));0))/(($H$3-$H$2-($H$5-$H$4))*24);0);0);$J$4:$J$91)+$H$2+(IFERROR(CEILING(MOD((E3-IF((COUNTIF($J$4:$J$91;INT(B3))=0)*(WEEKDAY(B3;2)<=5);IF(MOD(B3;1)>$H$3;0;IF(MOD(B3;1)>=$H$5;($H$3-MOD(B3;1))*24;($H$3-MAX(MOD(B3;1);$H$2)-($H$5-MAX(MOD(B3;1);$H$4)))*24));0))/(($H$3-$H$2-($H$5-$H$4))*24);1)-0,00000001;0,00000001);1)*($H$3-$H$2-($H$5-$H$4))*24+(IFERROR(CEILING(MOD((E3-IF((COUNTIF($J$4:$J$91;INT(B3))=0)*(WEEKDAY(B3;2)<=5);IF(MOD(B3;1)>H4;0;IF(MOD(B3;1)>=$H$5;($H$3-MOD(B3;1))*24;($H$3-MAX(MOD(B3;1);$H$2)-($H$5-MAX(MOD(B3;1);$H$4)))*24));0))/(($H$3-$H$2-($H$5-$H$4))*24);1)-0,00000001;0,00000001);1)*($H$3-$H$2-($H$5-$H$4))*24>($H$4-$H$2)*24)*($H$5-$H$4)*24)/24
But the correct value is in D2 and D3. How to get it?
This comment was minimized by the moderator on the site
IF WE HAVE TO WRITE THE SAME FORMULA WITH WORKDAY.INTL THAN HOW TO WRITE IT
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations