Как собрать данные из нескольких листов в мастер-лист в Excel?
Через некоторое время вам может потребоваться собрать данные с нескольких листов в один мастер-лист для объединения или выполнения других операций, как показано на скриншоте ниже, но копировать и вставлять содержимое одно за другим проблематично, есть ли какие-нибудь уловки, которые могут быстро решить эту проблему в Excel?
Собирайте данные с нескольких листов в один с помощью функции консолидации
Собирайте данные из нескольких листов в один с кодом VBA
Собирайте данные из нескольких листов в один с помощью мощной функции объединения
Собирайте данные с нескольких листов в один с помощью функции консолидации
Если вы хотите собрать данные из нескольких листов на один лист в одной книге, вы можете применить функцию консолидации в Excel.
1. На новом листе книги, с которого вы хотите собирать данные, щелкните Данные > Консолидировать.
2. в Consolidate диалог, выполните следующие действия:
(1 Выберите одну операцию, которую вы хотите выполнить после объединения данных в Функция раскрывающийся список;
(2 Нажмите для выбора диапазона каждого листа, который вы хотите собрать;
(3 Нажмите Add кнопку, чтобы добавить диапазон данных в All references список;
(4 Проверьте метки, которые вы используете после объединения данных, и проверьте Create links to source data вариант, если вы хотите связать данные в объединенном листе с исходными данными.
3. Нажмите OK. Теперь данные собраны и суммированы на одном листе.
Легко объединяйте несколько листов / книгу в один лист или рабочую книгу
|
Объединение нескольких листов или книг в один лист или книгу может быть удобно в Excel, но с Сочетать Функция в Kutools for Excel, вы можете объединить десятки листов / книг в один лист или книгу, а также вы можете объединить листы в один только несколькими щелчками мыши. Нажмите для полнофункционального 30 дней бесплатного пробного периода! |
![]() |
Kutools for Excel: с более чем удобными надстройками Excel 300, которые можно попробовать бесплатно без ограничений в 30 дней. |
Собирайте данные из нескольких листов в один с кодом VBA
Вот код VBA, который может собирать данные со всех листов на новом листе в текущей книге.
1. Нажмите Alt + F11 ключ для включения Microsoft Visual Basic for Applications окно.
2. Нажмите Insert > Module, скопируйте и вставьте приведенный ниже код в Module скрипты.
VBA: соберите все данные из таблиц в один.
Sub Combine()
'UpdatebyExtendoffice20180205
Dim I As Long
Dim xRg As Range
On Error Resume Next
Worksheets.Add Sheets(1)
ActiveSheet.Name = "Combined"
For I = 2 To Sheets.Count
Set xRg = Sheets(1).UsedRange
If I > 2 Then
Set xRg = Sheets(1).Cells(xRg.Rows.Count + 1, 1)
End If
Sheets(I).Activate
ActiveSheet.UsedRange.Copy xRg
Next
End Sub

3. Press F5 key to run the code, all data of the whole workbook has been collected in the new sheet Combined.

Collect data from multiple sheets into one with powerful Combine function
If you usually need to combine sheets into one, I introduce one powerful combine function for you, it’s Kutools for Excel’s Combine utility which have below four main functions:
Combine multiple worksheets from workbook into one worksheet
Combine all same name worksheets into one worksheet
Combine multiple worksheets from workbooks into one workbook
Consolidate and calculate values across multiple workbooks into one worksheet

Kutools for Excel, with more than 300 handy functions, makes your jobs more easier.
After free installing Kutools for Excel, please do as below:
If you just want to combine sheets into one sheet without any other operations, you can do as these:
1. Enable Excel, click Kutools Plus > Combine, there is one or two dialogs pop out to remind you some notices, just click OK and Yes to continue. See screenshot:

2. Click OK to go to the Combine window, check Combine multiple worksheets from workbook into worksheet option.

3. Click Next, then click Add > File / Folder to add workbooks you will use to combine into the Workbook list. Then go to Worksheet list to check the sheets you want to combine form each workbooks.

4. Click Next to go to the last step, you can specify some setting about the combine result as you need. If you do not need this step.

5. Click Finish and select one folder to place the new workbook which combine data from sheets.

6. Click Save. Now all data has been collected from sheets across workbook into one master sheet.

Combine all sheets from workbooks into one worksheet
If you want to consolidate worksheets across workbooks into one, do as these:
1. In the Combine window, check Consolidate and calculate values across multiple worksheets into one worksheet option.

2. Click Next, and add files into Workbook list, then check the sheets you use to combine and calculate.

3. Click Next, then select one calculation from Function drop down list, and check other options as you need.

4. Click Finish to save the new workbook into a folder.
Now the sheets across workbooks have been consolidated and calculated into one sheet.

Comsolidate worksheets from workbooks into one sheet
Kutools for Excel: 300 functions you must have in Excel, 30-day free trial from here.
The Best Office Productivity Tools
Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%
- Reuse: Quickly insert complex formulas, charts and anything that you have used before; Encrypt Cells with password; Create Mailing List and send emails...
- Super Formula Bar (easily edit multiple lines of text and formula); Reading Layout (easily read and edit large numbers of cells); Paste to Filtered Range...
- Merge Cells/Rows/Columns without losing Data; Split Cells Content; Combine Duplicate Rows/Columns... Prevent Duplicate Cells; Compare Ranges...
- Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
- Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
- Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
- Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
- Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
- More than 300 powerful features. Supports Office / Excel 2007-2021 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features 30-day free trial. 60-day money back guarantee.
Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier
- Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
- Open and create multiple documents in new tabs of the same window, rather than in new windows.
- Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
Sort comments by
#27070
This comment was minimized by the moderator on the site
0
0
#27071
This comment was minimized by the moderator on the site
Report
0
0
#28253
This comment was minimized by the moderator on the site
0
0
#30277
This comment was minimized by the moderator on the site
0
0
#30278
This comment was minimized by the moderator on the site
0
0
#33567
This comment was minimized by the moderator on the site
0
0
#34742
This comment was minimized by the moderator on the site
0
0
#36151
This comment was minimized by the moderator on the site
0
0
There are no comments posted here yet