How to Remove Specific Digits from Dot-Separated Numbers in Excel
Question details
The user needs to transform complex dot-separated values by removing specific digits or repeating zeros from each group within the string.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Cleaning and standardizing complex dot-separated serial numbers or codes by stripping out unwanted characters or redundant zeros.
- Observed behavior
- The user is unable to find a single formula to process the string because the exact removal pattern is inconsistent across different groups, requiring a defined logic rule.
Before applying formulas, analyze your dataset to define a clear, consistent rule for the digits you want to remove (such as stripping all consecutive zeros) to ensure the formula works correctly across all rows.
Use Nested SUBSTITUTE Formulas to Remove Repeated Zeros
Ideal for automatically reducing consecutive pairs of zeros to a single zero within your dot-separated values.
When dealing with long strings like '1X.51100.0036.04110.00000', standard removal techniques might fail if the pattern is inconsistent. If your primary goal is to strip out redundant zeros (e.g., reducing '00' to '0'), chaining the SUBSTITUTE function is a highly effective method.
Click on an empty cell adjacent to your dot-separated data, for example, cell B1.
Type the formula =SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1,"00","0"),"00","0"),"00","0") into the formula bar.
Press Enter to execute the formula, then click and drag the fill handle down to apply this logic to the rest of your data.

Split and Recombine Data for Group-Specific Rules
Best when each dot-separated group requires a completely different rule for digit removal.
Clean and Format Text Data Easily in WPS Spreadsheet
WPS Spreadsheet provides powerful text functions and data processing tools to help you seamlessly format complex dot-separated values, analyze data, and build custom formulas without any hassle.
- 1. Open your data file: Launch WPS Spreadsheet and open the workbook containing your dot-separated values.
- 2. Write the text manipulation formula: Select a blank cell next to your target data and input your nested SUBSTITUTE formula to target the specific digits.
- 3. Apply and format: Press Enter, then use the auto-fill handle to drag the formula down the column, instantly formatting your entire dataset.

Frequently Asked Questions
How can I remove all dots from the string entirely?
You can use a simple SUBSTITUTE function to replace the dots with an empty string. The formula is =SUBSTITUTE(A1, ".", ""). This will merge all the numbers into one continuous block.
Can I remove digits from only the last group in a dot-separated number?
Yes, you can use a combination of text functions like RIGHT, LEN, and FIND to isolate the last segment, apply your specific removal logic using REPLACE or SUBSTITUTE, and then recombine it with the first part of the string.
What if the characters I need to remove vary across different rows?
If the pattern is inconsistent, standard formulas may struggle to process the data automatically. It is recommended to either standardize the rules first, or use a combination of 'Text to Columns' and nested IF statements to handle varying conditions for each specific segment.




