r/excel • u/vessva11 • 7d ago
solved How can I arrange Textsplit data so I can remove duplicate data?
Preface: I need help with building a solution for someone who may be my future supervisor, so please excuse my stress. I really need to impress because I am a shoe-in for this position. She's not tech savvy so I'm purposefully avoiding scripts. I am very mid in Excel but willing to learn.
Raw data: 2 columns of email addresses. Some cells have more than one email address. Also includes duplicates.
Request: Put all emails in one column, remove some addresses associated with certain info, and remove duplicates.
Issue: Step one is to remove some addresses, which I do via sorting (easy). My formula for Textsplit works but it won't let me move the data because it refers to the original cells. I don't know how to arrange the data so I can remove duplicates.
•
u/AutoModerator 7d ago
/u/vessva11 - Your post was submitted successfully.
Solution Verifiedto close the thread.Failing to follow these steps may result in your post being removed without warning.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
5
u/Miserable_Cow7578 7d ago
Since your supervisor isn't tech savvy, skip Power Query and use one simple formula that stacks everything into a single clean column automatically:
=UNIQUE(TRIM(TEXTSPLIT(TEXTJOIN(",", TRUE, A2:B100), , ",")))That joins both columns, splits every comma-separated email vertically into one column, trims extra spaces, and removes duplicates all at once.
To fix the issue where Excel won't let you move or delete rows afterward, select that new list, press Ctrl+C, then right-click and choose Paste Values (the clipboard icon with 123). That removes the formula so you can sort or delete addresses freely.
3
u/Academic_Airport_889 7d ago
I think using Power Query would be useful.
Duplicate the two columns of emails ( I do this because I find it useful to see the original data)
and use Power Query to split - the output will be columns without formulas.
Power Query can be used to remove duplicates as well.
1
u/liamjon29 7 7d ago
This is very hard to work out a solution without visuals. Are you able to provide some sort of image/test spreadsheet that replicates the problem?
1
u/matt2s 7d ago
When you say emails, do you mean email addresses? I first read it as email messages.
2
u/NHN_BI 808 7d ago
Excel has its own ETL tool Power Query built in. At first glance it is overwhelming, but the use is quite intuitive after that.
1
u/WesternMiserable3894 7d ago
After textsplit, remove duplicates with the UNIQUE formula. Then use SORT formula to make it easier to find near duplicates caused by typos or erroneous punctuation/spaces.
1
u/Dangerous_Cup3607 1 7d ago edited 7d ago
You know. Notepad++ can help sometimes in this regard. But a youtube tutorial on how to carve out text fields should also give you some lead on it.
But to solve it you can copy the formatted cells (col 2) and paste them into col 3 as “values” such that you can edit the cleaned up version of the emails. I do this kind of email cleaning 1% of the time for a quick clean up; but usually I just do that programmatically such as using python.
1
u/Difficult-Spirit-440 7d ago
You could keep using text split to break out each email address but use VSTACK to consolidate each column created by the split into a single column. Use Unique in front of it to remove the duplicate email addresses from the column. Trim helps by removing any unseen spaces at the beginning or end of the addresses.
=UNIQUE(VSTACK("Emails", TRIM(TEXTSPLIT(A1, , ",")), TRIM(TEXTSPLIT(B1, , ","))))
1
u/Decronym 7d ago edited 3d ago
Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I've seen in this thread:
|-------|---------|---| |||
Decronym is now also available on Lemmy! Requests for support and new installations should be directed to the Contact address below.
Beep-boop, I am a helper bot. Please do not verify me as a solution.
23 acronyms in this thread; the most compressed thread commented on today has 11 acronyms.
[Thread #49749 for this sub, first seen 26th Nov 2026, 06:24] [FAQ] [Full list] ^[Contact] [Source code]
1
u/Level_Imagination544 1 7d ago
The reason it won't let you move it is because TEXTSPLIT results spill from the original formula. Once it looks right, copy the whole spilled range and use Paste Special > Values, and then you can move it and run Data > Remove Duplicates on the pasted column. If a cell has four emails, wrapping it in TOCOL() should stack everything into one column first.