Remove all periods from the end of a text string within a cell

GaryG9595

Board Regular
Joined
Jun 13, 2014
Messages
74
Office Version
  1. 365
Platform
  1. Windows
Hello,
I have a column of data containing part numbers.
ex.
abc-123.
abc-12.0632.
abcdef-12.987.6540.......
grt-65498...

Is there a way that I can remove all periods from a text string in excel, but only at the end of the string?

Results needed.
abc-123
abc-12.0632
abcdef-12.987.6540
grt-65498

Thanks in advance.
Gary
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
What version of Excel are you using?
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0
What version of Excel are you using?
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
Updated and Thank you.
I'm using Microsoft 365 apps
 
Upvote 0
Thanks for that.
How about
Fluff.xlsm
AB
1abc-123.abc-123
2abc-12.0632.abc-12.0632
3abcdef-12.987.6540.......abcdef-12.987.6540
4grt-65498...grt-65498
Sheet6
Cell Formulas
RangeFormula
B1:B4B1=TEXTJOIN(".",,TEXTSPLIT(A1,"."))

This seems to work perfectly, except it doesn't work for this one. grt-65.498... returns the same data.?
It cleaned up the others perfectly, but this one.
 
Upvote 0
That one should work too though, you probably have a space behind it
 
Upvote 0
You probably have a ellipsis rather than 3 . so try
Excel Formula:
=TEXTJOIN(".",,TEXTSPLIT(A1,".",CHAR(133),1,,""))
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,892
Messages
6,175,236
Members
452,621
Latest member
Laura_PinksBTHFT

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top