Skip to content

Instantly share code, notes, and snippets.

@jhnferraris
Forked from msubel/uuid_v4_excel_formula.txt
Created February 21, 2019 01:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jhnferraris/e92a49c0967c754d009da688865e7dec to your computer and use it in GitHub Desktop.
Save jhnferraris/e92a49c0967c754d009da688865e7dec to your computer and use it in GitHub Desktop.
An Excel Fromula to generate a UUID v4
=LOWER(CONCATENATE(DEC2HEX(RANDBETWEEN(0;POWER(16;8));8);"-";DEC2HEX(RANDBETWEEN(0;POWER(16;4));4);"-";"4";DEC2HEX(RANDBETWEEN(0;POWER(16;3));3);"-";DEC2HEX(RANDBETWEEN(8;11));DEC2HEX(RANDBETWEEN(0;POWER(16;3));3);"-";DEC2HEX(RANDBETWEEN(0;POWER(16;8));8);DEC2HEX(RANDBETWEEN(0;POWER(16;4));4)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment