Data Summary using 3D references

dukesd

New Member
Joined
Jun 4, 2012
Messages
2
I have a database that contains many different worksheets that all are organized identically. I want to create a summary worksheet that compiles data from multiple cells (20 pieces of data, each scattered around the worksheet) from each worksheet into a database to automate my data analysis... Is there a way to do this? I've lost myself in nested "IF" loops and am convinced there must be a better way... I don't want to SUM the data or anything (which the 3D refs functions all make you perform operations on the data), I simply want to reference the cell contents of each sheet. Is there a way to "fill down" and increment the worksheet rather than the cell?

Here's the desired outcome (column fields are separated by "/"):

Sample Number/data1/data2/data3/data4/data5/.../data20
1...
2...
3...
4...
5...

Ideally, if I add a worksheet in between the 3D cell reference, I'd like it to add another line to the database to include the next sample!!!

Thanks to anyone who can help me out!!
 
Hi and Welcome to the Board,

You could start by using INDIRECT to reference the combination of a SheetName plus Cell Address.
Excel Workbook
ABCDEFG
1Addresses->A1D11C5J3
2Sample No.Data1Data2Data3Data4
3Sheet NamesSheet011123.0456.078.0910.0
4Sheet022120.7459.872.3913.0
5Sheet033114.8465.268.0914.0
6Sheet044108.4458.364.9904.4
7Sheet055107.9464.573.7899.1
8Sheet066106.2461.083.3891.0
9Sheet077103.2463.386.7892.1
10Sheet088103.0459.376.8884.8
11Sheet09998.3465.273.9892.7
12Sheet1010105.9473.164.6888.7
13Sheet1111103.0468.863.5880.6
14Sheet121294.5466.362.7882.4
Sheet



As to automatically adding to your table when a sheet is added, that could be done with VBA if really necessary.
 
Upvote 0
JS411, Thanks for your suggestion - clever putting the reference locations in row A! This was able to populate my summary quite nicely.

Now that the first hurdle is solved, is there a function that will call up the worksheet names automatically (fill in column "B" for me)? Inputting ~50 worksheet names will lead to some misspellings and frustration ahead for multiple users of the database that aren't as excel-friendly...
 
Upvote 0
Here's a macro that could do that...

Code:
Sub List_SheetNames()
    Dim cStart As Range
    Dim lIdx As Long
    Set cStart = Range("B3")
    
    For lIdx = 1 To Worksheets.Count
        cStart(lIdx) = Worksheets(lIdx).Name
    Next
End Sub
 
Upvote 0

Forum statistics

Threads
1,226,840
Messages
6,193,283
Members
453,788
Latest member
drcharle

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top