Look up data across multiple sheets

Fknoll27

New Member
Joined
Dec 13, 2013
Messages
2
Hello all I am new to this forum and have found all of my answers on here thus far, this forum is fantastic.
However I am seeking some more info, so here it goes.

I have a workbook with multiple worksheets (about 80) all with the same format.
I enter data on a new worksheet and name the tab the date the data is entered.
The data entered is a list of names associated with the managers name of which they report to.
Am I able to make a summary of all the employees who work for their manager on a summary sheet?

I have already made a VBA code to run when I add additional sheets

Sub ListSheetNames()

Range("A1").Select

Dim R As Range
Dim WS As Worksheet
Set R = ActiveCell
For Each WS In ThisWorkbook.Worksheets
R.Value = WS.Name
Set R = R(2, 1)
Next WS
End Sub

I then Change the "MySheets" range to include any additional tabs that have been created.

I was able to get a numerical value for the amount of people by using the code

=SUMPRODUCT(COUNTIF(INDIRECT("'"&MySheets&"'!K15:K29"),B5))

B5 is the name of the manager in my summary sheet.

Can I return a list of names rather than a count?
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes

Forum statistics

Threads
1,216,165
Messages
6,129,235
Members
449,496
Latest member
Patupaiarehe

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