Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 1
Default Countif with dates

Trying to get a count using hired before date and termed after date. I am trying to use the cell the date is in. I'm attaching a sample spreadsheet with the formula that I'm using. Thanks for your help and showing me how to fix what I am messing up.
Thanks
Michelle
Attached Files
File Type: zip countifs.zip (14.2 KB, 59 views)
  #2   Report Post  
Senior Member
 
Posts: 663
Default

Quote:
Originally Posted by mleeangel View Post
Trying to get a count using hired before date and termed after date. I am trying to use the cell the date is in. I'm attaching a sample spreadsheet with the formula that I'm using. Thanks for your help and showing me how to fix what I am messing up.
Thanks
Michelle
Try changing the formula in D2 to:

=COUNTIFS(Sheet1!B:B,B2,Sheet1!H:H,"<"&$D$1,Sheet1 !I:I,""&$D$1)

Does that fix it for you?

You may actually wish to use the below version as it will also capture any that fall on the date in D1

=COUNTIFS(Sheet1!B:B,B2,Sheet1!H:H,"<="&$D$1,Sheet 1!I:I,"="&$D$1)


And this one will allow you to drag the formula to populate the other cells:

=COUNTIFS(Sheet1!$B:$B,$B2,Sheet1!$H:$H,"<="&D$1,S heet1!$I:$I,"="&D$1)

Last edited by Spencer101 : October 21st 12 at 08:38 PM
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
COUNTIF with Dates SRL Excel Worksheet Functions 3 October 27th 08 03:48 PM
Countif and dates Tom Excel Worksheet Functions 4 February 14th 08 06:13 PM
CountIF with dates Secret Squirrel Excel Discussion (Misc queries) 13 November 15th 06 09:08 PM
using countif to add dates jwmillzy Excel Discussion (Misc queries) 2 June 2nd 06 06:27 PM
Countif using dates Bugaglugs Excel Worksheet Functions 11 August 23rd 05 05:16 PM


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