#SPILL error

Copper Contributor
So i am working on a dataset where
I am trying to match a set of dates if it falls in a certain date range interval, so whenever I apply a IF(D2>$C$2:$C$4,"pass","fail") formula in D2 (for example), the rest of the cell automatically in column D gets filled with a blue dotted border around D column with the formula, but here is the thing:
Situation 1: The result in D3 shows 'pass' which is wrong. When i click once on D3, in the formula bar, the same formula in D2 shows in grey colour, whereas since in ny formila D2 is not locked it should change. Secondly, when i double click on D3, it shows that the cell is blank.
Situation 2: So leaving all that, I went to D2 and dragged all the way down to manually fill the of column D with my formula then it shows #spill error, when i select obstructing cells and delete that, itgoes back to situation 1, all showing 'pass'

Well i tried various formulas, multiple ways it still does the same.
1 Reply

@Mahdia_Akter

Is the attached example what you are looking for? I entered the formula in E2 and it returns the expected results. I can't enter the formula in D2 because D2 is included in the formula/calculation.

 

=IF(D2>$C$2:$C$4,"pass","fail")