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

Make ADDRESS function return ranges?

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


Joined: 17 Sep 2008
Posts: 19

PostPosted: Wed Aug 05, 2009 8:05 am    Post subject: Make ADDRESS function return ranges? Reply with quote

Is there a way to get the ADDRESS function to return a range instead of only a single cell? Thanks!

-Mike
Back to top
View user's profile Send private message
ken johnson
Super User
Super User


Joined: 23 Apr 2009
Posts: 2032
Location: Sydney, Australia

PostPosted: Wed Aug 05, 2009 1:10 pm    Post subject: Reply with quote

Use ADDRESS twice with &":"& between them...

=ADDRESS(1;2)&":"&ADDRESS(3;4) returns $B$1:$D$3

Ken Johnson
Back to top
View user's profile Send private message
SharkD
General User
General User


Joined: 17 Sep 2008
Posts: 19

PostPosted: Thu Aug 06, 2009 10:49 am    Post subject: Reply with quote

Thanks!
Back to top
View user's profile Send private message
Villeroy
Super User
Super User


Joined: 04 Oct 2004
Posts: 10106
Location: Germany

PostPosted: Thu Aug 06, 2009 12:28 pm    Post subject: Reply with quote

Address does not return a reference to a cell. It returns a string representing the address of a cell.
OFFSET(start_reference; row_off ; cols_off ; resize_rows ; resize_cols) returns any cell or range you can calculate from numbers.
INDEX(range; row ; col) does a similar trick for a single cell within the initial reference. From row=0 you get an entire column, from col=0 you get an entire row.
_________________
Rest in peace, oooforum.org
Get help on https://forum.openoffice.org
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