View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Elkar Elkar is offline
external usenet poster
 
Posts: 964
Default Inserting a cell changes my formula values

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


"shallina" wrote:


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?


--
shallina
------------------------------------------------------------------------
shallina's Profile: http://www.excelforum.com/member.php...o&userid=37723
View this thread: http://www.excelforum.com/showthread...hreadid=573136