View Single Post
  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
T. Valko T. Valko is offline
external usenet poster
 
Posts: 15,768
Default MAX value matching multiple criteria

Those look like recalculaion times. I get similar results when I test the
recalculation time.

I tested the *initial* calculation times.

--
Biff
Microsoft Excel MVP


"BoniM" wrote in message
...
7000 rows, 10 iterations

DMAX Array Index Sumproduct
0.000174949 0.000173458 0.000173570 0.000175497 Average
0.000180749 0.000177117 0.000185778 0.000188013 Max
0.000171530 0.000169575 0.000169575 0.000170133 Min
0.000009219 0.000007542 0.000016203 0.000017880 Range

Array had the lowest average, tied with Index for the lowest min, and was
the most consistent, with the lowest range.
Sumproduct had the highest average, the highest max and was the least
consistent, with the largest range.


Data:
DMAX Array Index Sumproduct
0.000171530 0.000169854 0.000169854 0.000171530
0.000179911 0.000176838 0.000172927 0.000170133
0.000172089 0.000173486 0.000171530 0.000174324
0.000174993 0.000172648 0.000172368 0.000178794
0.000180749 0.000174603 0.000169575 0.000173206
0.000171530 0.000172368 0.000172927 0.000175162
0.000172089 0.000173486 0.000185778 0.000172368
0.000174603 0.000177117 0.000175721 0.000177676
0.000175162 0.000169575 0.000172089 0.000188013
0.000176838 0.000174603 0.000172927 0.000173765


"Ragdyer" wrote:

Just as a point of information, can anyone out there with access to Fast
Excel or other similar software determine which of these formulas would
be
faster and less resource intensive?

Say you size them to 7,000 rows.

Gary's Sumproduct:
=SUMPRODUCT(MAX((A1:A7000="north")*(B1:B7000="high ")*C1:C7000))

Tm's Index:
=MAX(INDEX((A1:A7000="north")*(B1:B7000="high")*C1 :C7000,0))

OR, a standard *array* entered formula:
=MAX((A1:A7000="north")*(B1:B7000="high")*C1:C7000 )


--
Regards,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

"mwd" wrote in message
...
Hi

I have a spreadsheet that contains text and time information such as

below:
a b c
1 north high 5:21
2 south low 6:42
3 north low 7:14
4 north high 3:56
5 east low 2:14
6 north low 2:02
7 north high 2:37
All of the information in the spreadsheet is the result of formulas
from
other data (in other sheets).
I need a formula that will provide the maximum time (in Col C) in a row
where (for example) the Col A is "north" and Col B is "high".
Any help would be greatly appreciated.
Thanks.