+ Reply to Thread
Results 1 to 5 of 5

Removing values in parentheses but only if value contains a dollar sign.

  1. #1
    Registered User
    Join Date
    08-20-2015
    Location
    Los Angeles, CA
    MS-Off Ver
    2013
    Posts
    8

    Question Removing values in parentheses but only if value contains a dollar sign.

    I have some cell values that look like this:

    Please Login or Register  to view this content.
    I'm trying to figure out how to do a find and replace to remove only the prices - including parentheses. So the new cells would look like this:

    Please Login or Register  to view this content.
    If I do a Find/Replace (*) it removes both the price, and the value the string that I do not wish to remove. Is there a way to do this but for numbers only OR if it contains a $ in the parentheses?

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Removing values in parentheses but only if value contains a dollar sign.

    Hi cgman,

    Instead of "(*)" for the search use "($*)" and replace with nothing.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,293

    Re: Removing values in parentheses but only if value contains a dollar sign.

    Try this formula
    Please Login or Register  to view this content.
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  4. #4
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Removing values in parentheses but only if value contains a dollar sign.

    If by chance there are entries that don't have a $ value in brackets, this will take care of it. If that isn't possible then popipipo's formula will do the trick just fine.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    A
    B
    1
    Something Something (RH) ($5.99) Something Something (RH)
    2
    Something Else ($7.99) Something Else
    3
    Something (with Pattern) ($234.99) Something (with Pattern)
    4
    Something (with Pattern) Something (with Pattern)
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  5. #5
    Registered User
    Join Date
    08-20-2015
    Location
    Los Angeles, CA
    MS-Off Ver
    2013
    Posts
    8

    Re: Removing values in parentheses but only if value contains a dollar sign.

    Quote Originally Posted by MarvinP View Post
    Hi cgman,

    Instead of "(*)" for the search use "($*)" and replace with nothing.
    This worked! Thank you! Not sure why I haven't tried something like this

    Everyone else, thanks for your replies - I haven't tested those solutions but I'm sure they work as well!

+ 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. Removing dollar sign from conditional formatting
    By ciapul12 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-25-2013, 11:53 AM
  2. Removing parentheses from text cell
    By Ronno in forum Excel General
    Replies: 4
    Last Post: 01-03-2013, 09:44 AM
  3. Showing withOUT a dollar sign
    By PressureDrop in forum Excel General
    Replies: 4
    Last Post: 11-12-2008, 10:30 AM
  4. [SOLVED] Dollar Sign
    By merleinkal in forum Excel General
    Replies: 1
    Last Post: 02-06-2006, 01:30 AM
  5. XL invoice replace the dollar sign with euro sign
    By Pamela casares in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 12-16-2005, 04:25 PM
  6. Dollar sign
    By Ralphael1 in forum Excel - New Users/Basics
    Replies: 6
    Last Post: 10-07-2005, 07:05 PM
  7. dollar sign
    By Jules in forum Excel General
    Replies: 3
    Last Post: 06-14-2005, 06:05 AM
  8. [SOLVED] Removing parentheses
    By Brett in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-09-2005, 01: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