Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 213
Default Basic question about what formulas look at.

Does Excel look at every cell in the range while performing calculations? I
have the following array formula and am wondering if it will slow things down
if I change the 12000s to 65536s. By changing the number I would not have to
worry about missing any data but then again if it is going to burn my cpu up
I will leave it as is.

=AVERAGE(IF((SCMatrix!$C2:$C12000="NOW")*(SCMatrix !$Y2:$Y120000),SCMatrix!$Y2:$Y12000))

Thanks!

Randy
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default Basic question about what formulas look at.

Out of curiosity I tried the formula with 65536 cells and it was almost
instantaneous on my laptop which is a Pentium 4 processor (2.93GHZ) with 512
MB DDR RAM (so nothing special).

So try it!

"Randy" wrote:

Does Excel look at every cell in the range while performing calculations? I
have the following array formula and am wondering if it will slow things down
if I change the 12000s to 65536s. By changing the number I would not have to
worry about missing any data but then again if it is going to burn my cpu up
I will leave it as is.

=AVERAGE(IF((SCMatrix!$C2:$C12000="NOW")*(SCMatrix !$Y2:$Y120000),SCMatrix!$Y2:$Y12000))

Thanks!

Randy

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 213
Default Basic question about what formulas look at.

It will run if I calculate one sheet at a time (2 sheets total). What I did
not tell you is that I have over 250 of these array formulas in one sheet and
over 5000 other formulas in the second sheet. That is why I am wondering if
Excel looks at the whole range in the array or stops at the end of the data.

Randy

"Toppers" wrote:

Out of curiosity I tried the formula with 65536 cells and it was almost
instantaneous on my laptop which is a Pentium 4 processor (2.93GHZ) with 512
MB DDR RAM (so nothing special).

So try it!

"Randy" wrote:

Does Excel look at every cell in the range while performing calculations? I
have the following array formula and am wondering if it will slow things down
if I change the 12000s to 65536s. By changing the number I would not have to
worry about missing any data but then again if it is going to burn my cpu up
I will leave it as is.

=AVERAGE(IF((SCMatrix!$C2:$C12000="NOW")*(SCMatrix !$Y2:$Y120000),SCMatrix!$Y2:$Y12000))

Thanks!

Randy

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Basic question about what formulas look at.

Does Excel look at every cell in the range while performing calculations?

An array formula like the one in your example will process every cell
referenced in the array, whether they're empty or not.

Some functions will only process the used range. =COUNTIF(A:A,B1)

If your data ends on row 1000 and you use references to row 65336 in an
array formula you're wasting calculation time by having to evaluate all
those empty cells.

Instead of using an arbitrary end of reference to ensure you "get" all the
data use dynamic ranges.

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

Biff

"Randy" wrote in message
...
Does Excel look at every cell in the range while performing calculations?
I
have the following array formula and am wondering if it will slow things
down
if I change the 12000s to 65536s. By changing the number I would not have
to
worry about missing any data but then again if it is going to burn my cpu
up
I will leave it as is.

=AVERAGE(IF((SCMatrix!$C2:$C12000="NOW")*(SCMatrix !$Y2:$Y120000),SCMatrix!$Y2:$Y12000))

Thanks!

Randy



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
Basic Question on Subs JOUIOUI Excel Worksheet Functions 4 June 13th 06 01:28 PM
Basic question plittle Excel Discussion (Misc queries) 1 May 23rd 06 03:49 PM
Basic INDEX() question Adam Kroger Excel Discussion (Misc queries) 2 December 13th 05 12:05 AM
Basic Array Question Annabelle Excel Discussion (Misc queries) 2 August 29th 05 10:50 PM
Basic Template Question CBH Excel Discussion (Misc queries) 3 April 4th 05 09:05 PM


All times are GMT +1. The time now is 08:13 AM.

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"