Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 493
Default Formula calculating very slow

I have the following formula in 5000 cells in column P in my worksheet.
=IF($O2<"",NETWORKDAYS(O2,N2),"") Using a module, I'm importing the rows
that contain data in columns A:O. After the rows have been imported into the
worksheet I can see the above formula calculating. The problem is that it is
extremely show, approximately 2 seconds per row. Is there a way I can speed
this up? Thanks for your help.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default Formula calculating very slow

Alex,

Presumably the formula are already in column P and calculation is set to
automatic so calculation will begin as soon as a line of data are populated
so this 'may' help

Application.screenupdating=false

your code

Application.screenupdating=true

Mike

"Alex" wrote:

I have the following formula in 5000 cells in column P in my worksheet.
=IF($O2<"",NETWORKDAYS(O2,N2),"") Using a module, I'm importing the rows
that contain data in columns A:O. After the rows have been imported into the
worksheet I can see the above formula calculating. The problem is that it is
extremely show, approximately 2 seconds per row. Is there a way I can speed
this up? Thanks for your help.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 493
Default Formula calculating very slow

Thanks Mike. I already have screenupdating turned off/on. It still slow.

"Mike H" wrote:

Alex,

Presumably the formula are already in column P and calculation is set to
automatic so calculation will begin as soon as a line of data are populated
so this 'may' help

Application.screenupdating=false

your code

Application.screenupdating=true

Mike

"Alex" wrote:

I have the following formula in 5000 cells in column P in my worksheet.
=IF($O2<"",NETWORKDAYS(O2,N2),"") Using a module, I'm importing the rows
that contain data in columns A:O. After the rows have been imported into the
worksheet I can see the above formula calculating. The problem is that it is
extremely show, approximately 2 seconds per row. Is there a way I can speed
this up? Thanks for your help.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,440
Default Formula calculating very slow

Calculation set to Manual too?

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Alex" wrote in message ...
| Thanks Mike. I already have screenupdating turned off/on. It still slow.
|
| "Mike H" wrote:
|
| Alex,
|
| Presumably the formula are already in column P and calculation is set to
| automatic so calculation will begin as soon as a line of data are populated
| so this 'may' help
|
| Application.screenupdating=false
|
| your code
|
| Application.screenupdating=true
|
| Mike
|
| "Alex" wrote:
|
| I have the following formula in 5000 cells in column P in my worksheet.
| =IF($O2<"",NETWORKDAYS(O2,N2),"") Using a module, I'm importing the rows
| that contain data in columns A:O. After the rows have been imported into the
| worksheet I can see the above formula calculating. The problem is that it is
| extremely show, approximately 2 seconds per row. Is there a way I can speed
| this up? Thanks for your help.


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 493
Default Formula calculating very slow

No, it was set to automatic. I've got it working now. Thanks so much.

"Niek Otten" wrote:

Calculation set to Manual too?

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Alex" wrote in message ...
| Thanks Mike. I already have screenupdating turned off/on. It still slow.
|
| "Mike H" wrote:
|
| Alex,
|
| Presumably the formula are already in column P and calculation is set to
| automatic so calculation will begin as soon as a line of data are populated
| so this 'may' help
|
| Application.screenupdating=false
|
| your code
|
| Application.screenupdating=true
|
| Mike
|
| "Alex" wrote:
|
| I have the following formula in 5000 cells in column P in my worksheet.
| =IF($O2<"",NETWORKDAYS(O2,N2),"") Using a module, I'm importing the rows
| that contain data in columns A:O. After the rows have been imported into the
| worksheet I can see the above formula calculating. The problem is that it is
| extremely show, approximately 2 seconds per row. Is there a way I can speed
| this up? Thanks for your help.





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
worksheet calculating SLOW Jase Excel Discussion (Misc queries) 2 May 14th 08 01:20 AM
Very Slow Calculating Tufail Excel Discussion (Misc queries) 4 December 28th 07 11:04 PM
Slow Calculating and optimizing kurt Excel Programming 4 September 26th 07 08:16 PM
Calculating is very slow TonyL Excel Discussion (Misc queries) 3 February 13th 07 11:13 PM
Microsoft request for slow-calculating workbooks Charles Williams Excel Discussion (Misc queries) 0 March 1st 06 09:06 AM


All times are GMT +1. The time now is 03:09 AM.

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"