Generate UUID Google Sheets
To generate a unique random key in Google Sheets, you can use built-in functions for simple IDs or Google Apps Script for more robust, permanent identifiers.
1. Simple Alphanumeric Key (Formula)
This formula creates an 8-character hexadecimal string. Note that it will refresh every time the sheet recalculates unless you “Paste as values”.
=DEC2HEX(RANDBETWEEN(0, 999999999), 8)RANDBETWEEN picks a large random number, and DEC2HEX converts it into a 0-9/A-F string.