ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Count if 3 different conditions exist (https://www.excelbanter.com/excel-discussion-misc-queries/62452-count-if-3-different-conditions-exist.html)

AnnaV

Count if 3 different conditions exist
 

I have 3 columns of information. Column A has a date (01-Jan-05), column
B has a name, column C has either F, Inf, or Inv. I want a formula that
will count any date in column A that is January, and column B is Adam,
and column C is F.


--
AnnaV
------------------------------------------------------------------------
AnnaV's Profile: http://www.excelforum.com/member.php...fo&userid=9619
View this thread: http://www.excelforum.com/showthread...hreadid=496989


Ragdyer

Count if 3 different conditions exist
 
Put the number of the month you're looking for in D1 (Jan=1, Feb=2,
etc....),
Name in D2,
And ID's in D3,

Then try this:

=SUMPRODUCT((MONTH(A1:A100)=D1)*(B1:B100=D2)*(C1:C 100=D3))

--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"AnnaV" wrote in
message ...

I have 3 columns of information. Column A has a date (01-Jan-05), column
B has a name, column C has either F, Inf, or Inv. I want a formula that
will count any date in column A that is January, and column B is Adam,
and column C is F.


--
AnnaV
------------------------------------------------------------------------
AnnaV's Profile:
http://www.excelforum.com/member.php...fo&userid=9619
View this thread: http://www.excelforum.com/showthread...hreadid=496989



Bob Phillips

Count if 3 different conditions exist
 
=SUMPRODUCT(--(MONTH(A2:A200=1),--(B2:B200="Adam"),--(C2:C200="F"))

--

HTH

RP
(remove nothere from the email address if mailing direct)


"AnnaV" wrote in
message ...

I have 3 columns of information. Column A has a date (01-Jan-05), column
B has a name, column C has either F, Inf, or Inv. I want a formula that
will count any date in column A that is January, and column B is Adam,
and column C is F.


--
AnnaV
------------------------------------------------------------------------
AnnaV's Profile:

http://www.excelforum.com/member.php...fo&userid=9619
View this thread: http://www.excelforum.com/showthread...hreadid=496989




Elkar

Count if 3 different conditions exist
 
Try this:

=SUMPRODUCT(--(MONTH(A1:A100)=1),--(B1:B100="Adam"),--(C1:C100="F"))

And of course, change the cell ranges to match your needs.

HTH,
Elkar

"AnnaV" wrote:


I have 3 columns of information. Column A has a date (01-Jan-05), column
B has a name, column C has either F, Inf, or Inv. I want a formula that
will count any date in column A that is January, and column B is Adam,
and column C is F.


--
AnnaV
------------------------------------------------------------------------
AnnaV's Profile: http://www.excelforum.com/member.php...fo&userid=9619
View this thread: http://www.excelforum.com/showthread...hreadid=496989



AnnaV

Count if 3 different conditions exist
 

It Works! It Works! It Works!

Thank You!


--
AnnaV
------------------------------------------------------------------------
AnnaV's Profile: http://www.excelforum.com/member.php...fo&userid=9619
View this thread: http://www.excelforum.com/showthread...hreadid=496989



All times are GMT +1. The time now is 07:28 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com