+ Reply to Thread
Results 1 to 4 of 4

How to extract data from brackets, [xx] and amend them?

  1. #1
    Registered User
    Join Date
    01-03-2014
    Location
    singapore,singapore
    MS-Off Ver
    Excel 2010
    Posts
    1

    How to extract data from brackets, [xx] and amend them?

    Hi there,

    I currently have a forumula that can extract info out from () but have no idea on how to amend it to extract it from [] or {}, can some kind soul kindly advise?

    In Cell A1 => A.F.P. PROVIDA SA - SPONS ADR (PVD US)

    In Cell A2, I key in the forumula below and I get PVD US, which is what I wanted.
    =MID($A1,FIND("(",$A1,FIND(A1,$A1))+1,FIND(")",$A1,FIND("(",$A1,FIND(A1,$A1))+1)-FIND("(",$A1,FIND(A1,$A1))-1)

    Question is, if the data is in
    A.F.P. PROVIDA SA - SPONS ADR [PVD US] or A.F.P. PROVIDA SA - SPONS ADR {PVD US} format, how can I amend the formula to get the same thing as above?

    Thanks !!
    Last edited by eldarchen; 01-03-2014 at 09:46 AM. Reason: solved

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: How to extract data from brackets, [xx] and amend them?

    is that bit {xxx} or (xxx) at the end?
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: How to extract data from brackets, [xx] and amend them?

    welcome to the forum. using your formula, just change all the round brackets to square ones:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    or maybe just:
    =MID(A1,FIND("[",A1)+1,FIND("]",A1)-FIND("[",A1)-1)

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: How to extract data from brackets, [xx] and amend them?

    thats not OR? thats instead of
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    or shorter
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by martindwilson; 01-03-2014 at 10:17 AM.

+ 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. [SOLVED] How to extract the last part of the column that appears in square brackets
    By yapema in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-15-2012, 07:32 AM
  2. How to extract the last part of the column that appears in square brackets
    By yapema in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-12-2012, 06:59 PM
  3. find and extract the numbers in between brackets
    By kwfine in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-13-2011, 04:20 PM
  4. How to extract a string within brackets repeatedly
    By wussupbuddy in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 12-11-2008, 10:38 AM
  5. Amend Upper Case macro to ignore brackets
    By Rick_Stanich in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-20-2008, 05:30 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