+ Reply to Thread
Results 1 to 3 of 3

Calculating number of people

Hybrid View

  1. #1
    Denise
    Guest

    Calculating number of people

    I have a very large spreadsheet for each month. Each one has approximately
    2500 - 3000 entries. I have arrival times and discharge times for each
    entry. I need a formula that will tell me how many people were here at
    12:00, 1:00, 2:00, 3:00 .... all throughout the day.

  2. #2
    Art
    Guest

    RE: Calculating number of people

    Denise,

    An example:

    A1:A4 has people names
    B1:B4 has arrival times
    C1:C4 has departure times
    A7 has the time you're interested in

    B7 has the following formula:
    =SUM(IF(A7>=$B$1:$B$4,IF(A7<=$C$1:$C$4,1,0),0))

    IMPORTANT: this is an array formula. After you type it in, you must hit
    ctrl-shift-enter, for it to work. If you do that you will see "curly
    brackets - {}" around your formula. Do not enter the curly brackets yourself.

    Art

    "Denise" wrote:

    > I have a very large spreadsheet for each month. Each one has approximately
    > 2500 - 3000 entries. I have arrival times and discharge times for each
    > entry. I need a formula that will tell me how many people were here at
    > 12:00, 1:00, 2:00, 3:00 .... all throughout the day.


  3. #3
    pinmaster
    Guest

    RE: Calculating number of people

    Try this:
    =SUMPRODUCT(($B$2:$B$5<=E5)*($C$2:$C$5>=E5))
    copied down
    $B$2:$B$5 arrival time
    $C$2:$C$5 discharge time
    E5 time to lookkup

    HTH
    JG

    "Art" wrote:

    > Denise,
    >
    > An example:
    >
    > A1:A4 has people names
    > B1:B4 has arrival times
    > C1:C4 has departure times
    > A7 has the time you're interested in
    >
    > B7 has the following formula:
    > =SUM(IF(A7>=$B$1:$B$4,IF(A7<=$C$1:$C$4,1,0),0))
    >
    > IMPORTANT: this is an array formula. After you type it in, you must hit
    > ctrl-shift-enter, for it to work. If you do that you will see "curly
    > brackets - {}" around your formula. Do not enter the curly brackets yourself.
    >
    > Art
    >
    > "Denise" wrote:
    >
    > > I have a very large spreadsheet for each month. Each one has approximately
    > > 2500 - 3000 entries. I have arrival times and discharge times for each
    > > entry. I need a formula that will tell me how many people were here at
    > > 12:00, 1:00, 2:00, 3:00 .... all throughout the day.


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1