How to include two matches with Index/Match
I want to be able to return the contract status of all employees assigned to a job.
I have a column called Employee Name which is a multi select drop down where employees are assigned to a job. I then split out those employees on a single service agreement into another column called SSA Employee using:
=IF([Contract Type Helper]@row = "FTE", "Not Applicable", JOIN(COLLECT({Employee Name}, {Contract}, NOT(CONTAINS(@cell, "FTE" )), {Employee Name}, CONTAINS(@cell, [Employee Name]@row)), " ")))
I then have another column which returns the Contract Status
=IF([SSA Employee]@row = "Not Applicable", "Not Applicable", JOIN(COLLECT({Contract Status}, {Employee Name}, CONTAINS(@cell, [SSA Employee]@row)), ", ")))
As people can be employed on an SSA for more than one job, I then need to incorporate this into the above formula so it's only returning the employee contract status when the job # matches. Any ideas?!
Answers
-
It sounds like you are going to want an INDEX/COLLECT. Are you able to provide some screenshots for context?
-
Sure Paul, this is one that works fine but only when each employee has one contract.
If the person has two contracts, then both of the statuses come back, whereas I only want the one which matches the Job# which is a column on both sheets.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.2K Get Help
- 445 Global Discussions
- 143 Industry Talk
- 476 Announcements
- 5K Ideas & Feature Requests
- 84 Brandfolder
- 150 Just for fun
- 71 Community Job Board
- 488 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 301 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!