OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

How to lock cell link in expression with $A$3 ?

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Calc
View previous topic :: View next topic  
Author Message
silencer
General User
General User


Joined: 30 Jan 2005
Posts: 6

PostPosted: Sun Jan 30, 2005 1:06 am    Post subject: How to lock cell link in expression with $A$3 ? Reply with quote

Can someone tell me how to lock cell in expression with $? In MS excel it was with F4.

thx in advance
Back to top
View user's profile Send private message
bobharvey
Super User
Super User


Joined: 23 Apr 2004
Posts: 1075
Location: Lincolnshire

PostPosted: Sun Jan 30, 2005 1:14 am    Post subject: Reply with quote

go to help and search for "relative addressing". It says shift-F4
Back to top
View user's profile Send private message
8daysaweek.co.uk
Super User
Super User


Joined: 29 Nov 2003
Posts: 2130
Location: UK

PostPosted: Sun Jan 30, 2005 1:54 am    Post subject: Reply with quote

Recently discussed: absolute references. [Search] is a great help Wink

BFN Smile,
_________________
James
www.8daysaweek.co.uk - A User-Focused OOo site
Back to top
View user's profile Send private message Visit poster's website AIM Address
silencer
General User
General User


Joined: 30 Jan 2005
Posts: 6

PostPosted: Sun Jan 30, 2005 2:40 am    Post subject: Reply with quote

thank you guys, im poor english speaker, so i didnt know, how to define my question in help here or in OOo suite. Smile
Back to top
View user's profile Send private message
BookLady
Super User
Super User


Joined: 03 Nov 2004
Posts: 727

PostPosted: Sun Jan 30, 2005 10:33 am    Post subject: Reply with quote

Don't worry about it Silencer by asking again you help all the rest of us who are new.

hey James or anyone more knowledgable about spreadsheets in general. When a line is deleted, the formula in the lines referring to it get messed up. Is there a way to make the formula recognize that the new line is now the one referenced on the formula? Using either absolute or relative gets an error.
Back to top
View user's profile Send private message
8daysaweek.co.uk
Super User
Super User


Joined: 29 Nov 2003
Posts: 2130
Location: UK

PostPosted: Sun Jan 30, 2005 10:48 am    Post subject: Reply with quote

Hi BookLady,

I don't think I really understand your question properly, perhaps you could give an example?

BFN Smile,
_________________
James
www.8daysaweek.co.uk - A User-Focused OOo site
Back to top
View user's profile Send private message Visit poster's website AIM Address
BookLady
Super User
Super User


Joined: 03 Nov 2004
Posts: 727

PostPosted: Mon Jan 31, 2005 11:55 am    Post subject: Reply with quote

Well, this is a general spreadsheet question really not just OOo been bugging me for years.

I use a spreadsheet for sales. Have formulas down the column to make a running total. If a customer decides not to take the second item it would be helpful to simply delete that row.

1 =if(C3=0;0;A2+E3)
2 =if(C4=0;0;A3+E4)
3 =if(C5=0;0;A4+E5)
4 =if(C6=0;0;A5+E6)
5 =if(C7=0;0;A6+E7)

deleting line two results in:

1 =if(C#REF!=0;0;A1+E#REF!)
the new line two becomes:
2 =IF(C4=0;0;A#REF!+E4)
3 using relative reference subsequent lines are ok
4 using absolute reference all references to the deleted line are errors

Is there any way to make the formulas recognize the new line 2?
Deleting the contents resets the formulas but looses the continuity of the column.
Back to top
View user's profile Send private message
r_vinoya
Super User
Super User


Joined: 03 Dec 2003
Posts: 619
Location: Somewhere in the Philippines

PostPosted: Mon Jan 31, 2005 5:23 pm    Post subject: Reply with quote

BookLady wrote:
Well, this is a general spreadsheet question really not just OOo been bugging me for years.

I use a spreadsheet for sales. Have formulas down the column to make a running total. If a customer decides not to take the second item it would be helpful to simply delete that row.

1 =if(C3=0;0;A2+E3)
2 =if(C4=0;0;A3+E4)
3 =if(C5=0;0;A4+E5)
4 =if(C6=0;0;A5+E6)
5 =if(C7=0;0;A6+E7)

deleting line two results in:

1 =if(C#REF!=0;0;A1+E#REF!)
the new line two becomes:
2 =IF(C4=0;0;A#REF!+E4)
3 using relative reference subsequent lines are ok
4 using absolute reference all references to the deleted line are errors

Is there any way to make the formulas recognize the new line 2?
Deleting the contents resets the formulas but looses the continuity of the column.


I have this problem since the excel days.
_________________
# : - )
Back to top
View user's profile Send private message
David
Super User
Super User


Joined: 24 Oct 2003
Posts: 5668
Location: Canada

PostPosted: Mon Jan 31, 2005 8:36 pm    Post subject: Reply with quote

BookLady wrote:
Well, this is a general spreadsheet question really not just OOo been bugging me for years.

I use a spreadsheet for sales. Have formulas down the column to make a running total. If a customer decides not to take the second item it would be helpful to simply delete that row.

1 =if(C3=0;0;A2+E3)
2 =if(C4=0;0;A3+E4)
3 =if(C5=0;0;A4+E5)
4 =if(C6=0;0;A5+E6)
5 =if(C7=0;0;A6+E7)

deleting line two results in:

1 =if(C#REF!=0;0;A1+E#REF!)
the new line two becomes:
2 =IF(C4=0;0;A#REF!+E4)
3 using relative reference subsequent lines are ok
4 using absolute reference all references to the deleted line are errors

Is there any way to make the formulas recognize the new line 2?
Deleting the contents resets the formulas but looses the continuity of the column.


Like 8days, I'd request a full example please. That is, not just a numbered list, but your full spreadsheet involving his part to see not a list of formulas, but where they arel ocated, and vlaues in each of the reference cells. Otherwise I'm guessing. [Some might complain that's what I always do.] Sad

Thanks.

David.
Back to top
View user's profile Send private message
r_vinoya
Super User
Super User


Joined: 03 Dec 2003
Posts: 619
Location: Somewhere in the Philippines

PostPosted: Mon Jan 31, 2005 10:58 pm    Post subject: Reply with quote

David wrote:
Like 8days, I'd request a full example please. That is, not just a numbered list, but your full spreadsheet involving his part to see not a list of formulas, but where they arel ocated, and vlaues in each of the reference cells. Otherwise I'm guessing. [Some might complain that's what I always do.] Sad


Take this simple example:

on A10 type =B9
drag A10 up to A15
delete ROW12
You'll get REF! error on ROW12.

I think booklady wants new ROW12 becomes =B11... instead it becomes =B$REF!
Shocked
_________________
# : - )
Back to top
View user's profile Send private message
David
Super User
Super User


Joined: 24 Oct 2003
Posts: 5668
Location: Canada

PostPosted: Tue Feb 01, 2005 6:30 am    Post subject: Reply with quote

r_vinoya wrote:
Take this simple example:

on A10 type =B9
drag A10 up to A15
delete ROW12
You'll get REF! error on ROW12.

I think booklady wants new ROW12 becomes =B11... instead it becomes =B$REF!
Shocked


Thanks!

In your example:
First take values [any initial values will do for setting up] in B9:B14 and move them, before deleting the row, to say D1 and down, or to any remote position, so that they do not overlap rows used for the formulas, and no apparent problem; references will change automatically to suit. OR, set it up that way to begin with. Now, in B9 put =D1, in B10 put = D2 [or drag down to copy] etc. Then the sheet will appear as needed for printout I think. Now delete a row without problem, or am I still missing the proper reference? [still on medication here, so not thinking straight ...just enjoying the exchange if you don't mind.]

I've often found, no matter the spreadsheet, that there is as much or more need to "work around" rather than have direct application to need. It's the nature of the beast.

David.
Back to top
View user's profile Send private message
BookLady
Super User
Super User


Joined: 03 Nov 2004
Posts: 727

PostPosted: Tue Feb 01, 2005 2:54 pm    Post subject: Reply with quote

Klutzy workaround David and not convenient when you have a customer standing there breathing at you. But perhaps there is something that might be done with a macro.

rvinoya has the right idea. This is a peculiarity clear back to Lotus days.

Unfortunately I don't know how to make screen shots with OOo or how to post them here. But all you really need to do is enter the first line of fomula and copy it down several lines. No need to enter data. Then just delete one line and you will see the error references.

This also occurs if there is a formula to total a column in a cell at the head of the column and then the bottom rows of that column are deleted. The column total formula still looks for the deleted lines.

Hmmm just tried doing a "move cells up" but that also screws up formula. Oh well this has been an irritation for a long time. But one of these days....
Back to top
View user's profile Send private message
David
Super User
Super User


Joined: 24 Oct 2003
Posts: 5668
Location: Canada

PostPosted: Tue Feb 01, 2005 3:39 pm    Post subject: Reply with quote

BookLady wrote:
Klutzy workaround David and not convenient when you have a customer standing there breathing at you. But perhaps there is something that might be done with a macro.


No problem. Go for it.

David.
Back to top
View user's profile Send private message
8daysaweek.co.uk
Super User
Super User


Joined: 29 Nov 2003
Posts: 2130
Location: UK

PostPosted: Wed Feb 02, 2005 6:40 am    Post subject: Reply with quote

Booklady,

Sorry for the delay Smile

Any solution would really depend on a full example, what you are really calculating.

I think that any formula which specifically references a cell that is deleted will show an error. This is a protection in some ways.

However, I have uploaded a spreadsheet which gives a possible solution for certain type of spreadsheet calculations:
http://www.8daysaweek.co.uk/forums/viewtopic.php?p=114#114

The solution really is to try to concentrate on calculating the values, rather than basing the formula on the result of a previous formula.

HTH Smile,
_________________
James
www.8daysaweek.co.uk - A User-Focused OOo site
Back to top
View user's profile Send private message Visit poster's website AIM Address
BookLady
Super User
Super User


Joined: 03 Nov 2004
Posts: 727

PostPosted: Wed Feb 02, 2005 10:25 am    Post subject: Reply with quote

Thanks James . This is getting way beyond the orginal intent of this thread. And your upload will take some studying. So it will take a while for me to figure that one out.

If there was an easy answer it would have been touted about long ago.

Thanks David. If a macro can not be made from the built in key copier it is beyond me.Rolling Eyes Maybe if I hang around looking wistfully Confused someone will get curious and work on it .
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Calc All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group