+ Reply to Thread
Results 1 to 4 of 4

Make a cell with text white, if another cell has a value of 0%

  1. #1
    Registered User
    Join Date
    05-28-2022
    Location
    USA
    MS-Off Ver
    2010
    Posts
    2

    Cool Make a cell with text white, if another cell has a value of 0%

    Hello, I'm new. I have an issue that i can't figure out. In Excel, I have an invoice statement for my business that is almost complete. I have a section for a discount (for occasional use of course). Whenever the cell with the percent % has nothing in it or is 0%, i would like the cell next to it that has the word "discount" in it to be white. In other words, in cell m41 i would leave blank or put 0% in it, the cell to the left of it, L41 would have discount disappear. Then of course, percentage 1-100% i would like the word discount to appear. What formula would i use? or can that even be done in excel. Thanks guys!

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,733

    Re: Make a cell with text white, if another cell has a value of 0%

    You can use this formula in cell L41:

    =IF(M41=0,"",Discount")

    An alternative would be to use conditional formatting on cell L41 (which would contain the word Discount), such that the font colour is set to white if M41 is blank or contains zero. You may also want to have M41 to have a white font if it contains 0%, otherwise you would see 0% in that cell even though L41 appears to be blank.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    05-28-2022
    Location
    USA
    MS-Off Ver
    2010
    Posts
    2
    Thanks man, the "IF" formula worked perfectly!! Have a wonderful day
    Last edited by AliGW; 05-29-2022 at 11:57 AM. Reason: PLEASE don't quote unnecessarily!

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: Make a cell with text white, if another cell has a value of 0%

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, if you have not already done so, you may not be aware that you can thank those who have helped you by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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. [SOLVED] change text to white on blank cell with formula
    By justinwb in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 01-09-2019, 03:27 AM
  2. [SOLVED] Conditional formatting to blank a cell (or make font white)
    By jehster1 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-08-2018, 12:54 AM
  3. [SOLVED] make text white depending on another cell
    By gjjh25 in forum Excel General
    Replies: 10
    Last Post: 12-20-2017, 04:58 PM
  4. Replies: 3
    Last Post: 07-07-2012, 02:34 AM
  5. [SOLVED] For all cells with font size bigger than 9, make that cell bold and color white
    By jasondu in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-18-2012, 02:18 PM
  6. Replies: 3
    Last Post: 11-17-2010, 04:28 AM
  7. Cell wrap text: Some cells have blank white space above text
    By stuckagain in forum Excel - New Users/Basics
    Replies: 10
    Last Post: 06-09-2009, 06:47 AM

Tags for this Thread

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