Cum se colectează date de la mai multe foi la o foaie principală în Excel?
Într-un anumit timp, poate fi necesar să colectați date din mai multe foi într-o singură foaie principală pentru consolidarea sau efectuarea altor operații, așa cum se arată în imaginea de mai jos, dar copierea și lipirea conținutului una câte una este dificilă, există trucuri care să o rezolve rapid în Excela?
Colectați date de la mai multe foi într-una cu funcția Consolidare
Colectați date din mai multe foi într-una cu cod VBA
Colectați date din mai multe foi într-una cu funcția puternică Combinație
Colectați date de la mai multe foi într-una cu funcția Consolidare
Dacă doriți să colectați date din mai multe foi într-o singură coală din același registru de lucru, puteți aplica funcția Consolidare în Excel.
1. Într-o nouă foaie a registrului de lucru pe care doriți să colectați date din foi, faceți clic pe Date > Consolida.
2. În Consolidate dialog, faceți următoarele:
(1 Selectați o operație pe care doriți să o faceți după ce combinați datele în Funcţie lista verticală;
(2 Faceți clic pe pentru a selecta intervalul fiecărei foi pe care doriți să o colectați;
(3 Faceți clic pe Add pentru a adăuga intervalul de date în All references casetă listă;
(4 Verificați etichetele pe care le utilizați după combinarea datelor și verificați Create links to source data opțiune dacă doriți să legați datele din foaia de combinare cu datele sursă.
3. clic OK. Acum datele au fost colectate și însumate într-o singură foaie.
Combinați cu ușurință mai multe foi / registru de lucru într-o singură coală sau registru de lucru
|
Pentru a combina mai multe foi sau registre de lucru într-o singură foaie sau registru de lucru poate fi dificil în Excel, dar cu Combina funcție în Kutools pentru Excel, puteți combina fuzionarea a zeci de foi / registre de lucru într-o singură foaie sau registru de lucru, de asemenea, puteți consolida foile într-una numai cu câteva clicuri. Faceți clic pentru funcții complete 30 zile de probă gratuită! |
![]() |
Kutools pentru Excel: cu peste 300 de programe de completare Excel la îndemână, puteți încerca gratuit fără limitare în 30 zile. |
Colectați date din mai multe foi într-una cu cod VBA
Iată un cod VBA care poate colecta date din toate foile dintr-o nouă foaie din registrul de lucru curent.
1. presa Alt + F11 tasta pentru a activa Microsoft Visual Basic for Applications fereastră.
2. clic Insert > Module, și copiați și lipiți codul de mai jos în Module script-ul.
VBA: Colectați toate datele din foi într-o singură.
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