CountIfs how to

FanofExcel18

Board Regular
Joined
Jun 7, 2018
Messages
65
My Data

[TABLE="width: 423"]
<colgroup><col><col><col><col><col></colgroup><tbody>[TR]
[TD="align: right"]1[/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD]Sequence[/TD]
[TD]Date/Time[/TD]
[TD]Who[/TD]
[TD]What[/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD="align: right"]1 [/TD]
[TD]10/1/18 2:41 PM[/TD]
[TD]John Smith[/TD]
[TD]Open*[/TD]
[/TR]
[TR]
[TD="align: right"]4[/TD]
[TD="align: right"]1 [/TD]
[TD]10/1/18 2:41 PM[/TD]
[TD]John Smith[/TD]
[TD]Edited[/TD]
[/TR]
[TR]
[TD="align: right"]5[/TD]
[TD="align: right"]2 [/TD]
[TD]10/4/18 2:15 PM[/TD]
[TD]John Smith[/TD]
[TD]Open*[/TD]
[/TR]
[TR]
[TD="align: right"]6[/TD]
[TD="align: right"]2[/TD]
[TD] 10/4/18 2:15 PM[/TD]
[TD]John Smith[/TD]
[TD]Edited[/TD]
[/TR]
[TR]
[TD="align: right"]7[/TD]
[TD="align: right"]3[/TD]
[TD] 10/5/18 2:16 PM[/TD]
[TD]John Smith[/TD]
[TD]Open*[/TD]
[/TR]
[TR]
[TD="align: right"]8[/TD]
[TD="align: right"]3[/TD]
[TD] 10/5/18 4:16 PM[/TD]
[TD]John Smith[/TD]
[TD]Edited*[/TD]
[/TR]
[TR]
[TD="align: right"]9[/TD]
[TD="align: right"]4[/TD]
[TD] 10/6/18 2:16 PM[/TD]
[TD]John Smith[/TD]
[TD]Open*[/TD]
[/TR]
[TR]
[TD="align: right"]10[/TD]
[TD="align: right"]4[/TD]
[TD] 10/6/18 2:16 PM[/TD]
[TD]John Smith[/TD]
[TD]Moved[/TD]
[/TR]
</tbody>[/TABLE]

What I'm trying to do:
I want to count the amount of touches. Touches = Edited and Open
However, I do not want to capture Edited and Open together if they happen within a span of 20 minutes of each other.

Example of Results Looking for:
Number of Touches: 5 (2 hour time difference counted on Seq 3)

Anyone have any ideas?
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
How do you get 5 ?

Sequence 1 Opened 10/1/18 2:41 Edited 10/1/18 2:41,
2:41 is within 20 mins of 2:41 so netither of them get counted.
So I make it 2 (for Sequence 3 Opened (1) and Edited (2).

How do you get 5 ?
 
Last edited:
Upvote 0
How do you get 5 ?

Sequence 1 Opened 10/1/18 2:41 Edited 10/1/18 2:41,
2:41 is within 20 mins of 2:41 so netither of them get counted.
So I make it 2 (for Sequence 3 Opened (1) and Edited (2).

How do you get 5 ?

I meant to write in the original post anything with a * was counted( the 5).
So for sequence 1, I would only count that as 1 hit vs 2. For Sequence 3, its a 2 since they are 2 hours apart. Make Sense?
 
Upvote 0
Your data suggests the following.

There are only ever TWO records for a sequence, one labelled OPENED the other labelled EDITED or MOVED.

Is that so?
 
Upvote 0
Your data suggests the following.

There are only ever TWO records for a sequence, one labelled OPENED the other labelled EDITED or MOVED.

Is that so?

There could be more than one edited for sequence but during different date/times. Example would be Sequence 1 has 6 entries, each with an edited but each with a different date/timestamp.
 
Upvote 0

Forum statistics

Threads
1,224,816
Messages
6,181,141
Members
453,021
Latest member
Justyna P

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