Forum Discussion
List least recent date from table with dynamic array
- Aug 30, 2023
=SORT(HSTACK(UNIQUE(TOCOL(D4:L9,3,1)),BYROW(UNIQUE(TOCOL(D4:L9,3,1)),LAMBDA(x,MAX(INDEX((x=D4:L9)*D3:L3,))))),2,1)
With Office 365 or Excel for the web you can try this formula which uses your MAX(INDEX(... solution.
=SORT(HSTACK(UNIQUE(TOCOL(D4:L9,3,1)),BYROW(UNIQUE(TOCOL(D4:L9,3,1)),LAMBDA(x,MAX(INDEX((x=D4:L9)*D3:L3,))))),2,1)
With Office 365 or Excel for the web you can try this formula which uses your MAX(INDEX(... solution.
Upon further review, this solution actually does too much. I need to pull the list of names from a roster and not the historic roles, because the list will feed into an automated labor plan that accounts for critical roles with special training, new hires, and exemptions from certain roles.
I think I can convert this using sortby, but It will take some time to figure out.