Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / August 2006

Tip: Looking for answers? Try searching our database.

Inserting a cell changes my formula values

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
shallina - 18 Aug 2006 16:49 GMT
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?

Signature

shallina

Elkar - 18 Aug 2006 17:29 GMT
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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.