Formula COUNTIFS

Nick van Staden

New Member
Joined
Dec 6, 2017
Messages
18
Office Version
  1. 365
Platform
  1. Windows
Need Help on the countifs formula based on a running count if action date is grater than start date.

I am using formula: =COUNTIF($A$1:A2,A2) to show a running count of unique values in column A however need this formula to only start calculation if
action date is grater than start date.

Example: User ref 2 first action date if prior to start date so must not count this record.

[TABLE="width: 604"]
<tbody>[TR]
[TD][TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][TABLE="width: 112"]
<tbody>[TR]
[TD]USER_REF[/TD]
[/TR]
</tbody>[/TABLE]
<strike></strike>[/TD]
[TD]<strike></strike>[TABLE="width: 110"]
<tbody>[TR]
[TD]ACTION_DATE[/TD]
[/TR]
</tbody>[/TABLE]
<strike></strike>[/TD]
[TD]<strike></strike>[TABLE="width: 94"]
<tbody>[TR]
[TD]STARTDATE[/TD]
[/TR]
</tbody>[/TABLE]
<strike></strike>[/TD]
[TD]<strike></strike>[TABLE="width: 140"]
<tbody>[TR]
[TD]USER_REF _COUNT[/TD]
[/TR]
</tbody>[/TABLE]
<strike></strike>[/TD]
[TD]<strike></strike>[TABLE="width: 148"]
<tbody>[TR]
[TD]COUNTIF_ACTION DATE > START_DATE[/TD]
[/TR]
</tbody>[/TABLE]
<strike></strike>[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD][TABLE="width: 110"]
<tbody>[TR]
[TD="align: right"]2019/01/01[/TD]
[/TR]
</tbody>[/TABLE]
<strike></strike>[/TD]
[TD]<strike></strike>[TABLE="width: 94"]
<tbody>[TR]
[TD="align: right"]2019/01/25[/TD]
[/TR]
</tbody>[/TABLE]
<strike></strike>[/TD]
[TD]1[/TD]
[TD]-[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD][TABLE="width: 110"]
<tbody>[TR]
[TD="align: right"]2019/02/01[/TD]
[/TR]
</tbody>[/TABLE]
<strike></strike>[/TD]
[TD]<strike></strike>[TABLE="width: 94"]
<tbody>[TR]
[TD="align: right"]2019/01/25[/TD]
[/TR]
</tbody>[/TABLE]
<strike></strike>[/TD]
[TD]2[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD][TABLE="width: 110"]
<tbody>[TR]
[TD="align: right"]2019/03/01[/TD]
[/TR]
</tbody>[/TABLE]
<strike></strike>[/TD]
[TD]<strike></strike>[TABLE="width: 94"]
<tbody>[TR]
[TD="align: right"]2019/01/25[/TD]
[/TR]
</tbody>[/TABLE]
<strike></strike>[/TD]
[TD]3[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD][TABLE="width: 110"]
<tbody>[TR]
[TD="align: right"]2019/01/01[/TD]
[/TR]
</tbody>[/TABLE]
<strike></strike>[/TD]
[TD]<strike></strike>[TABLE="width: 94"]
<tbody>[TR]
[TD="align: right"]2014/01/01[/TD]
[/TR]
</tbody>[/TABLE]
<strike></strike>[/TD]
[TD]1[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD][TABLE="width: 110"]
<tbody>[TR]
[TD="align: right"]2019/02/01[/TD]
[/TR]
</tbody>[/TABLE]
<strike></strike>[/TD]
[TD]<strike></strike>[TABLE="width: 94"]
<tbody>[TR]
[TD="align: right"]2014/01/01[/TD]
[/TR]
</tbody>[/TABLE]
<strike></strike>[/TD]
[TD]2[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD][TABLE="width: 110"]
<tbody>[TR]
[TD="align: right"]2019/01/01[/TD]
[/TR]
</tbody>[/TABLE]
<strike></strike>[/TD]
[TD]<strike></strike>[TABLE="width: 94"]
<tbody>[TR]
[TD="align: right"]2014/01/01[/TD]
[/TR]
</tbody>[/TABLE]
<strike></strike>[/TD]
[TD]1[/TD]
[TD]1[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD="align: right"][/TD]
[/TR]
</tbody>[/TABLE]
<strike>
</strike>
<strike></strike>
 
Last edited:

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Is there a possiblilty to add another criteria to this formula, for example only sum product if column F = true?

I have tried adding the below to the formula however this does not seem to work.

=SUMPRODUCT(--($A$2:$A2=A2),--($B$2:$B2>=$C$2:$C2),F:F,"True"))
 
Upvote 0
Try:

=SUMPRODUCT(--($A$2:$A2=A2),--($B$2:$B2>=$C$2:$C2),--($F$2:$F2="True"))

If you're looking for the value TRUE instead of a text value of "True", remove the quotes from around True in the formula.
 
Upvote 0

Forum statistics

Threads
1,223,880
Messages
6,175,153
Members
452,615
Latest member
bogeys2birdies

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