logo
search
Function Problems

How to Remove Specific Digits from Dot-Separated Numbers in Excel

Steve KSteve K Oct 1, 2026 869 views

Question details

The user needs to transform complex dot-separated values by removing specific digits or repeating zeros from each group within the string.

How to Remove Specific Digits from Dot-Separated Numbers in Excel
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 you start

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.

Solution 1Recommended

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.

1
Select a target cell

Click on an empty cell adjacent to your dot-separated data, for example, cell B1.

2
Enter the nested formula

Type the formula =SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1,"00","0"),"00","0"),"00","0") into the formula bar.

3
Apply to the dataset

Press Enter to execute the formula, then click and drag the fill handle down to apply this logic to the rest of your data.

Use Nested SUBSTITUTE Formulas to Remove Repeated Zeros
Adjusting the Formula: Because the exact removal pattern may vary, test this formula on a small sample first. You can change the "00" and "0" parameters to target entirely different digits or characters if your rules change.
Efficient Data Cleaning

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. 1. Open your data file: Launch WPS Spreadsheet and open the workbook containing your dot-separated values.
  2. 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. 3. Apply and format: Press Enter, then use the auto-fill handle to drag the formula down the column, instantly formatting your entire dataset.
100% compatible with Microsoft Excel formulas, including nested SUBSTITUTE and TEXTJOIN.Lightweight software ensures smooth and fast processing of massive text datasets.Intuitive UI makes advanced data cleaning and formatting faster and more accessible.
microsoft office alternative - wps office

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.