메인 컨텐츠로 가기

워크 시트 또는 통합 문서를 하나의 워크 시트로 병합하거나 통합하는 방법은 무엇입니까?

일상적인 작업에서 Excel에서 복사 및 붙여 넣기 명령을 사용하면 데이터를 분석하기 위해 수백 개의 시트 또는 통합 문서를 하나의 시트로 병합하는 문제가 발생할 수 있습니다. 이 튜토리얼에서는이 작업을 빠르게 해결하기위한 몇 가지 팁을 제공합니다.

문서 결합 1

빠른 탐색

VBA를 사용하여 활성 통합 문서의 모든 시트를 하나의 시트로 병합
클릭 한 번으로 수십 개의 시트 또는 통합 문서를 하나의 워크 시트 / 통합 문서로 병합
두 테이블을 하나로 병합하고 클릭으로 열 단위로 업데이트
샘플 파일 다운로드


VBA를 사용하여 활성 통합 문서의 모든 시트를 하나의 시트로 병합

이 섹션에서는 실행하는 동안 활성 통합 문서의 모든 시트를 수집하는 새 시트를 만드는 VBA 코드를 제공합니다.

1. 모든 시트를 결합 할 통합 문서를 활성화 한 다음 + 여는 열쇠 응용 프로그램 용 Microsoft Visual Basic 창.

2. 팝업 창에서 끼워 넣다 > 모듈 새 모듈 스크립트를 만듭니다.

3. 아래 코드를 복사하여 스크립트에 붙여 넣습니다.

Sub Combine()
'UpdatebyExtendoffice
Dim J As Integer
On Error Resume Next
Sheets(1).Select
Worksheets.Add
Sheets(1).Name = "Combined"
Sheets(2).Activate
Range("A1").EntireRow.Select
Selection.Copy Destination:=Sheets(1).Range("A1")
For J = 2 To Sheets.Count
Sheets(J).Activate
Range("A1").Select
Selection.CurrentRegion.Select
Selection.Offset(1, 0).Resize(Selection.Rows.Count - 1).Select
Selection.Copy Destination:=Sheets(1).Range("A65536").End(xlUp)(2)
Next
End Sub
문서 결합 2

4. 프레스 F5 키를 누르면 시트의 모든 데이터가 모든 시트의 앞에 배치되는 Combined라는 새 시트에 병합되었습니다.


이동

급여 인상과 가족 동반에 많은 시간을 원하십니까?

Office Tab은 현재 작업중인 Microsoft Office에서 효율성을 50 % 향상시킵니다.

믿을 수 없을 정도로 두 개 이상의 문서에서 작업하는 것이 하나에서 작업하는 것보다 쉽고 빠릅니다.

잘 알려진 브라우저와 비교할 때 Office 탭의 탭 도구는 더 강력하고 효율적입니다.

매일 수백 번의 마우스 클릭과 키보드 입력을 줄이십시오. 이제 마우스 손에 작별 인사를하십시오.

일반적으로 여러 문서에서 작업하는 경우 Office Tab을 사용하면 시간을 크게 절약 할 수 있습니다.

30-일 무료 평가판, 신용 카드가 필요하지 않습니다.

상세 보기지금 무료 다운로드


클릭 한 번으로 수십 개의 시트 또는 통합 문서를 하나의 워크 시트 / 통합 문서로 병합

VBA를 사용하면 활성 통합 문서의 시트 만 결합 할 수 있지만 통합 문서의 시트를 시트 또는 통합 문서에 병합하는 방법은 무엇입니까?

통합 문서의 시트를 하나의 시트로 병합
문서 결합 18

통합 문서의 시트를 하나의 통합 문서로 병합
문서 결합 3

이 작업을 해결하고 시트 조합에 대한 다른 요구 사항을 충족하려면 결합 기능은 네 가지 조합 시나리오로 개발되었습니다.

  • 여러 시트 또는 통합 문서를 하나의 시트로 결합
  • 여러 시트 또는 통합 문서를 하나의 통합 문서로 결합
  • 동일한 이름 시트를 하나의 시트로 결합
  • 시트 또는 통합 문서의 값을 하나의 시트로 통합

두 번째 옵션은 다음과 같습니다.

여러 시트 또는 통합 문서를 하나의 통합 문서로 결합

무료 설치 Excel 용 Kutools는 다음과 같이하십시오.

1. Excel을 활성화하고 쿠툴즈 플러스 > 결합, 결합하려는 통합 문서를 닫아야 함을 알리는 대화 상자가 나타납니다. 딸깍 하는 소리 OK 계속합니다.
문서 결합 4
문서 결합 5

2. 에서 워크 시트 결합 1 단계 대화 상자, 확인 통합 문서의 여러 워크 시트를 하나의 통합 문서로 결합 선택권. 딸깍 하는 소리 다음 보기 마법사의 다음 단계로 이동합니다.
문서 결합 6

3. 클릭 추가 > 입양 부모로서의 귀하의 적합성을 결정하기 위해 미국 이민국에 or 폴더 결합하려는 통합 문서를 통합 문서 목록 창에서 이름을 확인하여 함께 결합 할 워크 시트를 지정할 수 있습니다. 워크 시트 목록 창유리. 딸깍 하는 소리 다음 보기 마법사의 마지막 단계로 이동합니다.
문서 결합 7

4.이 단계에서는 필요에 따라 설정을 지정합니다. 그런 다음 마감재 .
문서 결합 8

5. 결합 된 통합 문서를 배치 할 폴더를 선택하는 창이 나타납니다. 찜하기.
문서 결합 9

이제 통합 문서가 하나의 통합 문서로 병합되었습니다. 그리고 모든 시트의 맨 앞에 Kutools for Excel이라는 마스터 시트가 생성되어 각 시트의 시트 및 링크에 대한 정보를 나열합니다.
문서 결합 10

데모 : 시트 / 통합 문서를 하나의 시트 또는 통합 문서로 결합

Excel 용 Kutools : 200 + 유용한 편리한 도구로 Excel의 복잡한 작업을 몇 번의 클릭으로 단순화합니다.

이제 마우스 손과 자궁 경부 척추증에 작별 인사

Excel용 Kutools의 300가지 고급 도구 해결 80% 몇 초 만에 Excel 작업을 수행하면 수천 번의 마우스 클릭에서 벗어날 수 있습니다.

1500개의 작업 시나리오를 쉽게 처리하고 솔루션을 찾는 데 시간을 낭비할 필요가 없으며 인생을 즐길 시간이 많습니다.

물론 귀하를 포함하여 매일 80명 이상의 매우 효과적인 사람들의 생산성을 110000% 향상시킵니다.

더 이상 고통스러운 공식과 VBA에 의해 괴로움을 당하지 않고 두뇌에 휴식과 즐거운 작업 분위기를 제공하십시오.

모든 기능을 갖춘 30일 무료 평가판, 이유 없이 30일 환불.

더 나은 몸은 더 나은 삶을 만듭니다.


두 테이블을 하나로 병합하고 클릭으로 열 단위로 업데이트

아래 스크린 샷과 같이 두 개의 테이블을 하나로 병합하고 열을 기반으로 데이터를 업데이트하려면 다음을 시도하십시오. 테이블 병합 ~의 유용성 Excel 용 Kutools.
문서 결합 11

Excel 용 Kutools : Excel에서 몇 번의 클릭으로 복잡한 작업을 단순화하는 200 개 이상의 편리한 Excel 추가 기능

무료 설치 Excel 용 Kutools는 다음과 같이하십시오.

1. 클릭 쿠툴즈 플러스 > 테이블 병합 사용하려면 테이블 병합 마법사.
문서 결합 12

2. 마법사의 1 단계에서 기본 테이블과 조회 테이블 범위를 별도로 선택해야합니다. 그런 다음 다음 보기.
문서 결합 13

3. 기본 테이블에서 데이터를 업데이트 할 키 열을 선택합니다. 딸깍 하는 소리 다음 보기.
문서 결합 14

4. 그런 다음 룩업 테이블을 기반으로 데이터를 업데이트하려는 기본 테이블의 열을 확인합니다. 딸깍 하는 소리 다음 보기.
문서 결합 15

5. 마법사의 4 단계에서 조회 테이블에서 기본 테이블로 추가 할 열을 확인합니다. 딸깍 하는 소리 다음 보기.
문서 결합 16

6. 마법사의 마지막 단계에서 필요에 따라 설정 옵션을 지정합니다. 그런 다음 마감재 .
문서 결합 17

이제 기본 테이블이 데이터를 업데이트하고 조회 테이블을 기반으로 새 데이터를 추가했습니다.

데모 : 시트 / 통합 문서를 하나의 시트 또는 통합 문서로 결합

Excel 용 Kutools : 200 + 유용한 편리한 도구로 Excel의 복잡한 작업을 몇 번의 클릭으로 단순화합니다.


샘플 파일 다운로드

견본


권장 생산성 도구

Office 탭-Microsoft Office 2019-2003 및 Office 365에서 탭 브라우징, 편집, 문서 관리


사무실 탭

Excel 2019-2007 가속화를위한 전문 추가 기능, 몇 시간의 작업을 몇 초로 단축

이 추가 기능에는 수십 개의 전문가 그룹이 포함되어 있으며 300 개 이상의 옵션이 Excel에서 일상적인 작업의 대부분을 자동화하고 생산성을 50 % 이상 향상시킵니다. 원 클릭 옵션 그룹 및 일괄 변환과 같은.
이제 Excel 용 Kutools로 속도를 높일 수있는 기회입니다!


Comments (168)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Hi, I have a system that generates an excel file everyday. The daily file name is of format "<filename-12282021>". The 12282021 is the timestamp and it changes everyday creating a new excel file each day. I want to create a Master Workbook and then append the contents of the daily excel file into that master workbook. How can I automate it so it happens by itself everyday and the master file is update with contents of the daily file.   Thank you.
This comment was minimized by the moderator on the site
Hi rd2022, sorry that I have no idea to solve your problem so far. You can go to our forum https://www.extendoffice.com/forum/excel.html to leave this message, maybe some users have the same problem and has been solved.
This comment was minimized by the moderator on the site
In combining shhets I want to add one extra column in combined sheet as ShhetName
Can you suggest ?
This comment was minimized by the moderator on the site
The Combine function of Kutools for Excel can help you to insert sheet name in a new row of each combined range in the combined sheet by checking First row of each range (new row) in Insert worksheet information section in the last step of the Combine.
This comment was minimized by the moderator on the site
Hi - this function works well except my file has more than 900 sheets, and when I change the maximum number of rows (Loc 16, "A65536") to a higher number, the macro doesn't work. Is there a way to increase the number of rows that can be shown on the combine sheet?
This comment was minimized by the moderator on the site
The VBA code works fine but I want the data to be merged horizontally(side by side).
Hope you can help.
This comment was minimized by the moderator on the site
Hi,


Great Code and for the most part it works fantastically well.


Could I suggest creating a written tutorial for each line of code. I'd love to be able to play around with it to suit my Company's needs.

In the meantime however could you talk me through problems that would hinder this code from copying all data from each Sheet? I've noticed some sheets in my workbook aren't being copied at all.

To give you some context I'm dealing with roughly 330 sheets and they hold from 50 to 500 lines in each.


looking forward to hearing from you.
This comment was minimized by the moderator on the site
Hi, Daniel, I do not understand your question as you describe it not clearly, but if you have the Combine function in Excel, it can solve most of your question about combining sheets.
This comment was minimized by the moderator on the site
Hi,

Is it possible to only copy a particular range of cells for example A:4:FU38 from each sheet?


Also in the Combined sheet where the data is copied to, can the tab names from where the data is copied included in column A to enable lookups or to pivot the data?


Finally, can i specify the list of worksheets from which to copy the data across or maybe i can specify something like copy all worksheets to the left of a particular worksheet in the file.


Thanks in advance for your help
This comment was minimized by the moderator on the site
Hi, HS, you mean to combine same ranges from sheets into one sheet, it that right? If so, this article may help you: https://www.extendoffice.com/documents/excel/2754-excel-combine-ranges-from-different-worksheets-into-one.html#a3
This comment was minimized by the moderator on the site
This VBA code is an absolute lifesaver. Thank you!!
This comment was minimized by the moderator on the site
Hi. This code works well but I have the same problem as adj. The 1st row form each tab doesn't appear in the combined tab - except he first tab. Thanks
This comment was minimized by the moderator on the site
Just delete "Selection.Offset(1, 0).Resize(Selection.Rows.Count - 1).Select" from the code.

If you want to merge all rows from all worksheets, just use the code:

Sub Combine()

'UpdatebyExtendoffice

Dim J As Integer

On Error Resume Next

Sheets(1).Select

Worksheets.Add

Sheets(1).Name = "Combined"

Sheets(2).Activate

Range("A1").EntireRow.Select

Selection.Copy Destination:=Sheets(1).Range("A1")

For J = 2 To Sheets.Count

Sheets(J).Activate

Range("A1").Select

Selection.CurrentRegion.Select

Selection.Copy Destination:=Sheets(1).Range("A65536").End(xlUp)(2)

Next

End Sub
This comment was minimized by the moderator on the site
Yes, the code only can keep first row of the first tab, because it is used to consolidate, if you want to keep all contents of each sheet, you can try Combine utility of Kutools for Excel, it is free fior 60 days
This comment was minimized by the moderator on the site
i had a problem when I try to combine all same name worksheet to one worksheet, it works but some value are missing. so what should i do?
This comment was minimized by the moderator on the site
Hello, elok, did the problem appear while you applying Combine function? If so, please go to contact us to describe the problem with more details, our support will handle the problem for you.
This comment was minimized by the moderator on the site
Thanks that macro saved my day. I had over 40 sheets of data to combine into one and although my computer bogged for a minute or two, it completed without issue. The only modification I made was I tweaked the macro to start with A2 instead of A1 since A1 was my column headers.
This comment was minimized by the moderator on the site
Thanks for your support, Andrew, I am glad that the macro can help you.
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