Forum Discussion

Atomic1890's avatar
Atomic1890
Copper Contributor
Feb 10, 2022
Solved

Excel Conditional Formatting Challenge

I'm a high school teacher and have a spreadsheet to collect data from students test results. The test occurs weekly and is out of 150. If the score is higher than the students previous score, the c...
  • HansVogelaar's avatar
    Feb 10, 2022

    Atomic1890 

    Select C4 to the end of the data. C4 should be the active cell in the selection.

    (We don't select column B since a score in column B does not have a predecessor)

     

    On the home tab of the ribbon. select Conditional Formatting > New Rule...

    Select 'Use a formula to determine which cell to format'.

    Enter the formula

    =AND(C4<>"",C4<>"a",C4>LOOKUP(1000,$B4:B4))

    Click Format...

    Activate the Fill tab.

    Select green.

    Click OK, then click OK again.

     

    Repeat the above steps, but with the formula

    =AND(C4<>"",C4<>"a",C4=LOOKUP(1000,$B4:B4))

    and yellow as color.

     

    Finally, repeat them again with

    =AND(C4<>"",C4<>"a",C4<LOOKUP(1000,$B4:B4))

    and red as color.

Resources