createGTIN14
Implementations
Microsoft Excel: AIDCT.GS1.createGTIN14(indicatorDigit, prefixDefinition, value, sparse)
Google Sheets: Google Sheets: aidctGS1CreateGTIN14(indicatorDigit, prefixDefinition, value, sparse)
Create a GTIN-14.
This function returns a matrix of values of the same shape and size as the value parameter.
Parameters
| Name | Type | Description |
|---|---|---|
| indicatorDigit | String | Indicator digit. |
| prefixDefinition* | Any | Prefix definition, either a simple GS1 Company Prefix (as a string) or the result of a call to definePrefix. Any prefix type is supported. |
| value** | Number | Value to transform. |
| sparse | Boolean | If true, value is mapped to a sparse sequence resistant to discovery. |
Parameters in italics are optional.
* This parameter accepts a single value or an array of values.
** This parameter accepts a single value, an array of values, or a matrix of values.