DISTANCE

Modified on Fri, 16 Aug at 9:27 AM

Introduction

Computes the edit distance (also known as Levenshtein distance) between two strings. Use it to see how similar or dissimilar the string values in two columns are, such as when evaluating the quality of a company name match.


FORMULAEDITDISTANCE
EXAMPLE FORMULAEDITDISTANCE(Column A, Column B)
EXAMPLE INPUTEDITDISTANCE(company, dbcompany)
EXAMPLE OUTPUT2


Sample Usage


Valid ExamplesInvalid Examples
EDITDISTANCE(text_col, text_col_2)EDITDISTANCE(num_col, num_col)


Notes

  • Only "string" data types can be used with this formula
  • Counts the difference between each string "letter" 
  • Cannot compute the distance between dates

See Also

Math/Calculations


Still having issues? Contact us at [email protected]

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article