Results 1 to 24 of 24

Formula that removes chars in parenthesis regardless of length.

Threaded View

  1. #1
    Registered User
    Join Date
    07-18-2013
    Location
    Cincinnati
    MS-Off Ver
    2010
    Posts
    35

    Formula that removes chars in parenthesis regardless of length.

    =TRIM(IF(COUNTIF(A13,"*(*"),MID(A13,FIND(",",A13)+1,LEN(A13)-FIND(",",A13)-8) &" "&LEFT(A13,FIND(",",A13)-1) & " (NonEmp)", MID(A13&" "&A13, FIND(", ", A13)+1, LEN(A13)) ))
    i am using this formula to flip first and last name, remove the comma, and also remove (NonEmp) (hence the -8 bolded in the second FIND function.

    So if Jones, Jack R (NonEmp) were in A13, it would show like this Jack R Jones (NonEmp)
    or Jones, John would show simply as John Jones

    The problem is, I want to plan ahead and have it remove the Parenthesis and it's contents regardless of length. So if it is entered (Non Emp) it will still remove.

    I tried this to no avail... Bolded is what changed.

    =TRIM(IF(COUNTIF(A13,"*(*"),MID(A13,FIND(",",A13)+1,LEN(A13)-MID(A13,SEARCH("(",A13)+1,SEARCH(")",A13))) &" "&LEFT(A13,FIND(",",A13)-1) & " (NonEmp)", MID(A13&" "&A13, FIND(", ", A13)+1, LEN(A13)) ))
    any suggestions?
    Last edited by Jhail83; 08-14-2013 at 01:10 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 07-21-2013, 06:57 AM
  2. Series in parenthesis of formula
    By andersb in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-12-2011, 04:41 AM
  3. Macro Removes Formula
    By Althas in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-21-2008, 10:25 AM
  4. formula for parenthesis round negative money values in excel
    By jeff in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-14-2006, 02:45 AM
  5. Formula Split or parenthesis problem?
    By nastech in forum Excel General
    Replies: 0
    Last Post: 01-15-2006, 09:10 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