Sep 16 2024 07:58 AM - edited Sep 16 2024 07:59 AM
Hi everyone, over the last few weeks we have had a series of posts to show you some of the things that are possible to do with Copilot in Excel. Today I have a list of words and would like to detect which ones are Palindromes. What is a Palindrome? A Palindrome is a word or sequence of characters that is the same backwards and forwards.
To get started, I ask Copilot:
Add a column to indicate whether the words are palindromes
Looking at B2:B88, here's 1 formula column to review and insert in Column C:
Is Palindrome
Determines whether each word is a palindrome by checking if the word reads the same backward as forward, and returns "Yes" or "No" accordingly.
=IF([@Words]=TEXTJOIN("",,MID([@Words],SEQUENCE(LEN([@Words]),1,LEN([@Words]),-1),1)),"Yes","No")
I’m not sure what the formula is doing, so I click on the “Show explanation” dropdown and it says:
Determines whether each word in the "Words" column is a palindrome by using the following steps:
The suggested formula column sounds like it is doing the right thing, so I click on the button to insert the column:
Over the coming weeks I will continue to share more examples of what you can do with Copilot in Excel.
Thanks for reading,
Microsoft Excel Team
*Disclaimer: If you try these types of prompts and they do not work as expected, it is most likely due to our gradual feature rollout process. Please try again in a few weeks.