Brian Dunning's FileMaker Custom Functions

DupesInList ( ValueList )

Returns duplicate values from a list.

  Average rating: 4.3 (32 votes) Log in to vote

Daniele Raybaudi   Daniele Raybaudi - Show more from this author

Share on Facebook Share on Twitter

  Sample input:
DupesInList ( "a¶b¶a¶c¶a" )
  Sample output:

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

Returns duplicate values from a list.
( Inspired by Jon Rosen's IdentifyDupes( ) cf1334 )



Stathis Askaridis   Stathis Askaridis, SICOA Consulting LTD
Feb 3, 2020
You shouldn't use $i for the iterations, as it is a commonly used variable, which means the custom function will break $i in scripts.
Kent Silveira   Kent Silveira, Kona Koncepts
Nov 24, 2020
Greetings, this Custom Function is great. I created a version that uses the While function (rather than recursion). DupValueFinder function. It also addresses Stathisʻs concern regarding the var $iʻ for the iterations. I noticed with Let an internal variable doesnʻt seem to be recognized unless it is a dollar sign variable. The While function does not seem to have this limitation.
Kent Silveira   Kent Silveira, Kona Koncepts
Nov 25, 2020
Renamed DupValueFinder to RepeatValueFinder to avoid confusing the two.

Log in to post comments.


Note: these functions are not guaranteed or supported by Please contact the individual developer with any questions or problems.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 16 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth: