Home |
Search |
Today's Posts |
#1
|
|||
|
|||
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
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
"COUNTU" function in Excel to count unique entries in a range | Excel Worksheet Functions | |||
Character Count Range of Cells | Excel Discussion (Misc queries) | |||
Count cells in one range based on parameters in another range | Excel Worksheet Functions | |||
count duplicate (or, inversely, unique) entries, but based on a condition | Excel Worksheet Functions | |||
count data but avoid double entries | Excel Worksheet Functions |