Need to count rows only if there are 4 or more values in a certain hour on a certain date

cdcomer

New Member
Joined
Aug 13, 2018
Messages
1
Hi -

Admittedly a newbie.

I am analyzing a file with 16811 rows.

We have interval start data that shows date, hour, minute per quarter hour (00, 15, 30, 45). If they do not meet this criteria, those rows are out of scope for our current analysis

We wish to analyze and chart only the data where there are 4 or more entries for the date and hour. (Some projects have more than one meter, so there could be more than 4 entries for those projects, which is why we are after 4 or more)

In the sample data below, we would not want to count the date 6/1 with start hours 9, 13, 14 or 15.
In the sample data below, we want to count the date 6/1 with the start hours 10, 11 and 12.

Each file spans a month, so the date and hour are the variables. What formula will we use to flag the data for further analysis? We have also added separate columns for day, month and hour if that helps to flag the data we're after.



INTERVAL_START_TIMEStart DayStart MonthStart Hour<3
6/1/2018 9:156/169
6/1/2018 9:306/169
6/1/2018 9:456/169
6/1/2018 10:006/1610
6/1/2018 10:156/1610
6/1/2018 10:306/1610
6/1/2018 10:456/1610
6/1/2018 11:006/1611
6/1/2018 11:156/1611
6/1/2018 11:306/1611
6/1/2018 11:456/1611
6/1/2018 12:006/1612
6/1/2018 12:156/1612
6/1/2018 12:306/1612
6/1/2018 12:456/1612
6/1/2018 13:156/1613
6/1/2018 13:306/1613
6/1/2018 13:456/1613
6/1/2018 14:006/1614
6/1/2018 14:156/1614
6/1/2018 14:306/1614
6/1/2018 15:306/1615

<colgroup><col><col><col><col><col></colgroup><tbody>
</tbody>
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Hi there,
try the COUNTIFS formula
In your example a formula for column E (example E2):
=COUNTIFS($B$2:$B$1000,B2,$C$2:$C$1000,C2,$D$2:$D$1000,D2)
Cheers,
Koen
 
Upvote 0

Forum statistics

Threads
1,214,429
Messages
6,119,433
Members
448,897
Latest member
ksjohnson1970

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top