Okay, so I have been working this problem for a few days and it's officially making me crazy. Here's the problem statement:
I have 3 intake sheets for different business units. Each has an Auto-Number column that has a prefix for the BU.
I need to consolidate all of the attachments from those 3 sheets into 1 sheet. So on each sheet, I have an automation. When an attachment is added, copy to "Attachments" Sheet.
However, when multiple attachments are added to Row BU102, it gets copied over multiple times.
I would like to write an automation to remove (move to archive) the duplicate lines, but need to keep the latest ones.
I need to retain the ability for people using this sheet to sort by things other than the created by date.
Solution 1: The first solution I tried was using RankEQ to isolate which was the newest based on the created date. The issue was that RankEQ can't read in dates, and the equations that you can use to make it work, erase the timestamp which is a problem since these come in back to back.
Solution 2: I was able to get it working by creating helper columns. I created a new auto-number column (New Row ID) (just numbers 1-100) and then a Rank helper column =RANKEQ([New Row ID]@row , COLLECT([New Row ID]:[New Row ID], [Row ID]:[Row ID], [Row ID]@row )) and a Validation helper column =IF(Rank@row < COUNTIF([Row ID]:[Row ID], [Row ID]@row ), "Delete", "Keep"). However, to get the New ID column, I had to change the format of the "ROW ID" column to text which broke all of my copy automations.
Any ideas here?
PS. I know I can't just write an equation to auto-number because when people sort by things other than the created by, it will break, unless there is something that I am not thinking of.
Any ideas are appreciated.