View Single Post
  #6   Report Post  
Posted to microsoft.public.excel.misc
T. Valko T. Valko is offline
external usenet poster
 
Posts: 15,768
Default How do I test values in 2 different columns in a "sumif" formu

Slightly more efficient.

If you have Excel 2002 or higher use the Evaluate Formula command and see
how many steps it takes each variation of the formula to calculate. I would
use a small data set for this, like 5-10 rows.

If you actually timed the calculation the difference would probably be
negligible on a small dataset. But on a large dataset there is a
considerable difference.

Screecap:

average calc times for 10 rows and 10,000 rows

http://img46.imageshack.us/img46/4064/calctimesax7.jpg

Biff

"ShaneDevenshire" wrote in
message ...
Hi,

What is the advantage of this over Roger's formula?

--
Thanks,
Shane Devenshire


"Bob Phillips" wrote:

=SUMPRODUCT(--(A2:A200="value1"),--(B2:B200="value2),C2:C200)

SP doesn't support full columns (not until Excel 200&), but specific
ranges.

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)



"SteveS" wrote in message
...
I want to sum values in column C based on a test of text values in
columns
A
& B. Sumif only seems to support testing the value of one column not
two.
Is there a way to accomplish my goal?