Comments on: Two ways to change background color in Excel based on cell value

In this article, you will find two quick ways to change the background color of cells based on value in Excel 2016, 2013, and 2010. Also, you will learn how to use Excel formulas to change the color of blank cells or cells with formula errors. Continue reading

Comments page 5. Total comments: 426

  1. Thank you very much for the instruction, it was helpful.
    but i still have challenge of changing the background color of an empty cell. will like to get another way of doing that.

    Regards

  2. help full thank for sharing

  3. Hi,

    I am working on some Demand and Supply data, where you have the Demand value in ,say, cell C3 and Supply value in cell D3. I need to colour background both cells to the same colour for three possible scenarios,i.e. cell C3 is greater than cell D3 then both cells to have a background colour of amber. Also,if cell D3 is greater than cell C3 then both cells to come up red and finally, if both cells equal each other then both cells come up green.

    I would then need to format all other cells in the spreadsheet.i.e. cells C3 and D3 represent week 1, the next cells, E3 and F3 would represent week 2 and so on. Each line represents a different entity so would need to format the cells down as well as across.

    Sometimes the value of one of the cells can be zero and I need to ensure this also comes up with the same background colour as the cell it i sbeing measured against.

    I have tried the conditional formatting but all the cells kept coming up red !

    Many thanks for your help.

    Kind Regards
    Nick

  4. Thank you so much! This was extremely helpful!

  5. thank you for the information

  6. Helpfull

  7. Very helpful and detailed explanation. Really appreciate it

  8. I would like some help please with conditional formatting. We have an inventory sheet that indicates the items and number of items in the store. I have used the Less than function in the conditional formatting to define a change in background colour when and item numbers is reduced below a certain amount. This amount is variable for each item. We have encountered the problem that when new items are added to the inventory and then they are sorted alphabetically, then the conditional formatting stays at the cell position and is not linked to the items number, such that now the formatting applies to a different item with different limits. How can I resolve this? Is there a way to link the conditional formatting to a item rather than a cell? Many thanks in advance for your help

  9. How do you use the best conditional formatting that shows the differences between the amounts in each cell on a column?
    budget
    237000000
    300000000
    245000000
    250000000

    263700000
    258000000
    260000000
    250000000
    250000000
    250000000
    209000000
    200000000
    225000000
    215000000
    225000000
    225000000

  10. i need to create a formula for conditional formatting. if column D contains "N" then column L should be shaded blue.
    how can i do this?

    1. I need this exact same thing. I have a staffing spreadsheet. We are checking everyone's temperature for coronavirus. I have the number of hours someone works in column D and in column E there is an 'X' if they have been checked. I want the E cell to highlight RED if it has no value while the D cell is greater than 0. Anyone know how to do this? Thanks!

      1. Hello Hayes!
        If I understand your task correctly, to highlight a cell, use the conditional formatting formula

        =IF(AND($E1="",$D1>0),TRUE,FALSE)

        I hope this will help

  11. Hi,

    Can you help me please!
    All I need to do is change the colour (green) of a single cell on a spread sheet if the value of multiple cells in a row are greater than 0. when I try only the first cell in the row changes the single cell colour all the others have no effect.

    Kind regards

    T

  12. Hi,

    How can I condition format rentire row(s) based on the content of one cell/column? E.g. make the entire row green if value in one cell is less than a number?

    Thanks for your help.

  13. Hi,
    Is there a way to change a blank cell color to red, for example, based upon the value placed in another cell, then turn the red cell to clear once data is placed into the red cell?

  14. Hi there,

    So my situation is kind of similar, but different.

    I am trying to change the formatting (color) of a number of cells in an array (4 cells in a row) given a value that I am going to input in 1 of those cells. This input will be compared to an array of values already input. So depending on the value of the cell I am inputting, if it is lesser than my base I want it to be compared to, the row will be come green. Or stay white.

    This is the rule formula I was thinking about, but can't find better.

    =IF($C10+$D10=125, $AF$5 (cell to be compared to), IF($C10+$D10=150, $AG$5, IF($C10+$D10=225, $AF$6, IF($C10+$D10=250, $AG$6, IF($C10+$D10=275, $AH$6, FALSE)))))

    And, it does not work. It doesn't adapt dynamically.

    Any thoughts?

    Thank you.

    1. Hi there - I was wondering if you've found a solution to this issue, as I have recently run into it myself! Its quite frustrating. I'd love if you could share any progress you've made.

  15. its very helpful, thanks a lot !

  16. Hi and thanks for the blog post,

    Is that possible to modify the color of a cell regarding the content cell hexadecimal value (without coding) ?

    and also modify the cells on the right regarding the different shades of a color (such as https://www.crazy-colors.net/en/hex/1e90ff) ?

    thanks!

  17. Hi,
    Thank you ma'am. It is very helpful :)

    1. Ma'am,
      If I want to apply the colors based on the maximum and minimum values of each row independently for a huge number of rows in a go, what can I do?

  18. Hello,

    I need to create a rule where if one cell contains specific text ('Yes'), it highlights in one colour (yellow) and then if another 'Yes' is present in the cell next to it (same row), then the second 'Yes' cell will turn Orange and the red for a third 'Yes'.

    Is this possible?

    Or - (for example) if C1 contains 'Yes', then a A1 and B1 turns yellow, and if D1 also contains a 'Yes', the A1 and B1 turns orange and so on.

    Thank you in advance!!

  19. I would like to format one of the columns in my spreadsheet to highlight if there is a value present in another column. What I am trying to do is show whether materials are present or not and I would like to show an indicator in one of my first columns.

    Thank you!

    1. Hello, Desiree,

      you need to use conditional formatting based on another cell value. Please take a look at this article of ours. If you pay attention and follow the steps, you'll manage to solve your task :)

  20. thnx for all of these

  21. Hi,
    I want to change 15 cell colour if another cell is blank(no value).
    I tried by using condition format " format only cell contain", but it some time it working and some time not working.
    Please help me to fix issue.

  22. Hi Excel novice here.
    I need a cell to change colour if the total of a column is between 2 numbers. How would I go about doing that?

    1. Hi, Gavin,

      here are a few articles for you to check out in order to solve the problem:
      1) these basic formulas and functions will give you a great understanding of the logic of all the Excel operations and calculations - will help to set the right criteria (if the total is between two numbers)
      2) conditionally formatted rule will colour the cells depending on some criterion
      3) here are the ways of building formulas to sum the values

      I do hope that you'll take a look at this great and easy tutorials and will be able to solve your task :)

      1. thank you

  23. Hi Svetlana Cheusheva,
    Thank you so much,
    your article is really helpful.
    I have problem that,
    How to add "Ablebits" option?

  24. Greetings,

    I want to highlight a row in the following manner:

    1. Columns C, D, and E will have an X entered in them and they are for good, not good, partially good.

    2. When I put an X in the good column for that row, I would like the row from columns A through J to highlight Green, Not good = Red, partially good = yellow. If there is no X in either 3 of these columns then the row is blue. If all 3 have an X then it should also turn Red.

    Is there any possible way this could be done through excel?

    Thanks in advance.

  25. hi.. Please tell me if i have a huge data and there is some coloured cell so how can i copied or filtered only those cell which are coloured.

  26. How to change the color of States column (column A) automatically according to the color of conditional format applied in other column (Column B)?

  27. thanks i problem solved

  28. Hi use this site as I am just more than a novice with Excel but this helps me set what appear to be impossible tasks with ease, all explained in laymans terms.

    Many Thanks

    Malcolm

  29. Hi,

    I've a array of data (600 rows X 300 columns) want to compare 2 rows of data with conditional formatting and change color. The problem I facing is I can't able to write formula for each cell. If u know any special formula which can be used for entire array, kindly us know.

    For Eg, Compare A1 & A2 if A2 is less than A1, change color. Similar need to do for A3&A4, A5&A6, B1&B2, B3&B4, B5&B6, C1&C2, C3&C4, etc...

  30. Don't why below scenario did not post...seeking auto solution

    B3 is red if less than B2
    B3 is green if greater the B2
    B4 is red if less than B3
    B4 is green if grater than B3
    ect...

  31. Hi,

    yet, I don't example for :

    easy coloring backgroud of cells for chosen values in cells

    For example in the row I have values 0 - 100 - in 101 columns

    I chose values : e.g. 37, 56, 100 and I want these cells
    with chosen backgroud color. For example green.

    Thank you for help

  32. Hi,

    Is there a way to format the cells to change from one colour to another depending on a word added to the cell. I want to add "anyword" meaning any word added to the cell will change the colour of the cell.

    Thanks,

  33. Practical.

    thank you.

  34. If the Cell A1 is Colour than its - 1
    If the cell A1 is Blank than its - 2

  35. hi,
    Need Your help..
    I have problem of high light lowest value from diff.Columns in single row
    e.g. i want to do find lowest value from e6:h6 and then highlight with red colur & bold it.

  36. Is it possible to fill up text for the value of cell?? Means if the value of cell is 100, it format text as "Below average". Is it possible?

  37. Thank you very much.....................

  38. Hi Svetlana Cheusheva,

    How the color of the cell will be changed automatically to the same color of a cell already changed via conditional formatting?

  39. Great, Great,Great..
    Very useful article.
    i got much help from here.
    Thanks alot..

  40. I want to change the color of a cell on one tab and have it automatically change the color of a cell on a different tab. How can I do this? Both cells will have the same text, but be in a different place. I know how to copy data from one sheet to another. But I don't know how to copy the cell color too.

  41. Congratz. This is very helpful.

  42. Dear Svetlana cheusheva

    I need an formula for changing the background color in Excel sheet if the value changes then the color of background automatically change using excel formula .Kindly revert if any information required

  43. Dear Svetlana cheusheva

    I need an formula for changing the background color in Excel sheet if the value changes then the color of background automatically change using excel formula .Kindly revert if any any information required

  44. Hi SC,

    This article is really helpful.
    I just want to know
    Is it Possible to change the color of the text in this way?

    1. Hello Ali,

      Of course, it's possible. When setting the format, switch to the Font tab instead of the Fill tab, and select the font color you want.

  45. I want color in cell according to value as like tank level indication

  46. Thank you so much... It helped me a lot. I got a great applause from my team. thank you... :) :) :)

  47. Hi
    Could you please advise? How cell will be auto highlighted if we will do any amendment.
    i have raw data and values are there but in order to make a report i need to change some values. But after that report i want original data. So if there will be auto highlighted function then i can see the cell easily and put the original value back.
    Looking for your urgent reply.
    Thank you

    1. Why not keep a master copy of your document and then work only on a copy, so that changes to the copy don't make change to the master document?

  48. Hi Svetlana,

    Thanks for wondering excel formatting techniques. I would like to know about colour change in excel formatting, When a cell colour is already coloured by conditional formatting, when task changes, i want the colour of that cell to be changed. Could you please give some ideas to that.

    thks in advance

    rahul

  49. How to add 4rth condition as i want to make 4 conditions for a cell to change color

  50. Hey ,
    Can some one help to achieve this task :

    I need to change color of A1 cell based upon following criteria .

    if Cell A2 to A10 value is = Y
    then
    color of A1 cell will be Red
    Else
    color of A1 cell will be Green

Post a comment



Thank you for your comment!
When posting a question, please be very clear and concise. This will help us provide a quick and relevant solution to
your query. We cannot guarantee that we will answer every question, but we'll do our best :)