[Excel] Comparison of 4 cells

Solved
Mirage -  
michel_m Posted messages 18903 Registration date   Status Contributor Last intervention   -
Hello,

I’d like to implement a data verification system. I’m thinking of a kind of conditional formatting, except it’s not a cell compared to another but 2 linked cells compared to 2 other cells.

Let me explain:

In a tab "1" I have my source data, a kind of directory where I assign to each cell A1 a single value in B1.

In tab "2" these are the data entered which must be checked thanks to tab "1".

In tab 2:

- if the value in Ax corresponds to the value in Bx, the cell remains white
- if the value in Ay corresponds to the value in By, the cell remains white

- if the value in Ax corresponds to the value in By, the cell turns red
- if the value in Ay corresponds to the value in Bx, the cell turns red

I’d like to know if this kind of calculation is possible?

Thank you!

Configuration: Windows XP / Internet Explorer 6.0

15 answers

  1. nico1704 Posted messages 327 Status Member 35
     
    You need to put text in your cell. A formula cannot do conditional formatting.

    For example
    =IF(Ax=Bx,"",FALSE)
    Then go to Conditional Formatting and choose Highlight Cells Rules > Text that Contains... In the dialog box, type FALSE and pick the color you want. Thus, your cell will be the desired color

    Nico
    --
    The problem that one faces is the problem of many, so might as well give them the solution!
    0