Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22
Default Formula's dealing with unknown number of rows

I have a numerous sets of data that varies from set to set in the amount of
rows each contains (one set will contain 2135 rows and one will have 3784
rows, etc.). Each set has 12 columns. I have some formulas set up that do
various calcutions on the data.

As things are now I am having to copy and drag the formula's down to match
the end of the data. I also have to enter a formula that calucates the sum
of one of the columns. This is very time-consuming.

Is there a function/formula/option that will fill in my formula all the way
to the end of the rows of data, no further? Is there a
function/formula/option that will then calculate a the sum of a column of
"x"-amount of rows?

Assume the sum of column E.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 99
Default Formula's dealing with unknown number of rows

Hi


"OfficeNDN" wrote in message
...
I have a numerous sets of data that varies from set to set in the amount

of
rows each contains (one set will contain 2135 rows and one will have 3784
rows, etc.). Each set has 12 columns. I have some formulas set up that

do
various calcutions on the data.

As things are now I am having to copy and drag the formula's down to match
the end of the data. I also have to enter a formula that calucates the

sum
of one of the columns. This is very time-consuming.

Is there a function/formula/option that will fill in my formula all the

way
to the end of the rows of data, no further?


In Excel, a formula can only display a result - it can't modify contents of
any cell, or change the worksheet in any other way. So no formula can fill
cells with formulas.

a) You can enter the formula into topmost cell of column, move cursor to
lower right corner of this cell so that cursor changes to cross, and then
double-click on this corner. The formula is copied down until there are any
entries (values or formulas) in previous/next column. When some cell in
neighbour columns is empty, copiyng is stopped of-course midway.
b) You can enter formulas into column for "future use". P.e. when in every
row with data must be some value in column A, you can use formulas like
=IF(A2="","",YourFormula). When you p.e. know, that there never will be more
than 5000 rows in table, you can prepare those 5000 rows with such formulas
before. But when there are many columns with formulas, and a lot of rows,
then the workbook may be slowed down considerably.



Is there a function/formula/option that will then calculate a the sum
of a column of "x"-amount of rows?



You can use dynamic ranges as formula parameters. P.e. when your table on
sheet YourTable has always some non-empty value in column A, and there is no
empty rows in your table, in 1st row are column headings, and you want to do
some calculations with column C (sum or count or ...), then define a named
range
YourDynamicRange = OFFSET(YourTable!$C$1,1,,COUNTA(YourTable!$A:$A)-1,1)
Now you can write a formula p.e. for sum of column C as
=SUM(YourDynamicRange)


Arvi Laanemets


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22
Default Formula's dealing with unknown number of rows

Thank you it worked great.

"Arvi Laanemets" wrote:

Hi


"OfficeNDN" wrote in message
...
I have a numerous sets of data that varies from set to set in the amount

of
rows each contains (one set will contain 2135 rows and one will have 3784
rows, etc.). Each set has 12 columns. I have some formulas set up that

do
various calcutions on the data.

As things are now I am having to copy and drag the formula's down to match
the end of the data. I also have to enter a formula that calucates the

sum
of one of the columns. This is very time-consuming.

Is there a function/formula/option that will fill in my formula all the

way
to the end of the rows of data, no further?


In Excel, a formula can only display a result - it can't modify contents of
any cell, or change the worksheet in any other way. So no formula can fill
cells with formulas.

a) You can enter the formula into topmost cell of column, move cursor to
lower right corner of this cell so that cursor changes to cross, and then
double-click on this corner. The formula is copied down until there are any
entries (values or formulas) in previous/next column. When some cell in
neighbour columns is empty, copiyng is stopped of-course midway.
b) You can enter formulas into column for "future use". P.e. when in every
row with data must be some value in column A, you can use formulas like
=IF(A2="","",YourFormula). When you p.e. know, that there never will be more
than 5000 rows in table, you can prepare those 5000 rows with such formulas
before. But when there are many columns with formulas, and a lot of rows,
then the workbook may be slowed down considerably.



Is there a function/formula/option that will then calculate a the sum
of a column of "x"-amount of rows?



You can use dynamic ranges as formula parameters. P.e. when your table on
sheet YourTable has always some non-empty value in column A, and there is no
empty rows in your table, in 1st row are column headings, and you want to do
some calculations with column C (sum or count or ...), then define a named
range
YourDynamicRange = OFFSET(YourTable!$C$1,1,,COUNTA(YourTable!$A:$A)-1,1)
Now you can write a formula p.e. for sum of column C as
=SUM(YourDynamicRange)


Arvi Laanemets



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
2 rows, highest No in row 1, then highest number in row 2 relating to that column, possible duplicates John Excel Worksheet Functions 3 August 11th 06 04:34 AM
NUMBER OF ROWS IN A DYNAMIC RANGE Larry Excel Worksheet Functions 0 July 14th 06 09:19 PM
Is de-duping in advanced filter limited to a number of rows Sully Excel Worksheet Functions 2 November 30th 05 02:23 PM
Insert a number of rows based on a value in a cell on active row iRocco Excel Discussion (Misc queries) 1 August 11th 05 06:18 AM
Arrays Take too long. VERY HARD QUESTION. my head hurts : / belly0fdesire Excel Worksheet Functions 1 August 6th 05 12:47 AM


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

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

About Us

"It's about Microsoft Excel"