Inserting a cell changes my formula values
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 |
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 |
Inserting a cell changes my formula values
The absolute references will make no difference. Excel keeps track of where cells are which is a good thing in most cases. If you realy need it to stay at b4 you will have to write =IF(A4=indirect("B4"),"SAME","DIFFERENT") But I would not recommend it Regards Dav -- Dav ------------------------------------------------------------------------ Dav's Profile: http://www.excelforum.com/member.php...o&userid=27107 View this thread: http://www.excelforum.com/showthread...hreadid=573136 |
All times are GMT +1. The time now is 07:59 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com