Hope I describe this well enough, but I've attached an example file.
I have a large data set of every employee and the locations they work at, some employees work at multiple locations. I want a formula that will pull in all the employees associated with a location entered in a cell, which I know how to do, but I also want to list all the locations that those employees work out of which I don't know how to do. So I need a formula that will repeat the employee # as many times as it appears in the data set and then go on to the next employee, and also a formula that will do the same for the locations associated with the employee (like an index match that won't repeat).
Data Set
Employee ID # Location #
123 A
123 B
150 C
160 C
170 A
170 B
170 C
180 C
Pull In all Employees at A (I use = Small(IF(Location = A, Empolyees),Row()-Row())
123
170
All Locations that Employees at A work at
123 A
123 B
170 A
170 B
170 C
Bookmarks