jgreenlee01
asked on
Return first occurence of match, return the next match on next occurence
I have attached a spreadsheet here to demonstrate what I'm trying to do.
I have a list, with a department number and an employee name on one spreadsheet. More than one employee may work in a department.
I need to have each person who matches a department show up , I've tried a Vlookup formula however this only returns the first person, I also tried a match formula, any assistance would be greatly appreciated!
Test-Payroll-Automation.xlsx
I have a list, with a department number and an employee name on one spreadsheet. More than one employee may work in a department.
I need to have each person who matches a department show up , I've tried a Vlookup formula however this only returns the first person, I also tried a match formula, any assistance would be greatly appreciated!
Test-Payroll-Automation.xlsx
ASKER
Hi Professor JimJam,
Thank you,
When I apply this solution to the larger spreadsheet I am not getting the right names produced by the formula. A random name appears to show up. What could I be misapplying?
Thank you,
When I apply this solution to the larger spreadsheet I am not getting the right names produced by the formula. A random name appears to show up. What could I be misapplying?
ASKER
This is what my formula looks like when converted to work for the larger spreadsheet
=IFERROR(INDEX('ADP Hours Worked by Dept Report'!B:B,SMALL(IF(B13=' ADP Hours Worked by Dept Report'!A:A,ROW('ADP Hours Worked by Dept Report'!B:B)-ROW('ADP Hours Worked by Dept Report'!$B$2)+1),ROWS('ADP Hours Worked by Dept Report'!$A$2:A2))),"")
=IFERROR(INDEX('ADP Hours Worked by Dept Report'!B:B,SMALL(IF(B13='
ASKER
On the test sheet that is attached to the original question, the return appears to be 0 with the Ctrl Shift Enter.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
.
see attached
=IFERROR(INDEX(Sheet2!$B$2
Test-Payroll-Automation.xlsx