+ Reply to Thread
Results 1 to 22 of 22

Conditional formatting => removing -ve sign from text

  1. #1
    Registered User
    Join Date
    12-12-2012
    Location
    Sydney
    MS-Off Ver
    Excel
    Posts
    6

    Conditional formatting => removing -ve sign from text

    Hi

    I've created an IF function that returns a positive and negative value, when it's > eg 10,000 or <-10,000, the conditional format is supposed to display "TOO BIG".

    That works fine, however when the cell value is negative, it insists on putting a "-" sign in front of the "TOO BIG", so it actually displays "-TOO BIG".

    I can't figure out what to do get rid of it.

    Thx

    Stubborn_excel

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Conditional formatting => removing -ve sign from text

    Is it conditional formatting is returning the text "TOO BIG"?


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Conditional formatting => removing -ve sign from text

    Whats the cell formatted as?
    Whats the CF formula you are currently using?
    A sample workbook (NOT a screenshot!) showing the type of data, expected outcome, and where the problem currently occurs would probably get you quicker results..no confidential/personal/sensitive or private info in the sample please !
    A picture may be worth a thousand words, BUT, a sample Workbook is worth a thousand screenshots!
    -Add a File - click advanced (next to quick post), scroll to manage attachments, click, select add files, click select files, select file, click upload, when file shows up at bottom left, click done (bottom right), click submit
    -To mark thread Solved- go top of thread,click Thread Tools,click Mark as Solved
    If you received helpful response, please remember to hit the * of that post

  4. #4
    Registered User
    Join Date
    12-12-2012
    Location
    Sydney
    MS-Off Ver
    Excel
    Posts
    6

    Re: Conditional formatting => removing -ve sign from text

    Thx for helping out.

    Cell is formatted as a number.

    CF formula is....if not between eg +/- 9000, then "TOO BIG".

    Works fine except for insisting on the negative sign in front of "TOO BIG" for values <-9000.

  5. #5
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Conditional formatting => removing -ve sign from text

    What version of excel you are using I have never seen that the Conditional Formatting returning Text Character in Cells.

    Please correct me if I am wrong...

  6. #6
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Conditional formatting => removing -ve sign from text

    well...first thing I suggest is format as General..Excel canhadle numbers,text, dates quite well under general..when you need SPECIFIC formatting, then go to the other formats,
    Second...that does not give me a formula to see if there's an error in how its's written...that's why I asked for a sample workbook, then I can see if how the formula is written is creating the problem or not, and see WHY if it is...otherwise, I am just guessing, and probably guessing wrong...

  7. #7
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Conditional formatting => removing -ve sign from text

    @ Sixth
    True...me neither..

  8. #8
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Conditional formatting => removing -ve sign from text

    @ dredwolf,

    If OP says Yes, then today we will learn one New Method. Awaiting for the reply...

  9. #9
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Conditional formatting => removing -ve sign from text

    @ Sixthsense....ummm, is it too late to hide?....lol

  10. #10
    Registered User
    Join Date
    12-12-2012
    Location
    Sydney
    MS-Off Ver
    Excel
    Posts
    6

    Re: Conditional formatting => removing -ve sign from text

    Here is a simplified workbook example of the problem I'm experiencing.

    Thx again.
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    12-12-2012
    Location
    Sydney
    MS-Off Ver
    Excel
    Posts
    6

    Re: Conditional formatting => removing -ve sign from text

    Version: Excel 2010

  12. #12
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Conditional formatting => removing -ve sign from text

    Highlight both the cells and apply the following conditional formats:

    1) Cell Value is greater than 0
    2) Cell Value is less than 0

    Then format each condition accordingly

  13. #13
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Conditional formatting => removing -ve sign from text

    @ dredwolf,

    No lesson from this OP today as usual normal question.

  14. #14
    Registered User
    Join Date
    12-12-2012
    Location
    Sydney
    MS-Off Ver
    Excel
    Posts
    6

    Re: Conditional formatting => removing -ve sign from text

    So the only difference is that instead of doing a "cell value is not between -9,000 & +9,000" i now do two separate rules?

    I tried that and it hasn't worked.

  15. #15
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Conditional formatting => removing -ve sign from text

    Oops sorry.. Ignore my Post #12. Suggested wrongly due to oversight. I will get back to you.

  16. #16
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Conditional formatting => removing -ve sign from text

    the problem is, the cell SIGN won't change, so its either a negative or positive "Too Big", and I have no clue how to change it through CF...sorry

  17. #17
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Conditional formatting => removing -ve sign from text

    No need of conditional formatting. Just format the cell using the below expression in custom format that's enough.

    The below Custom Format will Show Numbers when the value is less than -9000 with negative values and <9000 for positive values otherwise it will result Too Big Message
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  18. #18
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Conditional formatting => removing -ve sign from text

    Okay...this as a formula for new rule...:
    =OR(C5<9000,C5>9000)
    This as the custom format :
    "TOO BIG";"TOO BIG"

    the string after the semi-colon applies to - values, so it works...hopefully...

  19. #19
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Conditional formatting => removing -ve sign from text

    @ Sixthsense, Well, I learned 3 new things on this one!

  20. #20
    Registered User
    Join Date
    12-12-2012
    Location
    Sydney
    MS-Off Ver
    Excel
    Posts
    6

    Re: Conditional formatting => removing -ve sign from text

    Thx Sixthsense. That works. Well played.

    Thx also dredwolf.

    Appreciate all your help.

    Sorry - I think I found the pink * to indicate your assistance. Not sure how to mark it solved though.

  21. #21
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Conditional formatting => removing -ve sign from text

    To mark thread "Solved", go to the top of the thread,click "Thread Tools",click "Mark as Solved"

    but check my solution as well...no cell format change, just the conditional, 1 rule.. as an option...

    Edit

    This also leaves your cells formatted as general, so no special handling required for accessing the info that is still underneath the CF...just a thought
    Last edited by dredwolf; 12-12-2012 at 06:39 AM.

  22. #22
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Conditional formatting => removing -ve sign from text

    @ stubborn_excel,

    Thanks for the rep and feedback

    @ dredwolf,

    Glad you learned 3 from this post

+ 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