메인 컨텐츠로 가기

Excel에서 두 날짜 사이의 모든 레코드를 추출하는 방법은 무엇입니까?

다음은 Excel의 데이터 범위입니다.이 경우 아래 스크린 샷과 같이 두 날짜 사이의 모든 행 레코드를 추출하고 싶습니다. 데이터를 찾아서 하나씩 수동으로 추출하지 않고이 작업을 빠르게 처리 할 수있는 아이디어가 있습니까?

날짜 사이의 문서 추출 기록 1 샷 화살표 오른쪽 날짜 사이의 문서 추출 기록 2

두 날짜 사이의 모든 레코드를 수식으로 추출

Excel 용 Kutools로 두 날짜 사이의 모든 레코드 추출좋은 생각 3


두 날짜 사이의 모든 레코드를 수식으로 추출

Excel에서 두 날짜 사이의 모든 레코드를 추출하려면 다음을 수행해야합니다.

1. 새 시트 인 Sheet2를 만들고 두 개의 셀 (예 : A1 및 B1)에 시작 날짜와 종료 날짜를 입력합니다. 스크린 샷보기 :
날짜 사이의 문서 추출 기록 3

2. Sheet1의 C2에 다음 수식을 입력합니다. =SUMPRODUCT((Sheet1!$A$2:$A$22>=A2)*(Sheet1!$A$2:$A$22<=B2)), 언론 엔터 버튼 키를 사용하여 일치하는 총 행 수를 계산합니다. 스크린 샷보기 :
날짜 사이의 문서 추출 기록 4

참고 : 수식에서 Sheet1은 추출 할 원본 데이터가 포함 된 시트이고, $ A $ 2 : $ A $ 22는 데이터 범위, A2 및 B2는 시작 날짜와 종료 날짜입니다.

3. 추출 된 데이터를 배치 할 빈 셀을 선택하고 다음 수식을 입력합니다. =IF(ROWS(A$5:A5)>$C$2,"",INDEX(Sheet1!A$2:A$22,SMALL(IF((Sheet1!$A$2:$A$22>=$A$2)*(Sheet1!$A$2:$A$22<=$B$2),ROW(Sheet1!A$2:A$22)-ROW(Sheet1!$A$2)+1),ROWS(A$5:A5)))), 언론 쉬프트 + 컨트롤 + 엔터 키를 누르고 자동 채우기 핸들을 열과 행 위로 끌어 빈 셀이나 XNUMX 값이 나타날 때까지 모든 데이터를 추출합니다. 스크린 샷보기 :
날짜 사이의 문서 추출 기록 5

4. 5을 제거하고 XNUMX 자리 숫자로 표시되는 날짜를 선택하고 탭을 선택 짧은 날짜 일반 드롭 다운 목록에서 날짜 형식으로 형식을 지정합니다. 스크린 샷보기 :
날짜 사이의 문서 추출 기록 6


Excel 용 Kutools로 두 날짜 사이의 모든 레코드 추출

이 작업을 더 쉽게 처리하려면 Excel 용 Kutools의 특정 셀 선택 기능을 사용해 볼 수 있습니다.

Excel 용 Kutools, 이상과 300 편리한 기능으로 작업이 더 쉬워집니다. 

설치 후 Excel 용 Kutools는 다음과 같이하십시오.(지금 Excel 용 Kutools 무료 다운로드!)

1. 추출 할 데이터를 선택하고 쿠툴 > 선택 > 특정 셀 선택. 스크린 샷보기 :
날짜 사이의 문서 추출 기록 7

2. 에서 특정 셀 선택 대화 상자, 확인 전체 행 옵션을 선택하고 보다 큰미만 드롭 다운 목록에서 시작 날짜와 종료 날짜를 텍스트 상자에 입력하고 Audiencegain과. 스크린 샷보기 :
날짜 사이의 문서 추출 기록 8

3. 클릭 Ok > OK. 그리고 날짜와 일치하는 행이 선택되었습니다. 프레스 Ctrl + C 행을 복사하고 빈 셀을 선택하고 Ctrl + V 붙여 넣으려면 스크린 샷을 참조하십시오.
날짜 사이의 문서 추출 기록 9

최고의 사무 생산성 도구

🤖 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 (19)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Hi, this formula worked ok, except it only returned one data set for each date in the range. Is there an adjustment to allow for multiple entries with the dame date value?
This comment was minimized by the moderator on the site
This formula works awesome thanks, I need some extra help though. I have 200 employees, each with certification that expires on different dates. The heading for each certification is at the top with their expiry dates below. I want to extract the rows that with all info if there is an expiry reached and throw them into a new sheet. Exactly like the example above just dated from multiple columns.
This comment was minimized by the moderator on the site
Hi, Christiaan82, could you upload the a screenshot about you workhsheet, or give me more details about the information of sheet format, only with your description, I do not get it clearly.
This comment was minimized by the moderator on the site
All sorted. Instead of trying to retrieve the rows from multiple columns, I added a new hidden sheet where all the info populates the info on top of each other. So the information only needs to be retrieved from one column, as per your example above.
Thank you Sunny
This comment was minimized by the moderator on the site
"drag Auto fill handle over columns and rows to extract all data until blank cells or zero values appear."
This doesn't seem to be working for me. The first row gives me the dates but the same gets repeated in the next two rows.
This comment was minimized by the moderator on the site
Hi, Neha, could you check if your auto calculate is turn on? Click Formulas > Calcuations Options > Automatic.
This comment was minimized by the moderator on the site
it worked well for single sheet. can u pls help me to get the same from multiple sheets of similar data. first 4 sheets contain similar data. i need all records of same 'date' in sheet5.
This comment was minimized by the moderator on the site
Can you extend the formula to check for dates that encompass more than one day? For example, using the same start and end dates from 1/1/15-12/31/16, but the data in sheet 1 have start and end dates too rather than just existing for a singular date.
This comment was minimized by the moderator on the site
This formula worked brilliantly. I was concerned as I have multiple date duplicates and there was no mention of how it handles those; no issues. It returned all relevant data.
Stoked.
This comment was minimized by the moderator on the site
Thanks for your support, you can combined the duplicate dates cells after extracting.
This comment was minimized by the moderator on the site
The trouble I am having because I need to find dates that run through the date range specified. So I want anything that runs through something like 1/2016 to 12/2017, however it needs to include start dates that may be before the range so I can identify the records I need to look at.
This comment was minimized by the moderator on the site
I used this code and it is pulling up dates outside of the window... how do I fix it?
This comment was minimized by the moderator on the site
Which code Kayla? Do you mean the formula?
This comment was minimized by the moderator on the site
I recreated this example in Excel 2010, and the result was that the first row of data would show up, but everything underneath had a number error.
This comment was minimized by the moderator on the site
Same thing happens to me n Excel 2010. Something in the formula doesn't work correctly.
This comment was minimized by the moderator on the site
Have you pressed Shift + Ctrl + Enter keys?
This comment was minimized by the moderator on the site
I see what's wrong. You have to press the shift + CTRL + Enter keys while still in edit mode.
I was hitting those keys after entering the formula and hitting ENTER.
I wish it would have been clearer.
This comment was minimized by the moderator on the site
Yes, brian, after typing the formula and still in edit mode, directly press Shift + Ctrl + Enter keys (the keys instead of Enter key), to get the correct result.
This comment was minimized by the moderator on the site
Still doesnt work for me? I am doing exactly as above and still returning the NUM error? Any other ideas?
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations