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

Set SUM range based on a cell content...

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


Joined: 07 Sep 2005
Posts: 8

PostPosted: Mon Dec 05, 2005 4:37 am    Post subject: Set SUM range based on a cell content... Reply with quote

Hello guys,

I simple question for you, I hope, but a subtle issue for me, newbie of Calc.

What I want to do is get the SUM of a range of cells, but with the last cell not fixed,
but determined from the content of another cell, I mean, instead of

SUM(A1:A20)

I would like to put 20 or A20 in another cell and use it to determined the range.

The problem arises because I have a doc with multiple sheets where formulas
are the same, but data vary in size, so when I import data in a new sheet I simply
change the content of one cell, instead of changing all formulas.

Many thanks,

Matteo.
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: Mon Dec 05, 2005 5:45 am    Post subject: Reply with quote

Hi Matteo,

Assuming the row number is in cell B21:
=SUM(INDIRECT("A1:A" & B21))

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
pampo
General User
General User


Joined: 07 Sep 2005
Posts: 8

PostPosted: Mon Dec 05, 2005 6:18 am    Post subject: Reply with quote

Many many thanks, James!
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