Identify MAX Date for each employee
I have created a list that tracks the number of days an employee is out. I need to identify the most recent absence. An employee can be on the list more than once. I would like to use the MAX function to identify the most recent absence for each employee by checking the box in Max Date. Is there a way to do that?
The unique identifier is the Emp Id.
Best Answer
-
Hi @Ronald Anderson,
You can absolutely do this:
=IF(MAX(COLLECT([Leave End]:[Leave End], [Emp ID]:[Emp ID], [Emp ID]@row)) = [Leave End]@row, 1, 0)
Hope this helps, but if I've misunderstood anything or you've any problems/questions then just let us know!
Answers
-
Hi @Ronald Anderson,
You can absolutely do this:
=IF(MAX(COLLECT([Leave End]:[Leave End], [Emp ID]:[Emp ID], [Emp ID]@row)) = [Leave End]@row, 1, 0)
Hope this helps, but if I've misunderstood anything or you've any problems/questions then just let us know!
-
Works perfectly!
Thank you.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.3K Get Help
- 364 Global Discussions
- 199 Industry Talk
- 428 Announcements
- 4.4K Ideas & Feature Requests
- 136 Brandfolder
- 127 Just for fun
- 128 Community Job Board
- 445 Show & Tell
- 28 Member Spotlight
- 1 SmartStories
- 283 Events
- 35 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!