LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
JLV JLV is offline
external usenet poster
 
Posts: 1
Default COUNTIF between dates and if value = "y"

I have been using the COUNTIF function to count the occurences of dates that
fall between a particular set of dates.
Is there a way to count these dates, only if a cell on the same row as the
counted date equals 'Y"
This is the formula that I have been using to count occurences between
Dec.31-06 and Dec.31-07.
=COUNTIF(A1:A5,"<=12/31/07")-COUNTIF(A1:A5,"<=12/31/06")

Can I add to this in order to count the cells that also contain a "y" on the
same row?
Column A are the dates, Column B are the Y or N values.
A B
1 Sept-08-06 Y
2 Oct-24-05 N
3 Jul-21-07 N
4 Aug-10-07 Y
5 Jan-01-05 Y

The date COUNTIF formula shown above would result in 2. (A3 and A4)
The result I am looking for (with the "y") should be 1. (A4 only)

Any ideas ?

Thx.

 
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
change "true" and "false" to "availble" and "out of stock" inthestands Excel Worksheet Functions 2 July 19th 07 07:05 PM
HELP on "left","right","find","len","substitute" functions serene83 Excel Discussion (Misc queries) 5 June 27th 06 02:23 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
what is syntax for if(between range of dates,"Q1","Q2")? TLB Excel Worksheet Functions 3 December 6th 05 05:19 PM
Insert "-" in text "1234567890" to have a output like this"123-456-7890" Alwyn Excel Discussion (Misc queries) 3 October 25th 05 11:36 PM


All times are GMT +1. The time now is 12:13 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"