+ Reply to Thread
Results 1 to 11 of 11

Removing a plus sign?

  1. #1
    Registered User
    Join Date
    09-23-2010
    Location
    The World
    MS-Off Ver
    Excel 2003
    Posts
    5

    Removing a plus sign?

    All,

    I'm pretty average with Excel, so there may be a not too diffictul solution to this issue, but I have turned to a dedicated forum as I simply can't find it...

    I have data I've imported into excel. One column was basically numbers, with 5 additional characters at the end of each value. I used the LEFT command to strip those out (yay me and the help file!)

    What I'm left with is the numbers. BUT, there is an issue. Every number is preceded either with a - or a + (depending, obviously, on whether the number was negative or positive).

    I'd like to just be able to do normal calcuations etc with the numbers, but the + signs are causing obvious grief. I've tried changing the cells to number, to text, to general etc. I also figured I could just do a search and replace, search for a + and replace with nothing, and then convert all the cells to numbers. But that doesn't work. According to the Find item there are no +s in my spreadsheet.

    I assume because the + symbol has significance excel tries to treat it differently and that is causing my issue? Is there a way around this?

    Oh, and I'm using Excel 2007...

    Any help would be greatly appreciated!

    Cheers.

  2. #2
    Forum Contributor BlastRanger's Avatar
    Join Date
    09-02-2010
    Location
    Indonesia
    MS-Off Ver
    2003, 2007, 2010
    Posts
    238

    Re: Removing a plus sign?

    I wonder why you get the + sign.
    In excel if a + sign occur in all the cell, that mean those cell is in formula mode which is the same as = sign.

    Would be better let us see your excel file that contain those + sign

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Removing a plus sign?

    Are the numbers actually formatted as Text?

    Try

    =RIGHT(A1,LEN(A1)-1)*1
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  4. #4
    Registered User
    Join Date
    09-23-2010
    Location
    The World
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Removing a plus sign?

    OK, I think I have worked out part of the problem. And you are right blastranger, I should have shown the data so you could understand it better...

    I'll give you an example of a couple of original data fields:

    +127,394 RPSE
    -2,000 RPSE

    I used =LEFT(Ax, LEN(Ax)-5) to get the number without the ' RPSE' on the end. But i've just realised that only works because of the comma. If i take the comma out it complains about the PLUS sign (similar to your comment blastranger).

    What I'm left with in the next column, of course, is:

    +127,394
    -2,000

    Is there anything I can do from here? I obviously can't just take out the commas given it brings up an error. I need to strip out those + symbols or i'll never be able to add, subtract etc (and i have over 7000 rows of data, so doing by hand just isn't really viable).

    Any thoughts?
    Last edited by remnant; 09-23-2010 at 08:49 PM.

  5. #5
    Forum Contributor BlastRanger's Avatar
    Join Date
    09-02-2010
    Location
    Indonesia
    MS-Off Ver
    2003, 2007, 2010
    Posts
    238

    Re: Removing a plus sign?

    use MID instead of LEFT (IF the + or - sign has no meaning for you) :
    =MID(Ax,2,LEN(Ax)-6)

    combine with VALUE to make the + or - sign has meaning and format it as number (positive or negative) :
    =VALUE(LEFT(Ax,LEN(Ax)-5))
    Last edited by BlastRanger; 09-24-2010 at 12:09 AM.

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Removing a plus sign?

    If the space is always there following the number, then
    Please Login or Register  to view this content.
    Entia non sunt multiplicanda sine necessitate

  7. #7
    Registered User
    Join Date
    09-23-2010
    Location
    The World
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Removing a plus sign?

    Quote Originally Posted by blastranger View Post
    combine with VALUE to make the + or - sign has meaning and format it as number (positive or negative) :
    =VALUE(LEFT(Ax,LEN(Ax)-5))
    The + /- DOES have meaning to me, so i tried this second one.

    I just get a #VALUE! error.

    In case i'm not clear, taking my example above, I start with this

    +127,363 RPSE
    -2,000 RPSE
    for 2 cells.

    What i want the result to be is:

    127363
    -2000
    with the cells formatted as number cells.

    That way if i add the 2 cells i would get a total of 125363. In other words, I want to be able to do normal equations with positive and negative numbers on that column, which I can't while it is in the format at the top...

    Can I do it by doing an IF looking for a +, with a RIGHT command removing that first character when it finds a +?

  8. #8
    Forum Contributor BlastRanger's Avatar
    Join Date
    09-02-2010
    Location
    Indonesia
    MS-Off Ver
    2003, 2007, 2010
    Posts
    238

    Re: Removing a plus sign?

    Hi
    you got value error because you just copy paste the formula and not change the required cell.
    in this case for example :
    +127,363 RPSE is in A1
    -2,000 RPSE is in A2

    The formula you type in B1 is :
    =VALUE(LEFT(A1,LEN(A1)-5))
    copy down

    now you should be able to perform a normal equation

  9. #9
    Registered User
    Join Date
    09-23-2010
    Location
    The World
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Removing a plus sign?

    No. I understand about the cell thing. And I'm getting a value error. Let me give an example:

    I cell E2 i have -1,000 RPSE

    In cell G2 (column F has other stuff), I put in the following:

    =VALUE(LEFT(E2,LEN(E2)-5)) (i copied this in so it's exactly as it is in the cell)

    What i get is #VALUE!

    Here's the bit i don't understand...

    It WORKS for the positive numbers. It doesn't work for the negative numbers? So th positives are ok, but what about the negatives?
    Last edited by remnant; 09-29-2010 at 08:26 PM.

  10. #10
    Forum Contributor Charlie_Howell's Avatar
    Join Date
    09-27-2010
    Location
    Memphis, TN
    MS-Off Ver
    Excel 2007
    Posts
    218

    Re: Removing a plus sign?

    =SUBSTITUTE(a1,"+","")

  11. #11
    Registered User
    Join Date
    09-23-2010
    Location
    The World
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Removing a plus sign?

    Oh WOW! I worked it out... Damn! The - sign isn't a - sign at all. it's a different character that just LOOKS like a minus sign..

    *sigh*

    at least i can substitute it.

    Wow. How completely crazy.

    –1,000 RPSE <- what i get
    -1,000 RPSE <- what it would look like with a minus sign.

    Damn that is dumb. Well, thanks all for the input, i think i can solve it now!
    Last edited by remnant; 09-29-2010 at 10:01 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