+ Reply to Thread
Results 1 to 5 of 5

Retrieve numbers between a pair of parenthesis

  1. #1
    Registered User
    Join Date
    09-17-2013
    Location
    Sault Ste Marie, ON
    MS-Off Ver
    Excel 2010
    Posts
    5

    Retrieve numbers between a pair of parenthesis

    Hi there,

    I need to retrieve numbers between a pair of parenthesis from cells in Excel. The data look like below.
    York Harbour (1005035) T 00000
    Twillingate (1008035) T 00000
    Raleigh (1009035) T 01000
    Nain (1011035) T 00000
    Lennox Island 1 (1103035) IRI 00000
    Eel Ground 2 (1309035) IRI 01000
    Baker-Brook (1313035) VL 00000

    I guess the only way is to identify the parenthesis and obtain the values.
    Is there a way to do it? Thanks!

    Daniel

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Retrieve numbers between a pair of parenthesis

    Try

    =REPLACE(REPLACE(A1,FIND(")",A1),LEN(A1),""),1,FIND("(",A1),"")+0

  3. #3
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Retrieve numbers between a pair of parenthesis

    Alternate:

    =--MID(SUBSTITUTE(A1,")",REPT(" ",99)),FIND("(",A1)+1,99)
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Registered User
    Join Date
    09-17-2013
    Location
    Sault Ste Marie, ON
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Retrieve numbers between a pair of parenthesis

    Many thanks!
    Both work.

  5. #5
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Retrieve numbers between a pair of parenthesis

    You're welcome.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 7
    Last Post: 03-03-2016, 11:38 AM
  2. Numbers in Parenthesis
    By Schokers in forum Excel General
    Replies: 1
    Last Post: 05-01-2010, 09:38 PM
  3. Replies: 2
    Last Post: 08-23-2008, 01:57 PM
  4. Negative numbers in parenthesis if not shown in drop down box
    By Pandorad in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-10-2005, 12:06 PM
  5. [SOLVED] Add parenthesis to numbers in cell
    By RVG in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-09-2005, 09:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1