Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 38
Default Count number of "Yes" between two dates

How can I Count number of "Yes" between two dates.
Date col=A
Yes col=E

Thanks
--
Sophie
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 964
Default Count number of "Yes" between two dates

Try this:

=SUMPRODUCT(--(A1:A10=DATE(2009,2,1)),--(A1:A10<=DATE(2009,2,28)),--(B1:B10="Yes"))

This would count the number of times "Yes" appears in Column B when the date
in column A is in Feb 2009.

HTH
Elkar


"Sophie" wrote:

How can I Count number of "Yes" between two dates.
Date col=A
Yes col=E

Thanks
--
Sophie

  #3   Report Post  
Posted to microsoft.public.excel.misc
RAZ RAZ is offline
external usenet poster
 
Posts: 120
Default Count number of "Yes" between two dates

=COUNTIF(E:E,"Yes")
OR
=COUNTIF(E1:E100,"Yes")



"Sophie" wrote:

How can I Count number of "Yes" between two dates.
Date col=A
Yes col=E

Thanks
--
Sophie

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,346
Default Count number of "Yes" between two dates

Hi,

You can't do this with COUNTIF because there are three conditions. If you
are using 2007 you can use

=COUNTIFS(A1:A10,"="&D1,A1:A10,"<="&E1,B1:B10,"Ye s")

In this example D1 and E1 contain the dates you are looking between.

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"Raz" wrote:

=COUNTIF(E:E,"Yes")
OR
=COUNTIF(E1:E100,"Yes")



"Sophie" wrote:

How can I Count number of "Yes" between two dates.
Date col=A
Yes col=E

Thanks
--
Sophie

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 38
Default Count number of "Yes" between two dates

It works when I insert "No" but not with "Yes"
--
Sophie


"Shane Devenshire" wrote:

Hi,

You can't do this with COUNTIF because there are three conditions. If you
are using 2007 you can use

=COUNTIFS(A1:A10,"="&D1,A1:A10,"<="&E1,B1:B10,"Ye s")

In this example D1 and E1 contain the dates you are looking between.

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"Raz" wrote:

=COUNTIF(E:E,"Yes")
OR
=COUNTIF(E1:E100,"Yes")



"Sophie" wrote:

How can I Count number of "Yes" between two dates.
Date col=A
Yes col=E

Thanks
--
Sophie

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Count the number of "rows" (or Array items) included in a Sumif formula? EagleOne Excel Discussion (Misc queries) 3 July 30th 07 06:25 PM
Formula to count number of time stamps within a range in a column having dates formatted as "custom" Sam Excel Discussion (Misc queries) 3 June 19th 07 12:33 AM
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next BCB New Users to Excel 7 May 13th 06 10:02 PM
Count the number of Lines in a "wrap text"-cell MichaelS_ Excel Discussion (Misc queries) 2 March 20th 06 08:15 AM
How do I count like dates in a column with format "January-05"? Kentski Excel Worksheet Functions 3 January 16th 06 01:51 AM


All times are GMT +1. The time now is 02:38 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"