Inserting a cell changes my formula values

  • Thread starter Thread starter shallina
  • Start date Start date
S

shallina

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
 
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
 
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
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top