PC Review Forums Newsgroups Microsoft Excel Microsoft Excel Discussion Countif with two different conditions

Reply

Countif with two different conditions

 
Thread Tools Rate Thread
Old 14-05-2006, 06:52 AM   #1
=?Utf-8?B?Vmlja3k=?=
Guest
 
Posts: n/a
Default Countif with two different conditions


Hello,
I have a table like below displayed. What I want is to count the no. of
"GIN'S" for any particular date say for the date of "14/05/2006" / for the
month of "05/2006". The answer would have been 6/10.
GIN Nos. DATE ITEM QTY DATE STMP MONTH
GR702430 14/05/06 ATM0541 54 14/05/2006 08:03:46 AM 05/2006
GR702430 14/05/06 MTM1044 54 14/05/2006 08:03:46 AM 05/2006
GR702431 14/05/06 PTM0748 39 14/05/2006 08:07:13 AM 05/2006
GR702432 14/05/06 ATM0093 78 14/05/2006 08:12:06 AM 05/2006
GR702432 14/05/06 MTM0161 144 14/05/2006 08:12:06 AM 05/2006
GR702433 14/05/06 MTM1050 12 14/05/2006 08:14:39 AM 05/2006
GR702434 14/05/06 ATM0541 54 14/05/2006 08:51:42 AM 05/2006
GR702434 14/05/06 ATM0543 54 14/05/2006 08:51:42 AM 05/2006
GR702435 14/05/06 ATM0549 54 14/05/2006 08:54:52 AM 05/2006
GR702435 14/05/06 ATM0556 54 14/05/2006 08:54:52 AM 05/2006
Help in this regard will be highly appreciated.
--
Vikram Dhemare
  Reply With Quote
Old 14-05-2006, 11:53 AM   #2
Bob Phillips
Guest
 
Posts: n/a
Default Re: Countif with two different conditions

=SUMPRODUCT(--(INT(E2:E15)=--"2006-05-14"))

=COUNTIF(H:H,"05/2006")

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"Vicky" <Vicky@discussions.microsoft.com> wrote in message
news:CE333E97-38FD-4B41-8FFA-325EC0DEDDAC@microsoft.com...
> Hello,
> I have a table like below displayed. What I want is to count the no. of
> "GIN'S" for any particular date say for the date of "14/05/2006" / for the
> month of "05/2006". The answer would have been 6/10.
> GIN Nos. DATE ITEM QTY DATE STMP MONTH
> GR702430 14/05/06 ATM0541 54 14/05/2006 08:03:46 AM 05/2006
> GR702430 14/05/06 MTM1044 54 14/05/2006 08:03:46 AM 05/2006
> GR702431 14/05/06 PTM0748 39 14/05/2006 08:07:13 AM 05/2006
> GR702432 14/05/06 ATM0093 78 14/05/2006 08:12:06 AM 05/2006
> GR702432 14/05/06 MTM0161 144 14/05/2006 08:12:06 AM 05/2006
> GR702433 14/05/06 MTM1050 12 14/05/2006 08:14:39 AM 05/2006
> GR702434 14/05/06 ATM0541 54 14/05/2006 08:51:42 AM 05/2006
> GR702434 14/05/06 ATM0543 54 14/05/2006 08:51:42 AM 05/2006
> GR702435 14/05/06 ATM0549 54 14/05/2006 08:54:52 AM 05/2006
> GR702435 14/05/06 ATM0556 54 14/05/2006 08:54:52 AM 05/2006
> Help in this regard will be highly appreciated.
> --
> Vikram Dhemare



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off