Skip to content

createAI82Sequence

Implementations

Microsoft Excel: AIDCT.GS1.createAI82Sequence(length, startValue, count, exclusion, tweak)

Google Sheets: Google Sheets: aidctGS1CreateAI82Sequence(length, startValue, count, exclusion, tweak)

Create a sequence of GS1 AI 82 encodable character set strings.

This function returns an array of values.

Parameters

NameTypeDescription
lengthNumberLength of string to create.
startValueNumberStart value of a domain of values to transform.
countNumberCount of values to transform. If positive, values transformed are startValue to startValue+count-1. If negative, values transformed are startValue down to startValue+count+1.
exclusionNumberString values to exclude. Valid values are 0 (no exclusions) and 2 (strings that are all numeric excluded).
tweakNumberValue by which to tweak the transformation. If not provided or zero, the output is sequential. Otherwise, the output is encrypted in such a way as to appear random, masking the values used as inputs to the sequence.

Parameters in italics are optional.