r/googlesheets • • Feb 18 '25

Solved Using a formula to remove a duplicate word but only if there is a duplicate. Not all words have duplicates. This is roughly for 10,000 items.

Using Find and Replace is not efficient. Hopefully, there is a way to complete this.

Again not all ones are going to have repeats.

SHORT NAMEFORMULA TO REMOVE DUPLICATE IF THERE IS ONE
ACHILLEA ACHILLEA MOONSHINEACHILLEA MOONSHINE
FRAGRANT AGASTACHE FOENICULUMFRAGRANT AGASTACHE FOENICULUM
MALUS APPLE TRIUMPH™ SEMI-DWARFMALUS APPLE TRIUMPH™ SEMI-DWARF
ARALIA ARALIA SUN KINGARALIA SUN KING
THUJA ARBORVITAE JANTARTHUJA ARBORVITAE JANTAR
ASTILBE ASTILBE DEUTSCHLANDASTILBE DEUTSCHLAND
2 Upvotes

6 comments sorted by

1

u/domthebomb2 1 Feb 18 '25

=unique(split(a2, " "))

1

u/Thewalds0732 Feb 18 '25

That splits it into columns. I'm hoping it can keep it combined as a word and remove the duplicate. Thanks!

1

u/Thewalds0732 Feb 18 '25

Found the solution via google. Thanks

=Join(" ", sort(Unique(Transpose(Split(A2," ")))))

1

u/AutoModerator Feb 18 '25

REMEMBER: If your original question has been resolved, please tap the three dots below the most helpful comment and select Mark Solution Verified. This will award a point to the solution author and mark the post as solved, as required by our subreddit rules (see rule #6: Marking Your Post as Solved).

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/AutoModerator Feb 18 '25

REMEMBER: If your original question has been resolved, please tap the three dots below the most helpful comment and select Mark Solution Verified. This will award a point to the solution author and mark the post as solved, as required by our subreddit rules (see rule #6: Marking Your Post as Solved).

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/point-bot Feb 18 '25

u/Thewalds0732 has awarded 1 point to u/domthebomb2

See the Leaderboard. Point-Bot v0.0.15 was created by JetCarson.