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 |
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 |
All times are GMT +1. The time now is 10:53 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com