Skip to content

Instantly share code, notes, and snippets.

@younes-alouani
Created April 18, 2022 11:30
Show Gist options
  • Save younes-alouani/34b8bd1d19686b9102910dcbb5490443 to your computer and use it in GitHub Desktop.
Save younes-alouani/34b8bd1d19686b9102910dcbb5490443 to your computer and use it in GitHub Desktop.
Slugify text (remove diacritics from it) with "simple" spreadsheet formula (Google, Excel, ...)

Lower string and replace " " for "-", removes : "/" , "(" , ")", "," and replaces "&" with "and"

=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(LOWER(B2),"š","s"),"ž","z"),"à","a"),"á","a"),"â","a"),"ã","a"),"ä","a"),"å","a"),"ç","c"),"è","e"),"é","e"),"ê","e"),"ë","e"),"ì","i"),"í","i"),"î","i"),"ï","i"),"ð","d"),"ñ","n"),"ò","o"),"ó","o"),"ô","o"),"õ","o"),"ö","o"),"ù","u"),"ú","u"),"û","u"),"ü","u"),"ý","y"),"ÿ","y")," ", "-"),",",""),"/","-"),"(",""),")",""),"&","and")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment