Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
joe
 
Posts: n/a
Default countif date range

I want to find the occurence if it falls between a range

EG
Name Brth DT
Tom 1/1/2005
Bill 2/1/2005
Sam 4/1/2005
Wendy 6/1/2005

I want a count the number of people who have birth days before April 1st and
who Birth days after April 1st

How do I do it
  #2   Report Post  
RagDyer
 
Posts: n/a
Default

Put the date you're looking to use as a break point into C1,

Then use this for *before* that date:

=SUMPRODUCT((B2:B10<"")*(B2:B10<C1))


And this for *after* that date:

=SUMPRODUCT((B2:B10<"")*(B2:B10C1))


You realize, that Sam will *not* be counted at all, since he was not born
before *or* after April 1.

To *include* the date in the formula, just add an equal sign:
<=
=

*BUT* don't add it to *both* formulas, otherwise you'll count Sam *twice*.

--
HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================


"joe" wrote in message
...
I want to find the occurence if it falls between a range

EG
Name Brth DT
Tom 1/1/2005
Bill 2/1/2005
Sam 4/1/2005
Wendy 6/1/2005

I want a count the number of people who have birth days before April 1st

and
who Birth days after April 1st

How do I do it


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
Update cell based on date range deversole Excel Discussion (Misc queries) 3 July 6th 05 01:58 PM
How to total itmes if they fall between a date range cel Excel Worksheet Functions 1 May 17th 05 07:39 PM
Finding dates within a date range Marcus Excel Worksheet Functions 2 April 5th 05 02:03 AM
Completion Percentage of a date range Brian Excel Discussion (Misc queries) 4 March 4th 05 05:49 PM
SUMPRODUCT with date range question Rob V Excel Discussion (Misc queries) 1 January 31st 05 03:55 PM


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