Excel: color a cell based on another cell's condition?

Solved
KAKEPATHEL -  
 Pascal -
Hello,
After searching thoroughly, I found some solutions, but it's not clear to me...
I have an Excel spreadsheet where I want to color a cell if another cell is different from the letter X or O. Conditional formatting doesn't seem to meet my needs at first glance. How can I do that? I'm not very skilled either when it comes to formulas.
Thanks in advanceConfiguration: Windows XP
Internet Explorer 6.0

7 answers

  1. Vaucluse Posted messages 27336 Registration date   Status Contributor Last intervention   6 453
     
    So let's explain ourselves:
    Conditional formatting:
    Select the cell field to be formatted
    (From B1 to B10) for example based on the values entered in column A
    So select B1:B10
    Taskbar / Format / Conditional formatting, the box appears
    If your conditions are X, Empty and O the letter
    Select in the displayed box: the formula is:
    type on the keyboard: =A1="X"
    select your format
    click on add
    Same with =A1="O"
    Add same with:
    =ISBLANK(A1)
    Gray format
    Click OK
    It should work, provided there are no formulas in your formatted cell, because the empty case does not work.

    In this case, all the cells corresponding to an empty in A will be grayed out, so:

    either, to make it simpler, you can also gray out all the cells in the base format and remove item 3 from my proposal,
    or, if you want a white original format, you use the solution with 3 conditions and you enter in column A a dummy value that is neither X, nor O, nor empty, so the cell will revert to the base format.
    Good luck
    Best regards
    --
    Science without conscience is but the ruin of the soul
    49
    1. Steve Vda
       
      Thank you,

      Well explained...
      0
    2. Pascal
       
      Thank you very much. I just figured out how to format a total column with a single formatting formula. I've been looking for over a year. Thank you very much.
      0