
Managing employee attendance and calculating leave eligibility can become complex when multiple conditions are involved.
This includes checking actual working days, required working days, and weekly working hour thresholds.
In this tutorial, you will learn how to automate this entire process using Power Query.
Weekly and monthly conditions are combined to determine leave eligibility automatically.
Once set up, the results update instantly with a simple refresh.
일일 출근 데이터를 이용해서
월차 발생 여부를 자동으로 계산하고 싶을 때가 있습니다.
특히 다음과 같은 조건이 동시에 들어가면
엑셀 수식으로는 굉장히 복잡해집니다.
주 소정근로일 충족 여부
주 15시간 근무 여부
월 소정근로일 충족 여부
이럴 때는 Power Query를 활용하면
데이터 추가/삭제에도 자동으로 반영되는 구조를 만들 수 있습니다.
✔ 이번 작업 목표
다음 3가지 조건을 모두 만족할 때
월차 발생 여부를 자동으로 판단합니다.
주 소정근로일만큼 실제 출근한 경우
1주 15시간 이상 근무한 경우
한 달 소정근로일만큼 실제 출근한 경우
✔ 핵심 포인트
일일 출근 데이터를 기반으로 주 단위 집계
주 조건 충족 여부 계산
월 단위로 다시 집계
최종적으로 월차 발생 여부 판정
✔ 결과
Power Query로 구성하면
데이터 추가 → 자동 반영 ✔
데이터 삭제 → 자동 반영 ✔
조건 변경 → 즉시 결과 변경 ✔
실제로 테스트로
출근 데이터를 일부 수정하자 결과가 바로 업데이트되는 것을 확인했습니다.
✔ 활용 장점
복잡한 수식 없이 자동화 가능
데이터가 늘어나도 구조 유지
실무에서 바로 사용 가능

videolink - https://youtu.be/zIswbnTkD0A
Download the sample file below.
You can download the zip file in [자료실][Download] page
The file name is 41.연차월차_출근데이터(Monthly Leave Eligibility).
Use the English M code provided for your dataset.
✔ Download the ready-to-use Power Query template below
✔ Just copy and paste the M code – works instantly
The original sample file is based on a Korean dataset.
You can apply the English M code to adapt it to your own data.
--------------------------------
Need a custom automation for your Excel workflow?
I can build a tailored solution based on your data.
✔ Used in real-world business automation
✔ Saves hours of manual work
minbedata@gmail.com
You can pay via PayPal.
You can also contact me via Upwork for secure payment and project handling.
<a href="https://www.upwork.com/freelancers/~01eb52dbd212cffc17" target="_blank">
Hire me on Upwork
</a>
You don't worry about conversing with me.
My Major is an English literature, so I can speak English fluently and read, listening, writing proficiently
korean version web address (한국버전) is
<a href="https://blog.naver.com/minbe-data" target="_blank">네이버 블로그 바로가기</a>