Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default 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

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
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


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dav Dav is offline
external usenet poster
 
Posts: 1
Default 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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Match then lookup Tenacity Excel Worksheet Functions 9 December 3rd 05 05:30 AM
I Need a formula to evaluate a cell with + or - values Bob in Oklahoma Excel Worksheet Functions 6 October 31st 05 02:41 PM
Possible Lookup Table Karen Excel Worksheet Functions 5 June 8th 05 09:43 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 07:48 PM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM


All times are GMT +1. The time now is 08:45 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"