Remove spaces within a number and removing round brackets

EzzEldean

New Member
Joined
Nov 17, 2022
Messages
18
Office Version
  1. 2016
  2. 2013
  3. 2011
  4. 2010
  5. 2007
  6. 2003 or older
Platform
  1. Windows
Hello everyone, I hope everyone is doing well.

I need your help to find a formula to remove spaces within a number or a word, just to make Excel understand that it has to search for the space and then remove it and also to search for the brackets and remove them as well.

Example: cell A1 has " 220 200(818) " I want a formula to fix this and make it like this: "220,200,818" or like this: "220200818."
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Thank you for your reply. Is there any other formula other than this one in case the numbers or the letters differ, whether in counts or spaces?
 
Upvote 0
Another option
Fluff.xlsm
AB
1
2 220 200(818) 220,200,818
31234 abcd (23456)1234,abcd,23456
Sheet1
Cell Formulas
RangeFormula
B2:B3B2=SUBSTITUTE(TRIM(SUBSTITUTE(SUBSTITUTE(A2, "(", " "), ")", " ")), " ", ",")
 
Upvote 0

Forum statistics

Threads
1,215,030
Messages
6,122,762
Members
449,095
Latest member
m_smith_solihull

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