+ Reply to Thread
Results 1 to 8 of 8

Delete digits within brackets

  1. #1
    Registered User
    Join Date
    05-13-2013
    Location
    bangalore, india
    MS-Off Ver
    Excel 2010
    Posts
    6

    Unhappy Delete digits within brackets

    Folks,

    Need your favor to figure a way so that I can remove content within a bracket(includes). I am a newbie and have no knowledge on VB or functions in depth.

    Eg. : Ironman shoots loki at the end of a cliff (100265)
    I Need - " Ironman shoots loki at the end of a cliff " in its place
    I have a 1000 fields across the sheet (includes blanks too) and I want to do the same for all at a single shot.

    I tried the solutions provided in an old thread But it dint work for me.

    Gives me 'Circular reference error' and when I click OK it gives me a 0-zero.

    =REPLACE(A1,FIND(" (",A1),255,"") : This formula works only on a empty field rather than the field I use. Also, this allows me to work on one feild at a time, rather i want to apply on all sheets.http://www.excelforum.com/images/icons/icon9.png

    Regards,

    Bharat

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Delete digits within brackets

    Hi and welcome to the forum

    If you will always be removing the last part of the text, use this...
    =LEFT(A1,SEARCH("(",A1,1)-2)

    If the (,,,) is in the middle somewhere, use this...
    =LEFT(A1,SEARCH("(",A1,1)-2)&" "&MID(A2,SEARCH(")",A2,1)+2,99)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    05-13-2013
    Location
    bangalore, india
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Delete digits within brackets

    I am still getting the same "Circular reference warning" and when i click OK the sentence become ZERO. I tried using the formula just beneath the sentence on a blank field and it works .

    I need to replace the existing sentence with the rectified sentence in the same exact place.

    Also, when i drag the formula field onto the other fields across the sheet, the sentences show "value" instead.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Delete digits within brackets

    i would suggest you upload a sample work book, (all sensitive data removed), showing what data you are working with, a few examples of what your expected outcome is, and how you arrived at that
    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.

  5. #5
    Registered User
    Join Date
    05-13-2013
    Location
    bangalore, india
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Delete digits within brackets

    Please find the attachment.

    Please find the attachment

    Tab 1: Actual problem
    Tab 2: Rectified Sheet

    How did i rectify ?

    I manually eliminated all the numbers in each field

    Requirements :-

    1. Remove brackets and data within
    2. Change First digit of the numbering (e.g.: 4.X.X to 3.X.X )
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    12-02-2012
    Location
    Delhi
    MS-Off Ver
    Excel 2003,2007
    Posts
    17

    Re: Delete digits within brackets

    Hi ambharat,
    i have seen your file.

    =IFERROR(LEFT(Current!A1,FIND("(",Current!A1,1)-1),"")

    just paste this formula in your file Sheet3 and drag it to the used range.

  7. #7
    Registered User
    Join Date
    05-13-2013
    Location
    bangalore, india
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Delete digits within brackets

    Yes it worked ..in the sample document. My original document is restricted access where i can only edit and save. Used your formula in a new sheet and it gives me a pop-up "update values current" and asks me to select a file. Also please design something i can attack column wise in the actual sheet.

    Pls look into my second requirement too.. changing numbering.Refer rectified tab.
    Last edited by ambharat; 05-14-2013 at 01:57 AM.

  8. #8
    Registered User
    Join Date
    05-13-2013
    Location
    bangalore, india
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Delete digits within brackets

    is there any solution for my problem ??

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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