In the pack: ChatGPT, Claude & Gemini Prompts for Data Analysis, Excel & Google Sheets
Split, Extract and Combine Text in Cells
Prompt
App and version: {{SPREADSHEET_APP}}
Five example cells showing the messy input and, beside each, the result I want: {{INPUT_OUTPUT_EXAMPLES}}
Anything that varies between rows (missing parts, extra spaces, different separators): {{VARIATIONS}}
Write the formula. Rules:
- Work out the pattern from my examples and state it in one sentence before writing the formula. If the examples are inconsistent, point to the conflicting row and ask me.
- Use the simplest functions my app and version support. If a function that would be simpler is missing from my app, give the fallback.
- Handle leading and trailing spaces and non-breaking spaces.
- Show what the formula returns for a row that doesn't match the pattern, so errors are visible instead of silently wrong.
Output: the pattern statement, the formula, a table of my five examples with the result the formula gives for each (mark any that differ from what I wanted), and one row type I should test that I haven't mentioned.
Customize this prompt
Fill in the variables below to personalize this prompt:
Model Settings
Recommended Models
Temperature
Max Tokens
Additional Notes
About this prompt
“Split, Extract and Combine Text in Cells” is a free prompt for ChatGPT in the Productivity category, 212 words long, added to The Prompt Index on October 28, 2026 by The Prompt Index. Copy it with the button above, paste it into ChatGPT or any other AI chat assistant, and send it.
It has 3 placeholders to fill in first:
{{SPREADSHEET_APP}}, {{INPUT_OUTPUT_EXAMPLES}}, {{VARIATIONS}}.
Use the “Customize this prompt” fields to personalise it before you copy.
Recommended models: ChatGPT, Claude, Gemini.
0 upvotes, sent to an AI tool 0 times, viewed 7 times.
Browse all Productivity prompts, the AI prompt database or use the AI prompt finder to search every prompt.