Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Denise
 
Posts: n/a
Default 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   Report Post  
Posted to microsoft.public.excel.misc
Art
 
Posts: n/a
Default 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   Report Post  
Posted to microsoft.public.excel.misc
pinmaster
 
Posts: n/a
Default 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
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
Seed numbers for random number generation, uniform distribution darebo Excel Discussion (Misc queries) 3 April 21st 23 09:02 PM
Change number format from text to number? Scot New Users to Excel 2 December 1st 05 04:15 PM
convert text-format number to number in excel 2000%3f Larry Excel Discussion (Misc queries) 1 July 29th 05 08:18 PM
Is there a template for a number of people traveling by month? CP Excel Discussion (Misc queries) 0 December 13th 04 05:31 PM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM


All times are GMT +1. The time now is 09:42 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"