Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 258
Default Quicker calculations -- storing huge equations or cutting and past

Good afternoon --

I built a workbook used to calculate medical fees and productivity. It's
based on several reference lookups, and lots of internal calculations. For
each item, there are three calculations, each of which consists of a formula
60-70 keystrokes long. When the user does this work, (s)he may do it for
100-200 items at a time. Right now, it can take 1-2 minutes to calculate the
entire workbook so I leave calculation set to manual.

My question -- I can either have all the equations located inside the cells,
or create a little VB code to copy and paste them into cells on rows where
they'll be used. That is, if cell A15 has the "part number" to be looked up,
it would paste the lookup and calculation formulas into the appropriate cells
on that row, and then do summary calculations when all done.

Does anyone know which would be faster?

Thanks in advance,
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Quicker calculations -- storing huge equations or cutting and past

Hard to say without knowing what kind of formulas you're using.

See this for tips on improving efficiency:

http://www.decisionmodels.com/

--
Biff
Microsoft Excel MVP


"pdberger" wrote in message
...
Good afternoon --

I built a workbook used to calculate medical fees and productivity. It's
based on several reference lookups, and lots of internal calculations.
For
each item, there are three calculations, each of which consists of a
formula
60-70 keystrokes long. When the user does this work, (s)he may do it for
100-200 items at a time. Right now, it can take 1-2 minutes to calculate
the
entire workbook so I leave calculation set to manual.

My question -- I can either have all the equations located inside the
cells,
or create a little VB code to copy and paste them into cells on rows where
they'll be used. That is, if cell A15 has the "part number" to be looked
up,
it would paste the lookup and calculation formulas into the appropriate
cells
on that row, and then do summary calculations when all done.

Does anyone know which would be faster?

Thanks in advance,



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,203
Default Quicker calculations -- storing huge equations or cutting and past

In general Excel functions perform faster than equivalent VB code, but I
realize you aren't asking whether to continue using formulas, but whether to
have them in place already or have a VB routine put them in place for you.

As Biff said, "it depends". I presume your users are not having to type in
those long formulas; that they are either already in place in unused rows or
they are filling them down the sheet(s) as required?

Your basic problem is that when they do enter data, there's a long delay
before they can enter another entry because the workbook is recalculating
after each data entry?? Is that correct?

If that's the case, I'd probably leave the workbook set to Manual
calculation and put a button on needed/appropriate sheets that would
recalculate the workbook when clicked. I'd probably also put code in the
Workbook_Open() and Workbook_Activate() events to set calculation to manual,
and I'd put code into the Workbook_Deactivate() event to set calculation to
automatic. This would prevent other workbook's from getting set to manual
calculation because they were opened after this one was opened but hadn't
been closed yet.

"pdberger" wrote:

Good afternoon --

I built a workbook used to calculate medical fees and productivity. It's
based on several reference lookups, and lots of internal calculations. For
each item, there are three calculations, each of which consists of a formula
60-70 keystrokes long. When the user does this work, (s)he may do it for
100-200 items at a time. Right now, it can take 1-2 minutes to calculate the
entire workbook so I leave calculation set to manual.

My question -- I can either have all the equations located inside the cells,
or create a little VB code to copy and paste them into cells on rows where
they'll be used. That is, if cell A15 has the "part number" to be looked up,
it would paste the lookup and calculation formulas into the appropriate cells
on that row, and then do summary calculations when all done.

Does anyone know which would be faster?

Thanks in advance,

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
looking for a function to make it more quicker Darius Excel Worksheet Functions 1 September 25th 07 12:45 AM
How do I get files to open quicker jack Excel Discussion (Misc queries) 0 September 6th 06 01:22 AM
Is there a shorter/quicker way to do this? SouthAfricanStan Excel Worksheet Functions 1 June 27th 06 04:34 PM
huge huge excel file... why? Josh Excel Discussion (Misc queries) 12 February 9th 06 09:55 PM
Cell problems - need a quicker way. lara5555 Excel Worksheet Functions 2 January 13th 06 01:00 PM


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