Brian Dunning's FileMaker Custom Functions

GapsInSequence ( listOfValues )

Returns a list of gaps found in an incrementing sequence.

  Be the first to rate this function Log in to vote

Michael Horak   Michael Horak - Show more from this author
*COMMENT Visual Realisation

Share on Facebook Share on Twitter

  Sample input:
GapsInSequence ( listOfValues )
with the following listOfValues:
Invoice 1
Invoice 2
Invoice 5
Invoice 6
Invoice 8
Invoice 11
Invoice 12
  Sample output:
Invoice 3 - Invoice 4
Invoice 7
Invoice 9 - Invoice 10

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

Returns a list of gaps (missing values) found in an incrementing sequence. Each gap is listed as an individual value or as a range.

A companion function to CollapseList()



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 18 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: