LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 49
Default speeding up calculation: replacing array formula with databasefunction?

Hi,

I could use some advice on optimizing a formula.
I currently have the following array formula in the cells of column D:

{=MAX(IF($A$2:$A$13695=$A13695;$B$2:$B$13695;FALSE ))}

In words: take the highest value of column B for every cell in B where
the value in column A is equal to the current value of A.

Example:
01/04/2010 5937 5937
01/04/2010 5936 5937
07/04/2010 5943 5943
07/04/2010 5942 5943

As we all know, excessive usage of array formulas makes calculation
painfully slow. As you can see I am now at row 13695 and rows keep
getting added.

Can the formula be constructed in another way, for example with
database functions.
I suppose that I could use the DMAX function, but I've been staring at
the third parameter (criterium) and I can't wrap my mind around it.
All documentation seems to suggest that I need a separate table for
the criterium.

If a database function is the wrong way to go, please tell me.

--
Amedee
 
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
Replacing a data range in a nested array function Julie Excel Worksheet Functions 1 February 24th 10 06:17 PM
Replacing a Table-array with a cell reference in vlookup Allan Excel Worksheet Functions 4 January 15th 08 01:57 PM
Simplifying/speeding up this formula Keith R Excel Worksheet Functions 5 August 17th 07 02:13 AM
Speeding up calculations sb1920alk Excel Discussion (Misc queries) 10 October 10th 06 09:46 PM
Replacing a number value with text from array JB1981 Excel Worksheet Functions 5 June 7th 06 09:46 PM


All times are GMT +1. The time now is 10:03 PM.

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"