Home > String Operations > Excel Function to check if text is palindrome or not

Excel Function to check if text is palindrome or not

February 10th, 2005 Leave a comment Go to comments

Definition of palindrome as given in Answers.com

pal?in?drome (p?l’?n-dr?m’)

n.

A word, phrase, verse, or sentence that reads the same backward or forward. For example: A man, a plan, a canal, Panama!

Function IsPalindrome(sInput As String) As Boolean
If sInput = StrReverse(sInput) Then
IsPalindrome = True
Else
IsPalindrome = False
End If
End Function

Categories: String Operations Tags: , ,
  1. No comments yet.
  1. No trackbacks yet.