How to create a list from same cells across multiple sheets in Excel?
Supposing we deploy every monthly sales table in a separated worksheet as below screen shot shown, and all sales tables have the same layout. Now we want to create a list from all sum values (Cell E6) across multiple worksheets. How to get it done? And what if create a dynamic list from sum values of each worksheet? There are two ways for you:
Create a list from same cells across multiple sheets with VBA
Create a dynamic list from same cells across multiple sheets with Kutools for Excel
Easily combine multiple worksheets/workbooks into single worksheet/workbook
It may be tedious to combine dozens of sheets from different workbooks into one sheet. But with Kutools for Excel’s Combine (worksheets and workbooks) utility, you can get it done with just several clicks!
Create a list from same cells across multiple sheets with VBA
With the following VBA code, you can create a list from the specified cells across multiple worksheets easily. You can do as follows:
Step 1: Select the specified cell that you will create your list from. In our case, we select the Cell E6.
Step 2: Press Alt + F11 keys simultaneously to open the Microsoft Visual Basic for Applications window, click Insert > Module, and then paste the following code into the module window.
VBA: Create a list from same cells across multiple sheets
Sub CreateList()
Dim xAddWs As Worksheet
Dim xWs As Worksheet
Dim RngAddress As String
xTitleId = "KutoolsforExcel"
RngAddress = Application.ActiveCell.Address
Set xAddWs = Application.ActiveWorkbook.Sheets.Add
xAddWs.Name = xTitleId
i = 1
For Each xWs In Application.ActiveWorkbook.Worksheets
If xWs.Name <> xTitleId Then
xAddWs.Cells(i, 1).Value = xWs.Range(RngAddress).Value
i = i + 1
End If
Next
End Sub
Step 3: Press F5 key or click the Run button to run this VBA.
Then all values from the specified cell on all worksheets are copied to a new worksheet named KutoolsforExcel. See screen shot:
This VBA will fill the list into a new worksheet, and the values in the list are static which won’t change with the original values.
However, sometimes you may want to fill the list into specified range, and require the list values always be correspondence with the original values in specified cells all the time. To meet these needs, you should try the following method.
Create a dynamic list from same cells across multiple sheets with Kutools for Excel
This method will introduce Kutools for Excel’s Dynamically Refer to Worksheets utility to create a dynamical list from same cells across multiple worksheets.
Kutools for Excel - Packed with over 300 essential tools for Excel. Enjoy a full-featured 30-day FREE trial with no credit card required! Download now!
Step 1: Select the Range where you will fill the dynamic list, and click the Kutools > More > Dynamically Refer to Worksheets.
Step 2: In the opening Fill Worksheets References dialog box,
(1) Click the Fill Order box, and select a fill type from the drop down list. In our case, we select Fill Vertically cell after cell;
(2) In the Fill formula box, specify the cell address which you will create a dynamic list from, and then click the Lock button to lock the formula.
(3) Click the Fill Range button.
Now you will see values in the specified cells across all worksheets are filled into the specified range as below screen shot shown:
When the original values changed, the corresponding values in this specified list will be changed automatically.
Kutools for Excel - Supercharge Excel with over 300 essential tools. Enjoy a full-featured 30-day FREE trial with no credit card required! Get It Now
Demo
Related articles:
Best Office Productivity Tools
Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time. Click Here to Get The Feature You Need The Most...
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!
