remove brackets from a cell

Pauls123

Board Regular
Joined
Mar 22, 2011
Messages
180
Hi,

As a result of copying and pasting etc, I have a bracketed number in a cell, eg, (10).

How can I make it just appear as 10.

Thanks, Paul
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Select the range, press Ctrl H,

find what:- (

replace with:- leave empty.

Repeat for )
 
Upvote 0
Are the brackets part of the cell contents or as a result of cell formatting? Brackets can sometimes appear around numbers to indicate negative values.

If it's the former, you can get rid of the brackets easily using the replace function. Excel might still see the numbers as text but you can fix this if you run the 'text to columns' wizard after selecting the column with the data in it, then immediately clicking 'finish'

If the latter, set the cell format to 'general' or something else suitable.
 
Upvote 0
Thanks Jason, but is there a formula I can use in another cell, purely to remove those brackets and just be left with the number, basically so I dont have to do anything additionally, Thanks, Paul
 
Upvote 0
and just to go a bit further here, if I have a word with (A) after it, eg, excel (A). Can I put a formula into another cell, in order to remove that (A), and just be left with the word, excel.

Thanks again, Paul
 
Upvote 0
Here's a formula for the first part of your question

=--SUBSTITUTE(SUBSTITUTE(A1,"(",""),")","")

Where A1 has (10) in it.

This should be okay for the second part

=TRIM(LEFT(A1,SEARCH("(",A1)-1))
 
Last edited:
Upvote 0
Actually, better use this for second part

=IF(ISERROR(SEARCH("(",A1)),A1,TRIM(LEFT(A1,SEARCH("(",A1)-1)))

Just in case there are no opening brackets in the cell
 
Upvote 0

Forum statistics

Threads
1,224,595
Messages
6,179,799
Members
452,943
Latest member
Newbie4296

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