I have a list of Invoice ID Numbers. They should each be unique AND in sequence (so there should be no gaps in numbers).
I can easily check for duplicate Invoice ID Numbers. However, I can't figure out how to determine if any Invoice ID Numbers are missing in the sequence. In Excel, I would order the invoices by the Invoice ID Number. Then I could check that the current row's Invoice ID number matches the previous number plus one. Any that didn't match would be flagged.
I've tried using the "Multi-Row Formula" Tool where my Invoice ID Number is a "Double". I created a new field with the following expression:
[Row-1:InvoiceID]+1
I would have thought that this would take the previous row (the "Row-1") of the InvoiceID Field and add one to it. However, I get "1" as the data for each record in the new field
I've thought about using the summarize tool to get the Min and the count of the Invoice ID and then create a table from from the Minimum Invoice ID, and adding 1 for the COUNT number of times...but I can't figure out how to do that.
There's got to be an easy way to do this that I'm missing..........