Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Shannon
 
Posts: n/a
Default COUNTIF With Multiple Dates, Columns and Text

I need to count a number of entries that are between two dates where that
data is stored in column A and also if the text value in column F is "yes".
I have a formula to count the entries between two dates and a formula to
count the entries for the text equal to "yes", but I cannot bring it together
to do both...any suggestions?

=COUNTIF('Student Listing'!$A$2:$A$300,"=10/1/04")-COUNTIF('Student
Listing'!$A$2:$A$300,"=10/31/04")

=COUNTIF('Student Listing'!$F$2:$F$300,"Yes")

Thanks!


  #2   Report Post  
duane
 
Posts: n/a
Default


=sumproduct(('Student
Listing'!$A$2:$A$300=datevalue("10/1/04"))*('Student
Listing'!$A$2:$A$300<=datevalue("10/31/04"))*('Student
Listing'!$F$2:$F$300="Yes")*1)

count of all occurances of yes between 10/1 and 10/31 inclusive

assumes the dates in column A are dates and not text


--
duane


------------------------------------------------------------------------
duane's Profile: http://www.excelforum.com/member.php...o&userid=11624
View this thread: http://www.excelforum.com/showthread...hreadid=320505

  #3   Report Post  
Max
 
Posts: n/a
Default

One way

Try:

=SUMPRODUCT(('Student Listing'!$A$2:$A$300=DATE(2004,10,1))*('Student
Listing'!$A$2:$A$300<=DATE(2004,10,31))*('Student
Listing'!$F$2:$F$300="Yes"))

--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
"Shannon" wrote in message
...
I need to count a number of entries that are between two dates where that
data is stored in column A and also if the text value in column F is

"yes".
I have a formula to count the entries between two dates and a formula to
count the entries for the text equal to "yes", but I cannot bring it

together
to do both...any suggestions?

=COUNTIF('Student Listing'!$A$2:$A$300,"=10/1/04")-COUNTIF('Student
Listing'!$A$2:$A$300,"=10/31/04")

=COUNTIF('Student Listing'!$F$2:$F$300,"Yes")

Thanks!




  #4   Report Post  
Shannon
 
Posts: n/a
Default

Thanks! That did the trick. I appreciate all of the help.

"Max" wrote:

One way

Try:

=SUMPRODUCT(('Student Listing'!$A$2:$A$300=DATE(2004,10,1))*('Student
Listing'!$A$2:$A$300<=DATE(2004,10,31))*('Student
Listing'!$F$2:$F$300="Yes"))

--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
"Shannon" wrote in message
...
I need to count a number of entries that are between two dates where that
data is stored in column A and also if the text value in column F is

"yes".
I have a formula to count the entries between two dates and a formula to
count the entries for the text equal to "yes", but I cannot bring it

together
to do both...any suggestions?

=COUNTIF('Student Listing'!$A$2:$A$300,"=10/1/04")-COUNTIF('Student
Listing'!$A$2:$A$300,"=10/31/04")

=COUNTIF('Student Listing'!$F$2:$F$300,"Yes")

Thanks!





  #5   Report Post  
Max
 
Posts: n/a
Default

You're welcome !
Thanks for the feedback
--
Rgds
Max
xl 97
--
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
---
"Shannon" wrote in message
...
Thanks! That did the trick. I appreciate all of the help.



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
text from one column into multiple columns Jeff Brown Excel Discussion (Misc queries) 6 December 22nd 04 10:07 PM
Data Text to Columns RTP Excel Discussion (Misc queries) 4 December 10th 04 06:58 PM
splitting text to multiple columns maryj Excel Discussion (Misc queries) 5 December 1st 04 03:37 PM
Delete Columns not Containing Certain Text Dennis Excel Worksheet Functions 4 November 25th 04 09:37 PM
Convert text to dates Ket Excel Worksheet Functions 5 November 4th 04 08:03 PM


All times are GMT +1. The time now is 03:17 PM.

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

About Us

"It's about Microsoft Excel"