LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 78
Default Counting Within a Date Range

I'm trying to count the number of people present during any given date range
which I have been able to do. The problem I'm having is including people who
are still here. My simplified dataset looks like this

A B C
Sam 1-Oct-07 13-Oct-07
Joe 8-Oct-07 12-Oct-07
Julie 10-Oct-07
Steve 10-Oct-07 19-Oct-07
James 15-Oct-07 15-Oct-07
Mary 15-Oct-07 17-Oct-07
Sally 18-Oct-07
Juliet 20-Oct-07 21-Oct-07
Janet 22-Oct-07
Joan 25-Oct-07

Column C isn't filled in until the person leaves. Therefore the counts
should be:
3 Oct ....1
:
10 Oct ... 4
:
25 Oct .... 4

I have a table showing all the dates in column g and the counts for h. The
array formula I have tried for h is
{sumproduct(--(b1:b10<=g3)*(--(c1:c10=g3)))+sumproduct(--(b1:b10<=g3)*(--(c1:c10="")))}


What am I doing wrong? Thanks for the help

 
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
Counting a range to see if it encompasses a given date Quovardis Excel Worksheet Functions 6 October 11th 07 01:46 PM
Counting Unique Values by Date Range [email protected] Excel Worksheet Functions 5 August 2nd 07 09:36 PM
Counting number of observations within a date range? Nic Excel Worksheet Functions 7 April 20th 07 09:20 AM
Counting if between date range Marc Shaw Excel Worksheet Functions 7 September 25th 06 07:26 PM
Counting values within a Date Range Jana Excel Discussion (Misc queries) 7 December 9th 04 10:18 PM


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