I have a formula thus: =IF(A4=B4,"SAME","DIFFERENT").
However, when I insert a cell above B4, the formula automatically
changes, thus: =IF(A4=B5,"SAME","DIFFERENT")
How do I prevent this from happening?
Try using absolute references:
$A$4=$B$4
The $ symbol prevents the reference from incrementing when cells are
added/removed from the worksheet.
HTH,
Elkar
> I have a formula thus: =IF(A4=B4,"SAME","DIFFERENT").
>
> However, when I insert a cell above B4, the formula automatically
> changes, thus: =IF(A4=B5,"SAME","DIFFERENT")
>
> How do I prevent this from happening?
Dav - 18 Aug 2006 17:42 GMT
The absolute references will make no difference. Excel keeps track o
where cells are which is a good thing in most cases. If you realy nee
it to stay at b4 you will have to write
=IF(A4=indirect("B4"),"SAME","DIFFERENT")
But I would not recommend it
Regards
Da