Skip to content

isValidGTIN

Implementations

Microsoft Excel: AIDCT.GS1.isValidGTIN(gtin, level)

Google Sheets: Google Sheets: aidctGS1IsValidGTIN(gtin, level)

Determine if a GTIN of any length is valid.

This function returns a matrix of values of the same shape and size as the gtin parameter.

Parameters

NameTypeDescription
gtin**StringGTIN to validate.
levelNumberLevel at which to validate the GTIN. Valid values are 0 (any), 1 (retail consumer trade item), and 2 (other than retail consumer trade item level).

Parameters in italics are optional.

** This parameter accepts a single value, an array of values, or a matrix of values.