Need a formula to search for the most recent value in Column B for similar values in Column A
Hello,
Would someone know how to build a formula for the following situation?
We have a sheet with employee info with a name column (say Column A) and a status column (say Column B).
When we make a change to an employee, we create a new row. In the Status column, we select the change from a drop-down.
I need to have a checkmark column that identifies the row with the latest change in Column B for each employee (an employee may have 1 to multiple rows).
Thank you for your help.
Tony
Best Answer
-
Hi @Tony Di Paolo ,
If you're not altering any of the previously entered statuses, then this should work for you:
Add in a column C as system generated modified date and column D for your checkbox.
The following formula in D will tick the latest dated entry for each employee:
=IF(MAX(COLLECT(C:C, A:A, A@row)) = C@row, 1, 0)
Example (using manually entered rather than system generated modified dates):
You can then use a filter to find only the latest (i.e. ticked) ones.
If I've misunderstood something, let me know and I'll try and fix it for you, but I hope this helps!
Answers
-
Hi @Tony Di Paolo ,
If you're not altering any of the previously entered statuses, then this should work for you:
Add in a column C as system generated modified date and column D for your checkbox.
The following formula in D will tick the latest dated entry for each employee:
=IF(MAX(COLLECT(C:C, A:A, A@row)) = C@row, 1, 0)
Example (using manually entered rather than system generated modified dates):
You can then use a filter to find only the latest (i.e. ticked) ones.
If I've misunderstood something, let me know and I'll try and fix it for you, but I hope this helps!
-
Thank you very much, Nick. This is wonderful. It worked perfectly.
Tony.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.8K Get Help
- 434 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!