Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / September 2005

Tip: Looking for answers? Try searching our database.

countif date range

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
joe - 27 Sep 2005 19:39 GMT
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
RagDyer - 27 Sep 2005 20:44 GMT
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:B10>C1))

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*.

Signature

HTH,

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

> I want to find the occurence if it falls between a range
>
[quoted text clipped - 9 lines]
>
> How do I do it
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.