Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
DeeJay30
 
Posts: n/a
Default count no. of entries in range for a day

I'm need a formula to count the number of registrations per hour for each day
of the week.

Example:
A B
Day Registration time
Sun 0530
Sun 0546
Sun 0600
Sun 0702

How many entries are for Sunday and fall between 0500 and 0600?

I've tried a countif function and a sumproduct function to no avail.

Thanks,
Dana
  #2   Report Post  
Max
 
Posts: n/a
Default

Assuming the source table is in Sheet1, cols A and B, data from row2 down,
and the Registration Times are actually just numbers formatted to show the
leading zeros (I don't see any semicolons <g)

In Sheet2,

Put in A1:C1 : Sun, 500, 600

Put in D1:

=SUMPRODUCT((Sheet1!$A$2:$A$100=A1)*(Sheet1!$B$2:$ B$100=B1)*(Sheet1!$B$2:$B
$100<=C1))

For the sample data, D1 will return: 3

Copy D1 down to compute correspondingly for other inputs in A2:C2, A3:C3,
etc

Adapt the ranges to suit ..
--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
"DeeJay30" wrote in message
...
I'm need a formula to count the number of registrations per hour for each

day
of the week.

Example:
A B
Day Registration time
Sun 0530
Sun 0546
Sun 0600
Sun 0702

How many entries are for Sunday and fall between 0500 and 0600?

I've tried a countif function and a sumproduct function to no avail.

Thanks,
Dana



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
"COUNTU" function in Excel to count unique entries in a range WayneL Excel Worksheet Functions 20 September 19th 08 03:50 AM
Character Count Range of Cells Naz Excel Discussion (Misc queries) 0 May 29th 05 10:28 PM
Count cells in one range based on parameters in another range dave roth Excel Worksheet Functions 2 March 29th 05 05:33 PM
count duplicate (or, inversely, unique) entries, but based on a condition markx Excel Worksheet Functions 3 March 8th 05 06:57 PM
count data but avoid double entries Manos Excel Worksheet Functions 1 December 14th 04 07:00 AM


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