Jun 25, 2019 07:02 AM
I tried the already existing topic about duplicates but was unable to find what I am looking for.
So basically, I have a list of applicants listed chronologically according to the day they applied, and each of the applicants has their own unique ID number. What I need is to be able to see automatically if someone with the same ID applies…I don’t need to remove duplicates from the list, nor to regroup them or anything. I just need them to be marked somehow in case the same ID occurs, so that I can now immediately if someone is applying again or for the first time.
I google sheets I use the =countif(A:A,A1)>1 …is there an equivalent in airtable?
Thanks and sorry if this was already asked.
Jun 25, 2019 07:20 AM
Hi there,
This can get complicated pretty quickly, but the approach I would take is this:
ARRAYJOIN(values)
(LEN({All IDs}) - LEN(SUBSTITUTE({All IDs},{Applicant ID},"")))/LEN({Applicant ID})
The above formula should give you the amount of times the {Applicant ID} appears in the rollup field of {All IDs} :slightly_smiling_face:
Jun 25, 2019 10:31 AM
As @AlliAlosa mentions, this may seem complicated at first. You may want to look at the Quickstart section to the guide I reference in this post.
I would simplify the previous instructions slightly by using an aggregation formula in the rollup field; if you have a large number of applicants, it should also speed up processing a little:
[Applicants]
table to a single record in a new [Summary]
table. You can find several ways to do this here; chose whichever one seems simplest and most logical to you.[Summary]
table with the formula ARRAYJOIN(values)
" Call this field {All IDs}
.[Applicants]
table called something like {Number of Applications}
. It should (a) follow the link to [Summary]
and rollup {All IDs}
using the following aggregation formula (basically, copy-and-paste this formula into the place where you would ordinarily enter an aggregation function.):(LEN(
values
)-LEN(
SUBSTITUTE(
values,
{Applicant ID},
''
)
)
)/LEN(
{Applicant ID}
)
This is essentially the same formula @AlliAlosa provided, but it uses one fewer field and it doesn’t require keeping a copy of the entire {All IDs}
field in each record — which seems to accelerate processing somewhat.
Jun 25, 2019 01:42 PM
Thank you for this! I wouldn’t have thought to use the formula in the rollup field itself - Brilliant!
Feb 12, 2020 06:08 AM
The answer above is Brilliant. Note that with some strings, you will have to convert to a text string or the formula LEN(Value) Fails. Create a new column next to the rolled up value - Concatenate(Value,"") and use this as column in the main Formula.
Dec 14, 2020 08:21 AM
Thank you guys so much for this brilliant idea, @AlliAlosa @W_Vann_Hall @Vikas_Vimal. I followed your instructions and it’s working like a charm, wouldn’t work without the concatenate formula thing, The Only thing that I can’t automate now is how to create and add the Newly created records link to the Calc field. so they are included in the Len calculations , Can you please just guide me on how to implement this?
Thank you so much for your support.
Dec 24, 2020 08:12 AM
Hi there @Ahmed_Elagami! So glad you’ve got it working!
I would suggest setting up a new automation, triggered “when a record matches conditions”.
Set the conditions to be where your linked record field which links to your summary table is empty.
Set the action step to be “update record”, and update the same record which triggered the automation. Choose your linked record field as the field to update and insert the name of your summary record.
When on, this automation should catch any records that aren’t linked appropriately and add them to your summary field.
I hope this helps!
Dec 26, 2020 11:56 AM
Hello again @AlliAlosa, Thankyou so much for the instructions, I just followed your steps in here, I just added( ‘.’ ) to each empty cell in the Linked records field through the automation, so the rollup is updated right away. I can even see the green rectangle update sign in all the rollup lookup fields. It’s working like a charm now, I can’t thank you enough, Merry Christmas, Happy new year.
Jan 15, 2021 08:02 AM
Thanks so much for this! Is it possible to post a quick example in airtable that can be viewed? Looks like an elegant solution, but I’m having trouble getting it to work as described.
Jul 28, 2021 10:37 AM
Hello all - I’ve been trying to implement, and have gotten to the Concatenate step.
However, when I try and create the “All IDs” lookup field back in the Applicants sheet, it says “unexpected error” and doesn’t let me create the field.
Anyone else have this issue?