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

Struggling with named cells...

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Calc
View previous topic :: View next topic  
Author Message
DavidWilliams(Toronto)
Newbie
Newbie


Joined: 20 Mar 2007
Posts: 3

PostPosted: Tue Mar 20, 2007 12:44 pm    Post subject: Struggling with named cells... Reply with quote

I thought I'd try what seemed like a trivial experiment with named cells. What am I doing wrong?

I have 2 cells - A1 & A2, both contain 1

If I insert the formula =SUM(A1,A2)
I get the answer 2

Now, if I define a name for A1 (insert->names->define), say fred
and enter insert a formula:
=SUM(fred,A2)
I get #NAME?

in fact, even if I try =SUM(A1,A2) again, I still get #NAME?

If instead I use =fred+A2, again I get 2

What's going on here. Is this a bug or am I missing something?

Thanks in advance for any help!
Back to top
View user's profile Send private message
Sliderule
Super User
Super User


Joined: 29 May 2004
Posts: 2499
Location: 3rd Rock From The Sun

PostPosted: Tue Mar 20, 2007 1:03 pm    Post subject: Reply with quote

DavidWilliams(Toronto):

The SUM function, must use ; ( semicolon ) to separate each parameter ( not a comma as in certain other spreadsheet products ).

Therefore, try this:
Code:
=SUM(fred;A2)


Just for your information . . . you can see the Range Names available in your Calc file by using the Navigator. Press F5 and click on Range names to see the names you have defined.

I hope this helps, please be sure to let me / us know.

Sliderule
Back to top
View user's profile Send private message
DavidWilliams(Toronto)
Newbie
Newbie


Joined: 20 Mar 2007
Posts: 3

PostPosted: Tue Mar 20, 2007 4:02 pm    Post subject: Reply with quote

Thanks, I guess I missed that little detail!

So, having got over that hurdle, I immediately his another snag when I tried to use a named cell as part of a range, for example:

=SUM(fred:A2)

gives the same error #NAME?

If I can solve this one, I think I'll be able to convert everything from Excel...
Back to top
View user's profile Send private message
noranthon
Super User
Super User


Joined: 07 Jul 2005
Posts: 3318

PostPosted: Tue Mar 20, 2007 4:19 pm    Post subject: Reply with quote

You cannot do that. You have to use cell addresses to define a range. You can give a name to a range.
_________________
search forum by month
Back to top
View user's profile Send private message
DavidWilliams(Toronto)
Newbie
Newbie


Joined: 20 Mar 2007
Posts: 3

PostPosted: Tue Mar 20, 2007 4:46 pm    Post subject: Reply with quote

OK, thanks a lot for the quick responses.

This seems like a pretty disappointing limitation on using cell names...
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