Hello! I have an automated attendance sheet. I need a formula when if an employee is on duty "D" in the {=Today()} column, the employee name should appear in the duty table. Thank you!
Hello! I have an automated attendance sheet. I need a formula when if an employee is on duty "D" in the {=Today()} column, the employee name should appear in the duty table. Thank you!
Last edited by florin119; 03-22-2022 at 01:15 PM.
Hi there,
Please refer to the attached file.
We can use a combination of Index/Match where we use the DAY to offset the columns.
The formula below will return the first matching result. By changing the very last '1' to a '2' we get the second match for the "D".
This is an array formula, hence is entered by pressing Ctrl + Shift + Enter keys simultaneously.
Formula:
Please Login or Register to view this content.
Cheers..
If your Question is answered; please mark it SOLVED. If you are happy with a member's solution, say 'Thanks' and click the 'Star' to Add Reputation.
AJ11=FILTER($B$7:$B$25,INDEX($C$7:$AG$25,,MATCH(AJ$6,$C6:$AG6,0))="D")
Copy across
Thank you ORoos for your reply! It works !![]()
Thank you CARACALLA for your reply! It works !![]()
Is there a way to apply this formula --- AJ11=FILTER($B$7:$B$25,INDEX($C$7:$AG$25,,MATCH(AJ$6,$C6:$AG6,0))="D") --- in MS Office 2007? I have an old workstation that I can't update to MS Office 365. Thank you!
Last edited by florin119; 03-21-2022 at 11:07 AM.
AJ11=IFERROR(INDEX($B$7:$B$25,SMALL(IF($C$7:$AG$25="D",IF($C$6:$AG$6=AJ$6,ROW($B$7:$B$25)-ROW($B$7)+1)),ROWS($B$7:B7))),"")
Control+shift+enter
copy across and down
Thank you for your expertise! I appreciate your effort and time! Best wishes!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks