Help with Max/Collect Function

Hello!

For my project, I have a database of task cards. Information for these task cards (such as Date updated, status, labor hours per skill set, etc) is input into a separate sheet, which is collected and fed into my main database.

Currently, I have a helper column that says "Is this the most recent row updated for this specific task card?" based on the date entered.

The problem is, when the task card is completed it gets touched by two different skill sets: Skill 1 and Skill 2, lets say - so both are completed as of the same date, and both are picked as 'Most Recent'. This causes problems because when the information is exported to my database, the column shows the information twice in that cell - which gets messy!

Currently, to get around this problem, I'm asking our team to just... leave one of them blank, but this isn't a pretty solution and is just begging for a mistake to get made down the road.

I was hoping some of the clever minds on this forum might have a suggestion.

image.png

Below is the formula I'm using for the checkbox.

=IF(MAX(COLLECT(Date:Date, [Control #]:[Control #], [Control #]@row)) = Date@row, 1, 0)

(I did try using a "Auto-Numbers" Modified By column, but the dates ended up being exactly the same anyway, and it caused an even bigger mess.

Another attempt had me tasking our team with checking 'Most Recent' manually, but I wasn't sure how to tell any other instances of that Task Card to UNCHECK 'Most Recent' automatically.)

Tags:

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!