Removing brackets and spaces from numbers from within a cell

jrortiz_2

New Member
Joined
Dec 28, 2016
Messages
23
I have a spreadsheet with different numbers containing brackets in the following format:
A1 117 (168)
A2 79 (90)

The spreadsheet contains loads of this number.
Is the a way to remove the bracket and extract the specific number that I want and shows the below only:
A1 168
A2 90

Thanks appreciate your help
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off

jrortiz_2

New Member
Joined
Dec 28, 2016
Messages
23
Thanks AliGW. Tried it but that doesn't give me the number I'm trying to get. Appreciate it though:)
 
Upvote 0

AliGW

Banned
Joined
Mar 9, 2014
Messages
3,628
That's because I thought that the A1 and A2 were part of the number rather than cell references. ;)

This on its own will work fine:

=MID(A1,FIND("(",A1),FIND(")",A1)-FIND("(",A1)+1)
 
Last edited:
Upvote 0

deciog

Board Regular
Joined
Mar 26, 2016
Messages
62
Office Version
  1. 365
My contribution

=0+SUBSTITUTE(MID(A1,FIND("(",A1)+1,5),")","")


Décio
 
Upvote 0

Rick Rothstein

MrExcel MVP
Joined
Apr 18, 2011
Messages
38,150
Office Version
  1. 2019
  2. 2010
Platform
  1. Windows
This should work...

As a TEXT Number: =REPLACE(LEFT(A1,LEN(A1)-1),1,FIND("(",A1),"")

As a REAL Number: =0+REPLACE(LEFT(A1,LEN(A1)-1),1,FIND("(",A1),"")
 
Upvote 0

Forum statistics

Threads
1,191,361
Messages
5,986,203
Members
440,010
Latest member
cdotshel

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
Top