validateGTIN
Implementations
Microsoft Excel: AIDCT.GS1.validateGTIN(gtin, level)
Google Sheets: Google Sheets: aidctGS1ValidateGTIN(gtin, level)
Validate a GTIN of any length.
This function returns a matrix of values of the same shape and size as the gtin parameter.
Parameters
| Name | Type | Description |
|---|---|---|
| gtin** | String | GTIN to validate. |
| level | Number | Level 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.