+ Reply to Thread
Results 1 to 4 of 4

need to format negative sign before number

  1. #1
    Registered User
    Join Date
    06-25-2012
    Location
    Newark, New Jersey
    MS-Off Ver
    Excel 2007
    Posts
    42

    need to format negative sign before number

    I am taking out data from a different file which gives me "< 81" in one cell. Is there any way I can change it to "< -81" by custom formatting or an equation?

    Thank you for your help.
    Last edited by neelpatel; 09-27-2012 at 02:08 PM.

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: need to format negative sign before number

    If the result in the cell is just 81 (i.e. a number ) you can use cell format
    < -0

    Else Excel reads < 81 as text and you would need to:
    - Either do a Find+Replace (Find:"< " Replace:"< -")
    - or use a formula
    =SUBSTITUTE(A1,"< ","< -")

    Does this help?
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: need to format negative sign before number

    you need to treat it like text in this case becasue it is no longer a number when it has the sign next to it, this would prevent you from doing this by using formating, but you could use a formula, something like this

    =LEFT(A1,2)&"-"&RIGHT(A1,LEN(A1)-2)
    If you liked my solution, please click on the Star -- to add to my reputation

    If your issue as been resolved, please clearly state so and mark the thread as [SOLVED] using the thread tools just above the first post.

  4. #4
    Registered User
    Join Date
    06-25-2012
    Location
    Newark, New Jersey
    MS-Off Ver
    Excel 2007
    Posts
    42

    Re: need to format negative sign before number

    Thanks DGagnon and ACE_xl!!! Appreciate the help it worked!!

+ 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