메인 컨텐츠로 가기

Excel에서 두 날짜 사이의 일, 근무일, 주말 수를 계산하는 방법은 무엇입니까?

Excel에서 두 날짜 사이의 일수를 계산해야했던 적이 있습니까? 때로는 두 날짜 사이의 근무일 만 계산하고 싶을 때도 있고 두 날짜 사이의 주말 만 계산해야하는 경우도 있습니다. 특정 조건에서 두 날짜 사이의 일수를 어떻게 계산할 수 있습니까?


수식을 사용하여 두 날짜 사이의 일 수를 계산하거나 계산합니다.

주어진 두 날짜 사이에 며칠이 있는지 계산하려면 다음 항목 중 하나를 적용하십시오.

=DATEDIF(A2,B2,"D")
= B2-A2

그런 다음 엔터 버튼 키, 두 날짜 사이의 일 수를 얻을 수 있습니다. 스크린 샷보기 :

주의 사항: 위의 공식에서 A2 시작일을 나타내고 B2 종료 날짜를 나타냅니다. 필요에 따라 교체 할 수 있습니다.


공식을 사용하여 두 날짜 사이의 근무일 수 계산 또는 계산

그러나 때로는 근무일 수 (월요일부터 금요일까지)를 알고 싶을 때 위의 공식이 작동하지 않습니다. 이 경우이 문제를 처리하는 데 도움이되는 두 가지 기능이 있습니다.


1. NETWORKDAYS 함수를 사용하여 근무일 수 계산

빈 셀에 아래 수식을 입력하십시오.

=NETWORKDAYS(A2,B2)

그런 다음 입력하십시오. 엔터 버튼 키를 누르고 두 날짜 사이의 일요일과 토요일을 제외한 근무일 수를 계산합니다. 스크린 샷보기 :

주의 사항: 위의 공식에서 A2 시작일을 나타내고 B2 종료 날짜를 나타냅니다.


2. NETWORKDAYS 함수를 사용하여 근무일 수를 계산하지만 공휴일은 제외

때로는 두 날짜 사이에 공휴일이있을 수 있습니다.이 두 날짜 사이의 영업일을 계산하려면 토요일, 일요일 및 공휴일을 제외해야합니다. 이 네트워크데이 기능은 또한 당신을 도울 수 있습니다.

에 대한 구문 네트워크데이 기능은 다음과 같습니다. = NETWORKDAYS (시작일, 종료일, 공휴일)

날짜에서 빼려는 셀에 공휴일 날짜를 입력 한 다음 결과를 얻으려는 빈 셀에 다음 수식을 입력합니다.

=NETWORKDAYS(A2,B2,$C$2:$C$6)

그런 다음 엔터 버튼 키, 일요일, 토요일 및 공휴일을 포함하지 않는 근무일 수를 계산했습니다. 스크린 샷보기 :

주의 사항: 위의 공식에서 A2 시작일을 나타냅니다. B2 종료일을 의미하고 C2 : C6 공휴일 목록입니다.


3. SUM 및 INT 함수를 사용하여 근무일 수 계산

NETWORKDAYS 함수를 제외하고 두 날짜 사이의 근무일 수를 구하는 데 도움이되는 또 다른 수식이 있습니다.

빈 셀에 아래 수식을 입력하거나 복사합니다.

=SUM(INT((WEEKDAY(A2-{2,3,4,5,6})+B2-A2)/7))

그런 다음 탭합니다. 엔터 버튼 키, 모든 근무일이 계산됩니다. 스크린 샷보기 :

배송 시 요청 사항:

1. 때로는 주당 6 일 근무 (월요일부터 토요일까지)가 있으므로 토요일을 포함하고 일요일을 제외한 근무일 수를 계산해야합니다. 이 경우 다음 공식을 적용 할 수 있습니다.

=SUM(INT((WEEKDAY(A2-{2,3,4,5,6,7})+B2-A2)/7))

2. 위의 공식에서 A2 시작일을 의미하고 B2 종료 날짜를 나타냅니다.


수식을 사용하여 두 날짜 사이의 주말 수를 계산하거나 계산합니다.

여기에는 주어진 기간의 주말 (토요일 및 일요일) 수만 계산하는 몇 가지 공식이 있습니다. 다음 두 가지 공식 중 하나를 입력하거나 복사하십시오.

=SUMPRODUCT(--(WEEKDAY(ROW(INDIRECT(A2&":"&B2)),2)>5))
=SUM(INT((WEEKDAY(A2-{1,7})+B2-A2)/7))

그런 다음 엔터 버튼 이제이 두 날짜 사이의 주말 수를 알 수 있습니다. 스크린 샷보기 :

주의 사항: 위의 공식에서 A2 시작일을 나타냅니다. B2 종료일을 의미합니다.


유용한 기능으로 두 날짜 사이의 근무일, 주말 수 계산 또는 계산

주어진 두 날짜 사이의 주중 또는 주말 수를 계산하려면 Excel 용 Kutools수식 도우미 일반적으로 사용되는 공식을 포함하는 유틸리티를 사용하여 연령, 단어 표시 등을 계산하는 데 적용 할 수 있습니다.

참고 :이것을 적용하려면 수식 도우미, 먼저 Excel 용 Kutools을 클릭 한 다음 기능을 빠르고 쉽게 적용하십시오.

설치 후 Excel 용 Kutools, 다음과 같이하십시오.

1. 결과를 찾을 셀을 클릭 한 다음 쿠툴수식 도우미 > 수식 도우미, 스크린 샷 참조 :

2. 에서 수식 도우미 대화 상자에서 다음 작업을 수행하십시오.

  • 선택 통계적인 옵션에서 공식 타입 쓰러지 다;
  • . 공식 선택 목록 상자, 선택 두 날짜 사이의 휴무일 수 or 두 날짜 사이의 근무일 수 사용하고 싶습니다.
  • 그런 다음 인수 입력 섹션에서 시작 날짜와 종료 날짜를 별도로 포함하는 셀을 선택하십시오.
  • 마지막으로 Ok 버튼을 누르면 다음과 같은 결과가 표시됩니다.


두 날짜 사이의 일, 주, 월 또는 년 수를 계산하거나 계산합니다.

Excel 용 Kutools's 날짜 및 시간 도우미 기능을 사용하면 주 + 일, 월 + 주 등과 같은 공식을 기억하지 않고도 필요에 따라 두 날짜 간의 다양한 차이 결과를 빠르게 얻을 수 있습니다. Excel 용 Kutools를 다운로드하려면 클릭하십시오!

Excel 용 Kutools: 300 개 이상의 편리한 Excel 추가 기능으로 30 일 동안 제한없이 무료로 사용해 볼 수 있습니다. 지금 다운로드 및 무료 평가판!


더 많은 상대적 날짜 및 시간 기사 :

  • Excel에서 자정 이후 시간 사이의 시간 계산
  • 근무 시간을 기록 할 시간표가 있다고 가정하면 A 열의 시간은 오늘의 시작 시간이고 B 열의 시간은 다음 날의 종료 시간입니다. 일반적으로 "= B2-A2"를 직접 빼서 두 시간 사이의 시간 차이를 계산하면 왼쪽 스크린 샷과 같이 정확한 결과가 표시되지 않습니다. Excel에서 자정 이후 두 시간 사이의 시간을 어떻게 올바르게 계산할 수 있습니까?

최고의 사무 생산성 도구

🤖 Kutools AI 보좌관: 다음을 기반으로 데이터 분석을 혁신합니다. 지능형 실행   |  코드 생성  |  사용자 정의 수식 만들기  |  데이터 분석 및 차트 생성  |  Kutools 기능 호출...
인기 기능: 중복 항목 찾기, 강조 표시 또는 식별   |  빈 행 삭제   |  데이터 손실 없이 열이나 셀 결합   |   수식없이 반올림 ...
슈퍼 조회: 다중 기준 VLookup    다중 값 VLookup  |   여러 시트에 걸친 VLookup   |   퍼지 조회 ....
고급 드롭다운 목록: 드롭다운 목록을 빠르게 생성   |  종속 드롭다운 목록   |  다중 선택 드롭 다운 목록 ....
열 관리자: 특정 개수의 열 추가  |  열 이동  |  Toggle 숨겨진 열의 가시성 상태  |  범위 및 열 비교 ...
특색 지어진 특징: 그리드 포커스   |  디자인보기   |   큰 수식 바    통합 문서 및 시트 관리자   |  리소스 라이브러리 (자동 텍스트)   |  날짜 선택기   |  워크 시트 결합   |  셀 암호화/해독    목록으로 이메일 보내기   |  슈퍼 필터   |   특수 필터 (굵게/기울임꼴/취소선 필터링...) ...
상위 15개 도구 세트12 본문 도구 (텍스트 추가, 문자 제거,...)   |   50+ 거래차트 유형 (Gantt 차트,...)   |   40+ 실용 방식 (생일을 기준으로 나이 계산,...)   |   19 삽입 도구 (QR 코드 삽입, 경로에서 그림 삽입,...)   |   12 매출 상승 도구 (숫자를 단어로, 환율,...)   |   7 병합 및 분할 도구 (고급 결합 행, 셀 분할,...)   |   ... 그리고 더

Excel용 Kutools로 Excel 기술을 강화하고 이전과는 전혀 다른 효율성을 경험해 보세요. Excel용 Kutools는 생산성을 높이고 시간을 절약하기 위해 300개 이상의 고급 기능을 제공합니다.  가장 필요한 기능을 얻으려면 여기를 클릭하십시오...

상품 설명


Office Tab은 Office에 탭 인터페이스를 제공하여 작업을 훨씬 쉽게 만듭니다.

  • Word, Excel, PowerPoint에서 탭 편집 및 읽기 사용, Publisher, Access, Visio 및 Project.
  • 새 창이 아닌 동일한 창의 새 탭에서 여러 문서를 열고 만듭니다.
  • 생산성을 50% 높이고 매일 수백 번의 마우스 클릭을 줄입니다!
Comments (51)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
I am trying to work out how many days worked in a week but I have number of hours worked in the cells. Plus RD as a rest day. is there any way for this to be done rather than manual input
This comment was minimized by the moderator on the site
I am curious if there is a way to have excel do a rolling countdown between dates. Our fiscal year year is 10/1 to 09/30. I figured out how to show how many working days there is between these dates, but now I need to have that number decrease with each passing day. That way each Friday when we open the spreadsheet, it will tell us how many days are left. Is this possible?
This comment was minimized by the moderator on the site
Witam,
chcialabym uzyskać wynik w jednej KOMÓRCE: ZAKRES DAT - czyli np. 08.sie-15.wrz - dane natomiast maja sie zaciagac z innego XLS, w którym zaznaczane jedynkami sa dni urlopu w komórkach poszczeólnych dni. Kolumny w pliku źródłowym to: (scalona komórka MIESIĄCA (sty, lut, mar itp) poniżej są w komórkach wszytskie dni miesiaća 1-31, scalona komorka miesiaca zawiera pod soba wsyztskie te dni
ponizej wiersze dotycza pracowników i w kolejnych kolumnach uzupełniane są JEDNKI - oznaczające wzięcie urlopu w tym dniu....
chciałbym żeby te jedynki były wyciągane z pliku źródłowego tak, aby wynik był zakresem daty....

Czy to jest możliwe?
This comment was minimized by the moderator on the site
Hi,

Can you help me make a formula counting the number of days of work in a week excluding Sundays and holidays, please note Saturday is only a half day of work.

Also I wanted to create a formula to calculate the allowed number of days of leave for employees using the sum of number of year/month/day of service work multiple by 2 working days per month (leave provision per month).

I got a hard time making a formula about this
This comment was minimized by the moderator on the site
i have one date, lets say 6/18/2020, i need it has to be minus exact 1 month(5/18/2020), if the result date 5/18/2020 is belongs to saturday or sunday than it would be FRIDAY's date. could you please give the formula for it. - Ramu
This comment was minimized by the moderator on the site
HI,
I NEED TO CALCULATE NUMBER OF DAYS BETWEEN TODAY FROM A STARTING DATE .
This comment was minimized by the moderator on the site
Hi, RAJIH,
You can also use this formula: =DAYS(TODAY(), A2), A2 is the cell contains your starting date, please try, hope it can help you!
Thank you!
This comment was minimized by the moderator on the site
Type your starting date in any cell of excel.
Type today date in another cell of excel.
Now simply minus the starting date from today date.
Example: Starting date is in cell A1, Today date is in cell A2. Simply type =A2-A1.
This comment was minimized by the moderator on the site
What about about adding days from a date, for example: 3/4/19 then add 60 days to get a new date.
This comment was minimized by the moderator on the site
Hello,

To add some days to a date, you just need to add the days to the date directly as below formula:
=A1+60
Please try it, hope it can help you!
This comment was minimized by the moderator on the site
HI,
need formula for calculate the days for working days (monday,tuesday, wednesday, thursday and Saturday) - minus holidays. (weekends is friday and sunday)

pls help.
This comment was minimized by the moderator on the site
Offday Friday and Saturday
Public Holiday 22/08/18, 23/08/2018
Manual count for working day are 20 days.
=SUM(INT((WEEKDAY(L3-{1,2,3,4,5})+L5-L3)/7)) --->Total working day 22
=NETWORKDAYS(L14,L16,L18:BS19) -->Total working days 21

Please help
This comment was minimized by the moderator on the site
I need formula for 22 working days (Saturday and Sunday OFF)consider in every moth by selecting date range if 21 working days come in a month but considered 22 and if 23 working days come but also considered 22. so please give me any suggestion ?

This comment was minimized by the moderator on the site
I always have Start Date, with set number of working days to complete various activities.

=WORKINGDAY.INTL(START,DAYS,WEEKEND,HOLIDAYS) also causes issues, we work Sun-Thu, so weekend option is 7, yet this formula isn't consistent either, May 2019 has 22 working days (DAYS), this makes the result 02-Jun-19, which is the 2nd working day of June!

Yet same formula for June 2019 with 21 working days gives the expected answer of 30-June-19.
This comment was minimized by the moderator on the site
Hi i need an excel formula which calculates the number of days between two dates and will give me a warning if the count is past day 28. Also if day 28 falls on a weekend or public holiday then the formula needs to account for this so day 28 becomes the next business day.
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