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 / New Users / July 2006

Tip: Looking for answers? Try searching our database.

Variable cell ranges/autosumming?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Zerex71 - 14 Jul 2006 21:55 GMT
Group,

Another question I have is, is there a way to have variable ranges used
for functions such as autosumming?  For example, let's say the user
enters a 5 in a given cell, and the purpose of that 5 is to tell the
spreadsheet how many cells in a row or column to add up.  If the user
enters 10, then the autosum selects 10 cells and adds them up.  Is
there a way to do something like this, using user data to control a
function like this?

Mike
Ragdyer - 14 Jul 2006 23:14 GMT
Say you wanted to total Column A,
From A1 to the row number that you enter in B1.

=SUM(A1:INDEX(A:A,B1))

OR ...

You want to total Column A,
*Starting* at the row in B1,
And *ending* at the row in B2.

=SUM(INDEX(A:A,B1):INDEX(A:A,B2))

Signature

HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

> Group,
>
[quoted text clipped - 7 lines]
>
> Mike

Rate this thread:






 
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.