Remove character from a cell

ashley1984

New Member
Joined
Mar 31, 2018
Messages
32
Office Version
  1. 365
Platform
  1. Windows
Hi all,

I have a large set of data where I need to clear out a full stop (period) "." from specific cells in the data range. Where there are no sales for a customer the data comes back with a "." in the cell against that customer and product.

1638024882105.png


The above screen-grab is an example of the data. This is just an example, the actual data set is much bigger. I have highlighted the cells in yellow where I need to remove the ".". I have tried several options:

1) Conditional formatting to highlight all cells with "." in yellow and the filter by colour and delete cells - this takes ages!
2) Power Query but I can work out how to replace the cells just with "." - I have tried the replace values option but it does not seem to work.
3) The best solution I have tried is the =SUBSTITUTE function - this appears to work, and actually removes the "." from the yellow cells, but it also removes the comma separating the numbers in the other cells - see screen shot below. I have left in the yellow highlited cells to show the "." has been removed.

1638025307830.png


Any other ideas on how to do this?

Thanks
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
If the period is the only thing in the cell, you can use Replace.
Ctrl H, in the Find What box put a period & check "Match entire cell content", Replace all.
 
Upvote 0
Solution
If the period is the only thing in the cell, you can use Replace.
Ctrl H, in the Find What box put a period & check "Match entire cell content", Replace all.
Amazing! Thank you. Such a simple solution. I did try this originally but did not select "Match entire cell content"
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,901
Messages
6,175,277
Members
452,629
Latest member
SahilPolekar

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