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.
- puretextAug 30, 2023Copper Contributor
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.
- puretextAug 30, 2023Copper ContributorIt works! You just saved me probably 2 weeks of banging my head against the wall, using 5 formulas I wasn't familiar with.