#1   Report Post  
jbressma
 
Posts: n/a
Default Help! Formulas

Can I do a count function by date?

For instance, I have a spreadsheet that includes all employees in my
company, and their hire date. I would like to somehow be able to count all
employees hired this year, and do so by using this column of "hire date"
which is in the format of 02/01/2005.

Thanks
  #2   Report Post  
Eddie O
 
Posts: n/a
Default

if your hire date is in column A, this would work:
=COUNTIF(A:A,"1/1/05")

"jbressma" wrote:

Can I do a count function by date?

For instance, I have a spreadsheet that includes all employees in my
company, and their hire date. I would like to somehow be able to count all
employees hired this year, and do so by using this column of "hire date"
which is in the format of 02/01/2005.

Thanks

  #3   Report Post  
JE McGimpsey
 
Posts: n/a
Default

one way:

=SUMPRODUCT(--(YEAR(A1:A1000)=2005))

alternatively:

=COUNTIF(A:A,"=1/1/2005")

or, if you use this after this year,

=COUNTIF(A:A,"=1/1/2005") - COUNTIF(A:A,"=12/31/2005")


In article ,
"jbressma" wrote:

Can I do a count function by date?

For instance, I have a spreadsheet that includes all employees in my
company, and their hire date. I would like to somehow be able to count all
employees hired this year, and do so by using this column of "hire date"
which is in the format of 02/01/2005.

Thanks

  #4   Report Post  
JE McGimpsey
 
Posts: n/a
Default

Should have been

=COUNTIF(A:A,"=1/1/2005") - COUNTIF(A:A,"12/31/2005")

In article ,
JE McGimpsey wrote:

=COUNTIF(A:A,"=1/1/2005") - COUNTIF(A:A,"=12/31/2005")

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
Need Formulas for counting multiple conditions OrdOff Excel Worksheet Functions 4 July 3rd 05 06:12 PM
Help, Urgent Excel Formulas are not calculating maashoff Excel Discussion (Misc queries) 1 May 3rd 05 12:25 AM
Problem with named formula's nathan Excel Worksheet Functions 0 January 21st 05 04:07 PM
Way to make Excel only run certain formulas on a worksheet? jrusso Excel Discussion (Misc queries) 0 January 12th 05 04:23 PM
calculating formulas for all workbooks in a folder Chad Excel Worksheet Functions 3 November 13th 04 05:22 PM


All times are GMT +1. The time now is 10:57 AM.

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"