These are some helpful formulas that can be used in Google Sheets documents.
The add-on can be found here. Currently only available to users in the howgood domain.
Note: These formulas only work with these barcode types:
- UPC-A (12 digit)
- EAN-13
- GTIN-13
- GTIN-14
Here's how to use the included formulas in a google sheet.
Given an incomplete barcode without a check digit, this will return the calculated digit.
input: =CALC_CHECK_DIGIT(01234567890)
output: 5
Given a full barcode, this will return TRUE
if the barcode is valid
and FALSE
if it is invalid.
input: =VALID_CHECK_DIGIT(012345678905)
output: TRUE
Given an invalid barcode, this will return the barcode with the check digit appended to it.
input: =APPEND_CHECK_DIGIT(01234567890)
output: 012345678905
Given a barcode, this will identify the type of barcode as one of these possible types:
- UPC-A
- GTIN-13
- GTIN-14
If the barcode is invalid, an error is returned.
input: =BARCODE_TYPE(012345678905)
output: UPC-A
input: =BARCODE_TYPE(01234567890)
output: ERROR: 01234567890 is not a valid barcode size.