In this video, I show you how to automatically generate and concatenate custom codes in Google Sheets using Apps Script! Learn how to add prefixes or suffixes to your input, validate that only numbers (or numbers of specific length) are accepted, and even clear invalid entries instantly. This is perfect for inventory, product codes, or any workflow where you need standardized, validated data entry.

We’ll cover:
- How to trigger Apps Script on cell edits
- Concatenating values (like adding a prefix or suffix)
- Validating input to accept only numbers or numbers of a set length
- Automatically clearing invalid entries

You can find the template from this video in my patreon page, where you´ll also have priority responses to your questions
https://practicalsheets.com/patreon

You can also join my academy practicalsheets.com, where you´ll find, not only the templates for this and all the videos, but also Google Sheets Courses, technical service, and more

You can also subscribe to the channel where you´ll find a new Sheets video every week.

Here are some of the places where you can follow and support me:
Patreon: https://practicalsheets.com/patreon
Webpage: https://practicalsheets.com
Newsletter: https://practicalsheets.com/newsletter
Telegram: https://practicalsheets.com/telegram
Facebook: https://practicalsheets.com/facebook
Twitter: https://practicalsheets.com/twitter

Any suggestion, question or insights, feel free to comment below