Excel formula

Closed
yh - 29 May 2009 à 14:14
mubashir aziz Posts 190 Registration date Sunday 12 April 2009 Status Member Last seen 16 February 2010 - 1 Jun 2009 à 02:07
Hello,
i want to count some cell but if 2 conditions are meet.

2 responses

Orkt Posts 6 Registration date Friday 29 May 2009 Status Member Last seen 22 June 2009 1
31 May 2009 à 19:48
http://www.xldynamic.com/source/xld.SUMPRODUCT.html
Check out that link, there are some "sum" and Multiple Condition Tests. I dont quite understand what you are looking for.
mubashir aziz Posts 190 Registration date Sunday 12 April 2009 Status Member Last seen 16 February 2010 166
1 Jun 2009 à 02:07
Suppose you have data in Column A & B

A B
a 1
a 2
b 3
a 1
b 1

Now you want to count "a" against the value of "1" in column B

Array formula

=SUM((A1:A5="a")*(B1:B5=1)). after writing this formula Press Ctrl+Shift+Enter (array formula)

second method

=SUMPRODUCT(--(A1:A5="a"),--(B1:B5=1))