G
Guest
how do i find palindromes using excel?
how do i find palindromes using excel?
Using VBA
Function Palindrome(strTest As String) As Boolean
Palindrome = Trim(strTest) = StrReverse(Trim(strTest))
End Function
See Chip Pearson's site for guidance on where to place the function's code
http://www.cpearson.com/excel/codemods.htm
Once you've got the code in the right place, utilize it like so:
with the word or phrase you want test in A1, put
=Palindrome(A1)
in B1. If it's a palindrome you'll see TRUE, otherwise FALSE