Skip to content

Instantly share code, notes, and snippets.

@AdamWagner
AdamWagner / LevDis.gs
Created November 19, 2018 20:40
Levenshtein Distance Function for Google Sheets
//
// Levenshtein Distance Function for Google Sheets
//
// This function calculates de Levenshtein Distance (or Edit Distance) between two strings.
// I used the algorith and code from Wikipedia (https://en.wikipedia.org/wiki/Levenshtein_distance)
// as a reference and just adjusted the code to be used on Google Sheets.
//
// By: Manoel Lemos / [email protected] / http://manoellemos.com
//
// IMPORTANT: I added some code in the begining of the function to try to solve the issues