LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default countif and date formats

Column or Row?

=sumproduct(--(YEAR(A2:Z2)=2004))

Adjust the ranges to match--but you can't use whole columns.

=sumproduct() likes to work with numbers. The -- stuff changes trues and falses
to 1's and 0's.

Bob Phillips explains =sumproduct() in much more detail he
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

And J.E. McGimpsey has some notes at:
http://mcgimpsey.com/excel/formulae/doubleneg.html

shnim1 wrote:

Hi

I have a list of dates (in 12/12/2004 format) in a column. I need to
seach how many dates are in the list with a year of 2004, regardless of
day or month. I was using the countif function (=countif(a2:z2,"=2004")
but it does not recognize any cells since there are months and days
attached in the list. I also cannot change the list to show just years
either....

I hope that this makes sense, and thanks for any help

--
shnim1


--

Dave Peterson
 
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
excel today countif over expired date JonnieP Excel Worksheet Functions 2 November 30th 05 10:38 PM
Countif and date check for second criteria [email protected] Excel Worksheet Functions 0 November 29th 05 09:40 PM
Countif and date check for second criteria [email protected] Excel Worksheet Functions 0 November 29th 05 09:40 PM
COUNTIF criteria using date ranges? Annie Excel Worksheet Functions 3 August 26th 05 07:25 PM
use a date range as criteria in a countif formula mbparks Excel Worksheet Functions 3 January 2nd 05 11:06 PM


All times are GMT +1. The time now is 11:34 PM.

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"