Return table column value for all rows with one lookup value

megera716

Board Regular
Joined
Jan 3, 2013
Messages
140
Office Version
  1. 365
Platform
  1. Windows
Table2 contains all our employees, and various data on each employee, including their manager's name. I want to look up the manager's name and return all the employees who report to them. Reading here about the FILTER and TOROW functions, it seems like this should work but it's not. A Pivot Table doesn't work for my end goal here, although I will use a Pivot grouped by manager to manually copy and paste if I have no other choice (but I have over 700 employees to do this with so I don't want to go that route if I don't have to).

In cell B7, I have formula {=FILTER(Table2[Employee],Table2[Manager]=A7)} but when I drag the formula down to row 8, 9, 10, 11.... it just returns the same value that was on Row 7.

It comes out looking like Rows 7:11, but I want it to look like Rows 14:18.
1690314630674.png
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Do not use Ctrl Shift Enter to confirm the formula, just use Enter & do not copy it down.
 
Upvote 0
Solution
OMG, I guess sometimes the right solution is the simplest one! Thank you, that worked perfectly :love:
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,092
Messages
6,123,064
Members
449,090
Latest member
fragment

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