# Reporting Line Analysis

#### crimsoneaglet

##### New Member
This is either a very easy question or a very hard one, I'm not sure which.

What I have is a list of people and then alongside that, a list of the people who that person reports to. What I want to know is how many people cumulatively report into each person, including those who report into those who report into them. Example below where because Person B, C and D report to Person A, and everyone else reports to them, the number of reports Person A has is actually 25, not 4.
 Employee Manager Person A Super Boss Person B Person A Person C Person A Person D Person A Person E Person A Person F Person B Person G Person B Person H Person B Person I Person B Person J Person B Person K Person B Person L Person B Person M Person C Person N Person C Person O Person C Person P Person C Person Q Person C Person R Person C Person S Person C Person T Person C Person U Person D Person V Person D Person W Person D Person X Person D Person Y Person D Person Z Person D

<tbody>
</tbody>

Does anyone have a solution? This is driving me mad.

Thanks!

### Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.

#### WarfritLive

##### Board Regular
I spent way too long trying to do this with a long formula.
Just do this:

-In column B paste your Employees
-In column C paste your managers
-In cell D2 write the formula =VLOOKUP(C2,\$B:\$C,2,FALSE)
-Double click the thing to autofill the formula down
-Click and drag the thing to autofill to the right. Keep going until the rightmost column is N/A's
-Somewhere else make a column of the managers you want to tally (as pictured on the right).Mine is in H
-In the cell next to the manager name use the formula =COUNTIF(C:G, H2)
-Drag it down so it tallys all your managers

Boom done.
Work smarter not harder

Edit: Obviously for the tally formula you need to use whatever column is appropriate

Last edited:

#### crimsoneaglet

##### New Member
Perfect solution.

Thanks!

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

1,164,087
Messages
5,835,308
Members
430,351
Latest member
ddalton

### 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.

### Which adblocker are you using?

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

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