PC Review


Reply
Thread Tools Rate Thread

How to add continuous 5 or 10 rows by giving number of rows to ad

 
 
mygrps100
Guest
Posts: n/a
 
      24th Jun 2008
I have a data set where i want to add 5 cells in a column somewhere then
subsequent 10 cells (in same column) then say 8 cells and so forth. How can
this be done by just giving the number of contnuous cells to be added). Like
can i say add next 5 then next 10 etc
 
Reply With Quote
 
 
 
 
Bob Phillips
Guest
Posts: n/a
 
      24th Jun 2008
=SUM(A1:INDEX(A:A),B1)

put the number in B1

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"mygrps100" <(E-Mail Removed)> wrote in message
news:1AD42852-6F72-47C2-8609-(E-Mail Removed)...
>I have a data set where i want to add 5 cells in a column somewhere then
> subsequent 10 cells (in same column) then say 8 cells and so forth. How
> can
> this be done by just giving the number of contnuous cells to be added).
> Like
> can i say add next 5 then next 10 etc



 
Reply With Quote
 
nkc
Guest
Posts: n/a
 
      24th Jun 2008
U have to use Lookup and offset method to resolve this problem

"mygrps100" wrote:

> I have a data set where i want to add 5 cells in a column somewhere then
> subsequent 10 cells (in same column) then say 8 cells and so forth. How can
> this be done by just giving the number of contnuous cells to be added). Like
> can i say add next 5 then next 10 etc

 
Reply With Quote
 
vezerid
Guest
Posts: n/a
 
      24th Jun 2008
If I have understood you correctly then the following layout can solve
your problem:

Assume numbers are in A2:Ax. Say your summation interval lengths are
in K2:K9 (e.g. the numbers 5, 10, 8, etc). Start by putting a 0 above
these numbers, in this case in K1.

Now, next to the lengths, in L2, enter the following formula:

=SUM(OFFSET($A$2,SUM($K$1:K1),0,K2,))

Copy down as far as necessary.

HTH
Kostis Vezerides

On Jun 24, 3:14 pm, mygrps100 <mygrps...@discussions.microsoft.com>
wrote:
> I have a data set where i want to add 5 cells in a column somewhere then
> subsequent 10 cells (in same column) then say 8 cells and so forth. How can
> this be done by just giving the number of contnuous cells to be added). Like
> can i say add next 5 then next 10 etc


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Turning rows of equal number of columns into 1 continuous row chimerical Microsoft Excel Worksheet Functions 1 7th Dec 2006 09:45 PM
Get number of rows that data takes up, including blank rows =?Utf-8?B?RGVuaGFtIENvb3Rl?= Microsoft Excel Worksheet Functions 4 21st Aug 2006 09:18 AM
Get number of rows that data takes up, including blank rows =?Utf-8?B?RGVuaGFtIENvb3Rl?= Microsoft Excel Worksheet Functions 0 18th Aug 2006 12:25 PM
What determines the number of rows in a continuous form? =?Utf-8?B?bXNjZXJ0aWZpZWQ=?= Microsoft Access Forms 1 31st May 2006 07:01 PM
flexible paste rows function that inserts the right number of rows =?Utf-8?B?bWFyaWthMTk4MQ==?= Microsoft Excel Misc 1 18th Feb 2005 02:40 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:38 PM.