+ Reply to Thread
Results 1 to 6 of 6

What if Formula

  1. #1
    Registered User
    Join Date
    01-18-2008
    Posts
    48

    What if Formula

    Hi, is there a what if formula that will make the numbers in a cell red if the number is negative? And if the number is positive it will be green?

  2. #2
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: What if Formula

    You can use conditional formatting to achieve this. I am not aware of a What IF, just and IF.
    1N73LL1G3NC3 15 7H3 4B1L17Y 70 4D4P7 70 CH4NG3 - 573PH3N H4WK1NG
    You don't have to add Rep if I have helped you out (but it would be nice), but please mark the thread as SOLVED if your issue is resolved.

    Tom

  3. #3
    Registered User
    Join Date
    01-18-2008
    Posts
    48

    Re: What if Formula

    Sorry, yeah I meant conditional formatting. What would the needed language be within conditional formatting to achieve this?

  4. #4
    Registered User
    Join Date
    07-14-2017
    Location
    Hà Nội
    MS-Off Ver
    2013
    Posts
    12

    Re: What if Formula

    Like this ?
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,057

    Re: What if Formula

    You can also use cell formatting to achieve this.. add this in custom formatting: [Green]+0;[Red]-0;0

  6. #6
    Registered User
    Join Date
    07-14-2017
    Location
    Hà Nội
    MS-Off Ver
    2013
    Posts
    12

    Re: What if Formula

    Quote Originally Posted by josephteh View Post
    You can also use cell formatting to achieve this.. add this in custom formatting: [Green]+0;[Red]-0;0
    Vote this solution

+ 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. Excel formula bar to display the result of the formula , not the formula?
    By max_max in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-18-2016, 07:15 PM
  2. Replies: 11
    Last Post: 06-06-2014, 03:34 PM
  3. how to hide formula in formula box, view lookup result in formula box?
    By vengatvj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-14-2013, 04: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