When working with text in Excel, you may need to split names, combine columns, extract specific words, or separate email addresses. Instead of figuring out the formula yourself, you can describe the result you want to Copilot in Excel. In this article, you will learn how to use Copilot for text formulas in Excel.
Key Takeaways:
- Copilot can create text formulas using simple prompts.
- Use Copilot to split names and other text into separate columns.
- Combine text from multiple cells using a formula.
- Extract usernames, domain names, and specific words from text.
- Review the suggested formulas and test them with different values.
Table of Contents
Introduction to Text Formulas
Excel provides several text functions to split, combine, extract, and modify text values. Here are some commonly used text formulas in Excel:
- TEXTSPLIT – Splits text into multiple columns or rows based on a delimiter.
- CONCAT – Combines text from multiple cells into one cell.
- TEXTJOIN – Combines text from multiple cells using a specified delimiter. It can also ignore blank cells.
- LEFT – Extracts a specified number of characters from the beginning of a text string.
- RIGHT – Extracts characters from the end of a text string.
- MID – Extracts characters from the middle of a text string.
- TEXTBEFORE – Extracts text before a specified character or delimiter.
- TEXTAFTER – Extracts text after a specified character or delimiter.
How to use Copilot for Text Formulas in Excel
1. Split Text Using Copilot
STEP 1: Select the data in the Excel workbook.
STEP 2: Go to the Home tab and click the Copilot button.
STEP 3: In the Copilot pane, enter the description of the task you want to perform.
“Split the full names in column A into two separate columns. Put the first name in column B, and the last name in column C. Use a formula to separate the names.”
STEP 4: Copilot will analyze your data and suggest a suitable formula.
2. Combine Text Using Copilot
For example, suppose column A contains first names and column B contains last names. You want to combine them into a full name in column C. You can use the Copilot feature to describe it and the formula will be created on its own.
“Combine the first names in column A and last names in column B into a single full name in column C. Add a space between the names and use a formula.”
3. Extract Text Using Copilot
Excel often contains information that you need to extract from a larger text string. For example, you may want to extract email usernames, domain names, product codes, or specific words. Ask Copilot to extract text using this prompt:
“Extract the username from each email address in column A. The username is the text before the @ symbol. Extract the domain name to Column C, it is the text after the @ symbol.”
Tips & Tricks
- Mention the source column in the prompt.
- Describe how you want the final text to appear.
- Mention whether you want to split text using spaces, commas, hyphens, or other characters.
- Tell Copilot that you want an Excel formula instead of manually changing the data.
- Test the suggested formula with different text values, blank entries, inconsistent data, etc.
FAQs
1. Can Copilot split text into separate columns in Excel?
Copilot can suggest formulas such as TEXTSPLIT to separate text using spaces, commas, or other delimiters.
2. Which Excel formula combines text from multiple cells?
Two common Excel formulas can be used to combine text from multiple cells: CONCAT and TEXTJOIN
3. How to extract text before a specific character in Excel?
The TEXTBEFORE function extracts text before a specified character or delimiter. The syntax of this function is:
=TEXTBEFORE(text, delimiter, [instance_num], [match_mode], [match_end], [if_not_found])
- text: Text string or cell reference to search.
- delimiter: Character or text used as the separator.
- [instance_num]: Specifies which delimiter occurrence to use.
- [match_mode]: Controls case sensitivity (0 = sensitive, 1 = insensitive).
- [match_end]: Optional. Treats the end of the text as the delimiter (1) or returns an error (0).
- [if_not_found]: Optional. Value to return if the delimiter is missing.
4. Can Copilot extract email usernames in Excel?
Copilot can suggest a formula to extract the username before the @ symbol in an email address.
5. Can Copilot create text formulas using plain language?
You can describe the required result in simple language, and Copilot can suggest a suitable Excel formula.
John Michaloudis is a former accountant and finance analyst at General Electric, a Microsoft MVP since 2020, an Amazon #1 bestselling author of 4 Microsoft Excel books and teacher of Microsoft Excel & Office over at his flagship MyExcelOnline Academy Online Course.




