View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips[_3_] Bob Phillips[_3_] is offline
external usenet poster
 
Posts: 2,420
Default SUMPRODUCT or COUNTIF - Multiple Criteria

=SUMPRODUCT(--(A1:A100="WEST"),--(LEFT(B1:B100,1)="N"))

--
__________________________________
HTH

Bob

"J Fraggis" wrote in message
...

I am working with Excel 2003 - SP3.

From what I understand, if you need to calculate a total number of
items that must meet 2 or more criteria, then COUNTIF is not possible.

I have tried the SUMPRODUCT formula as follows:

=SUMPRODUCT((A1:A100="word1")*(B1:B100="word2")) and amended to
appropriate columns but no matter how I tweak this, my total is always
0. If I amend the * then I get all items matching Criteria 1 and
Criteria 2 but not exclusively.

What I need is a total number that includes only those items meeting
criteria 1 ("WEST" in Column 1) and criteria 2 (Postal Codes starting
with "N").

Is it a format problem with my columns - text vs. number etc?

Any assistance would be appreciated...it will save me creating
worksheets and breaking the info out manually.

Thank you in advance...




--
J Fraggis