Forum Discussion

sanjurk's avatar
sanjurk
Copper Contributor
Dec 16, 2020
Solved

Conditional Formatting for different cell values each row

Hi,   I need to prepare a table where I will be entering the dates of employee leave. I need to prepare a sheet in such a way that whenever I enter the From and To date, it should colour the cells...
  • HansVogelaar's avatar
    Dec 16, 2020

    sanjurk 

    Select the range that you want to format (E3:NE8).

    I will assume that E3 is the active cell in the selection.

    On the Home tab of the ribbon, click Conditional Formatting > New Rule...

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

    Enter the formula

     

    =AND(E$2>=$C3,E$2<=$D3)

     

    Click Format...

    Activate the Fill tab.

    Select a highlight color.

    Click OK, then click OK again.

Resources