Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default How to add continuous 5 or 10 rows by giving number of rows to ad

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
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default How to add continuous 5 or 10 rows by giving number of rows to ad

=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" wrote in message
...
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



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
nkc nkc is offline
external usenet poster
 
Posts: 1
Default How to add continuous 5 or 10 rows by giving number of rows to ad

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

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 751
Default How to add continuous 5 or 10 rows by giving number of rows to ad

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
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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Quickly moving rows of 5-column groups on 1 continuous line C.O. Excel Worksheet Functions 2 December 7th 06 09:59 PM
Turning rows of equal number of columns into 1 continuous row chimerical Excel Worksheet Functions 1 December 7th 06 09:45 PM
Get number of rows that data uses, including blank rows Denham Coote Excel Discussion (Misc queries) 5 August 22nd 06 02:10 PM
Get number of rows that data takes up, including blank rows Denham Coote Excel Worksheet Functions 2 August 21st 06 09:18 AM
flexible paste rows function that inserts the right number of rows marika1981 Excel Discussion (Misc queries) 1 February 18th 05 02:40 AM


All times are GMT +1. The time now is 08:35 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"