Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35
Default calculation taking too long

Currently I have a sheet where I enter my data and then another sheet within
the same workbook that makes various calculations based on this data. But
every time I enter data, it takes a long time for my formulas to calculate,
upwards of a minute. I am pretty sure this is because my formulas contain
entire columns as ranges (i.e. A:A rather than A1:A100). However I need to
use A:A in my formulas as my data sheet is indefinitely long and I will
continue to add to this over the years. I don't want to have to go back and
change all my formulas to A1:A200 every time my data exceeds the range. Is
there anyway around this so that excel only calculates my formulas based on
cells that have an entry? Or any other way to make this faster?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,533
Default calculation taking too long

Hi

Assuming there are no empty cells in the range you can use this in a helper
cell ie B1:

="A1:A" & COUNT(A:A)

Then you can use a INDIRECT formula like this:

=SUM(INDIRECT(B1))

Hopes this helps.
....
Per

"yowzers" skrev i meddelelsen
...
Currently I have a sheet where I enter my data and then another sheet
within
the same workbook that makes various calculations based on this data. But
every time I enter data, it takes a long time for my formulas to
calculate,
upwards of a minute. I am pretty sure this is because my formulas contain
entire columns as ranges (i.e. A:A rather than A1:A100). However I need
to
use A:A in my formulas as my data sheet is indefinitely long and I will
continue to add to this over the years. I don't want to have to go back
and
change all my formulas to A1:A200 every time my data exceeds the range.
Is
there anyway around this so that excel only calculates my formulas based
on
cells that have an entry? Or any other way to make this faster?


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default calculation taking too long

I am pretty sure this is because my formulas
contain entire columns as ranges
(i.e. A:A rather than A1:A100).


Yeah, that'll add to calculation time if you're using lots of array formulas
(including SUMPRODUCT).

An array formula (including SUMPRODUCT) will evaluate *every* cell in the
referenced range whether it's within the used range or not.

Use dynamic ranges:

http://contextures.com/xlNames01.html#Dynamic

See this for excellent advise/tips on improving efficiency:

http://www.decisionmodels.com/

--
Biff
Microsoft Excel MVP


"yowzers" wrote in message
...
Currently I have a sheet where I enter my data and then another sheet
within
the same workbook that makes various calculations based on this data. But
every time I enter data, it takes a long time for my formulas to
calculate,
upwards of a minute. I am pretty sure this is because my formulas contain
entire columns as ranges (i.e. A:A rather than A1:A100). However I need
to
use A:A in my formulas as my data sheet is indefinitely long and I will
continue to add to this over the years. I don't want to have to go back
and
change all my formulas to A1:A200 every time my data exceeds the range.
Is
there anyway around this so that excel only calculates my formulas based
on
cells that have an entry? Or any other way to make this faster?



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,836
Default calculation taking too long

Slow Now; Speed UP:
Application.Calculation = xlCalculationManual
Application.ScreenUpdating = False
.... ... ...
Application.ScreenUpdating = True
Application.Calculation = xlCalculationAutomatic

Or, if you want to make a Macro fire specifically on one sheet in a workbook:
sheets("Sheet1").activate
Range("A1:Z100").Select
This will take you to the desired sheet for the range selected.

--
Ryan---
If this information was helpful, please indicate this by clicking ''Yes''.


"yowzers" wrote:

Currently I have a sheet where I enter my data and then another sheet within
the same workbook that makes various calculations based on this data. But
every time I enter data, it takes a long time for my formulas to calculate,
upwards of a minute. I am pretty sure this is because my formulas contain
entire columns as ranges (i.e. A:A rather than A1:A100). However I need to
use A:A in my formulas as my data sheet is indefinitely long and I will
continue to add to this over the years. I don't want to have to go back and
change all my formulas to A1:A200 every time my data exceeds the range. Is
there anyway around this so that excel only calculates my formulas based on
cells that have an entry? Or any other way to make this faster?

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default calculation taking too long

Just my 2 cents...

When calc time is already not acceptable the last thing you want to do is
use volatile functions.

You can create dynamic ranges in most cases without using volatile
functions.

="A1:A" & COUNT(A:A)
=SUM(INDIRECT(B1))


Rng refers to:
=A1:INDEX(A:A,COUNT(A:A))

=SUM(Rng)

--
Biff
Microsoft Excel MVP


"Per Jessen" wrote in message
...
Hi

Assuming there are no empty cells in the range you can use this in a
helper cell ie B1:

="A1:A" & COUNT(A:A)

Then you can use a INDIRECT formula like this:

=SUM(INDIRECT(B1))

Hopes this helps.
...
Per

"yowzers" skrev i meddelelsen
...
Currently I have a sheet where I enter my data and then another sheet
within
the same workbook that makes various calculations based on this data.
But
every time I enter data, it takes a long time for my formulas to
calculate,
upwards of a minute. I am pretty sure this is because my formulas
contain
entire columns as ranges (i.e. A:A rather than A1:A100). However I need
to
use A:A in my formulas as my data sheet is indefinitely long and I will
continue to add to this over the years. I don't want to have to go back
and
change all my formulas to A1:A200 every time my data exceeds the range.
Is
there anyway around this so that excel only calculates my formulas based
on
cells that have an entry? Or any other way to make this faster?






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35
Default calculation taking too long

Sorry I am a newbie. I have no idea what this means...

"ryguy7272" wrote:

Slow Now; Speed UP:
Application.Calculation = xlCalculationManual
Application.ScreenUpdating = False
... ... ...
Application.ScreenUpdating = True
Application.Calculation = xlCalculationAutomatic

Or, if you want to make a Macro fire specifically on one sheet in a workbook:
sheets("Sheet1").activate
Range("A1:Z100").Select
This will take you to the desired sheet for the range selected.

--
Ryan---
If this information was helpful, please indicate this by clicking ''Yes''.


"yowzers" wrote:

Currently I have a sheet where I enter my data and then another sheet within
the same workbook that makes various calculations based on this data. But
every time I enter data, it takes a long time for my formulas to calculate,
upwards of a minute. I am pretty sure this is because my formulas contain
entire columns as ranges (i.e. A:A rather than A1:A100). However I need to
use A:A in my formulas as my data sheet is indefinitely long and I will
continue to add to this over the years. I don't want to have to go back and
change all my formulas to A1:A200 every time my data exceeds the range. Is
there anyway around this so that excel only calculates my formulas based on
cells that have an entry? Or any other way to make this faster?

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35
Default calculation taking too long

Perfect, thanks!

"T. Valko" wrote:

I am pretty sure this is because my formulas
contain entire columns as ranges
(i.e. A:A rather than A1:A100).


Yeah, that'll add to calculation time if you're using lots of array formulas
(including SUMPRODUCT).

An array formula (including SUMPRODUCT) will evaluate *every* cell in the
referenced range whether it's within the used range or not.

Use dynamic ranges:

http://contextures.com/xlNames01.html#Dynamic

See this for excellent advise/tips on improving efficiency:

http://www.decisionmodels.com/

--
Biff
Microsoft Excel MVP


"yowzers" wrote in message
...
Currently I have a sheet where I enter my data and then another sheet
within
the same workbook that makes various calculations based on this data. But
every time I enter data, it takes a long time for my formulas to
calculate,
upwards of a minute. I am pretty sure this is because my formulas contain
entire columns as ranges (i.e. A:A rather than A1:A100). However I need
to
use A:A in my formulas as my data sheet is indefinitely long and I will
continue to add to this over the years. I don't want to have to go back
and
change all my formulas to A1:A200 every time my data exceeds the range.
Is
there anyway around this so that excel only calculates my formulas based
on
cells that have an entry? Or any other way to make this faster?



.

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default calculation taking too long

You're welcome!

--
Biff
Microsoft Excel MVP


"yowzers" wrote in message
...
Perfect, thanks!

"T. Valko" wrote:

I am pretty sure this is because my formulas
contain entire columns as ranges
(i.e. A:A rather than A1:A100).


Yeah, that'll add to calculation time if you're using lots of array
formulas
(including SUMPRODUCT).

An array formula (including SUMPRODUCT) will evaluate *every* cell in the
referenced range whether it's within the used range or not.

Use dynamic ranges:

http://contextures.com/xlNames01.html#Dynamic

See this for excellent advise/tips on improving efficiency:

http://www.decisionmodels.com/

--
Biff
Microsoft Excel MVP


"yowzers" wrote in message
...
Currently I have a sheet where I enter my data and then another sheet
within
the same workbook that makes various calculations based on this data.
But
every time I enter data, it takes a long time for my formulas to
calculate,
upwards of a minute. I am pretty sure this is because my formulas
contain
entire columns as ranges (i.e. A:A rather than A1:A100). However I
need
to
use A:A in my formulas as my data sheet is indefinitely long and I will
continue to add to this over the years. I don't want to have to go
back
and
change all my formulas to A1:A200 every time my data exceeds the range.
Is
there anyway around this so that excel only calculates my formulas
based
on
cells that have an entry? Or any other way to make this faster?



.



  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default calculation taking too long

Hi,

Your range in the formula should be A1:A100. To make the range auto
expanding, convert it to a List (or Table in Excel 2007) - Ctrl+L

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"yowzers" wrote in message
...
Currently I have a sheet where I enter my data and then another sheet
within
the same workbook that makes various calculations based on this data. But
every time I enter data, it takes a long time for my formulas to
calculate,
upwards of a minute. I am pretty sure this is because my formulas contain
entire columns as ranges (i.e. A:A rather than A1:A100). However I need
to
use A:A in my formulas as my data sheet is indefinitely long and I will
continue to add to this over the years. I don't want to have to go back
and
change all my formulas to A1:A200 every time my data exceeds the range.
Is
there anyway around this so that excel only calculates my formulas based
on
cells that have an entry? Or any other way to make this faster?


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
Processing taking a really long time SS Excel Discussion (Misc queries) 2 March 17th 09 02:19 PM
Subtotalling taking long time to complete AndyV Excel Worksheet Functions 4 July 14th 08 03:10 PM
taking a long list of duplicates... DFrank Excel Discussion (Misc queries) 4 June 27th 08 10:21 PM
Excel Taking Long TIme to Start Sanford Lefkowitz Excel Discussion (Misc queries) 2 June 1st 07 05:35 PM
External Links Taking too long Sean Excel Discussion (Misc queries) 1 November 27th 06 11:30 AM


All times are GMT +1. The time now is 06:50 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"