+ Reply to Thread
Results 1 to 5 of 5

Removing+/- signs

  1. #1
    Valued Forum Contributor WasWodge's Avatar
    Join Date
    08-02-2010
    Location
    Hampshire,England
    MS-Off Ver
    Office 365 and Office 2010
    Posts
    882

    Removing+/- signs

    I am sure there is an obvious answer to this but I haven't stumbled across it yet.
    The problem is I have a spreadsheet that is a converted text file. Unfortunately the values in one of the columns end in either a + or - sign. Is there an easy way of removing the plus signs so I can do a sort on the column from highest to lowest or is there some way I can I format the column so it recognises +/- signs after the number?
    Last edited by WasWodge; 08-31-2010 at 06:41 PM.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Removing+/- signs

    Hi,

    Is there a space between the last digit and the sign. e.g. are they 123+ or 123 +

    Rgds
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Valued Forum Contributor WasWodge's Avatar
    Join Date
    08-02-2010
    Location
    Hampshire,England
    MS-Off Ver
    Office 365 and Office 2010
    Posts
    882

    Re: Removing+/- signs

    No I'm afraid there is no spacing after the number and the original text file is left justified so the +/- signs don't line up which means I can't get around it by putting them in a separate column before conversion.

  4. #4
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: Removing+/- signs

    Hi Paul,

    In another column, can you not use:

    =SUBSTITUTE(A1,"+","")

    This will remove any + sign in cell A1. You can fill that down as many rows as needed. If you need to convert the text to actual numbers, you could add

    =SUBSTITUTE(A1,"+","")+0

    To handle both + and -, you could try:

    =IF(RIGHT(A1,1)="-",-(LEFT(A1,LEN(A1)-1)+0),LEFT(A1,LEN(A1)-1)+0)

  5. #5
    Valued Forum Contributor WasWodge's Avatar
    Join Date
    08-02-2010
    Location
    Hampshire,England
    MS-Off Ver
    Office 365 and Office 2010
    Posts
    882

    Re: Removing+/- signs

    Cheers Paul that solves the current problem and probaly a few later ones as well
    Last edited by WasWodge; 08-31-2010 at 06:44 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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