This script for Google Spreadsheets allows you to generate slugs for your data such as might be used for creating unique urls.
Use it like this!
# | A | B | C |
---|---|---|---|
1 | a | b | slug |
2 | foo | baz bing | =slugify(A2:B4) |
3 | bar | BAZ | |
4 | FOO | baz-bing |
And you get this!
# | A | B | C |
---|---|---|---|
1 | a | b | slug |
2 | foo | baz bing | foo-baz-bing |
3 | bar | BAZ | bar-baz |
4 | FOO | baz-bing | foo-baz-bing-2 |
06:07:20 Error TypeError: Cannot read property 'length' of undefined slugify @ slugify.gs:7
Debug error. i can't run it