Removing extra spaces after decimal point

Macfifteen

New Member
Joined
May 20, 2015
Messages
9
I have an excel spreadsheet I imported. Most of the data came in fine, but some has an extra space after the decimal point. I tried TRIM but that didn't work. How can I remove these? Thanks for the help.

13323334353637373940
7689.088.588.187.687.286.886.385.985.485.0
7789. 989.489.088.588.187.787.286.886. 385.9
7890.990.490.089.589.188.788.287.887.386.9
7991.891.390.990.490.089.689.288.788.387.9
8092. 792.391.891.491.090. 690.189.789.288.8
8193.793.292.892.391.991.591.090.690.189.7
8294 694 293.793.392.992.592.091.691.190. 7
8395.695.194 794 393.993.593.092. 692. 191.7
8496.496.095.695.294 894.494 093. 593.192.7
8597.497.096.596.195.795.394 994 594.193.7
8698.397.997.597.196.796.395.995.495.094 6
8799. 398.99a 498.097.697.296.896.496.095.6
88100.399.999.499.098.698.297.897.396.996.5
89101.2100.8100.399.999.599.198.798.397.997.5
90102.1101.7101.3100.9100.5100.199.799.298.898.4

<!--StartFragment--> <colgroup><col width="65" style="width:65pt"> <col width="65" span="10" style="width:65pt"> </colgroup><tbody>
<!--EndFragment--></tbody>
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Will a Find / Replace not suffice?

Ctrl+H
Find ". " (without speech marks)
Replace with "." (without speech marks)
 
Upvote 0
Can you get away with just doing a mass Edit->Replace? It looks like all the spaces in your sample would be undesirable.

1) Select Range
2) Ctrl+H (or use menu options under the Home Tab -> "Find and Select" -> Replace)
3) Type a space in the "find what" box, nothing in the other one
4) Hit Replace all.
 
Upvote 0
Can you get away with just doing a mass Edit->Replace? It looks like all the spaces in your sample would be undesirable.

1) Select Range
2) Ctrl+H (or use menu options under the Home Tab -> "Find and Select" -> Replace)
3) Type a space in the "find what" box, nothing in the other one
4) Hit Replace all.
I dont know if it was a typo, but there is at least one value in the example grid which had a space but no decimal point. Your suggestion would turn "94 6" to "946". To be safe it would be better to replace ". " with "."
 
Upvote 0
To avoid the "94 6" error, you could find all the spaces and replace them with decimal points, then find all the double decimal points and replace them with single decimal points. The thing to watch out for then would be a space after a number after a decimal, as say if your original data was "9.46 " my method would turn it to "9.46.").
 
Upvote 0

Forum statistics

Threads
1,214,782
Messages
6,121,532
Members
449,037
Latest member
tmmotairi

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