How to Count Unique Dates based on Criteria

sillerdu

New Member
Joined
Jul 21, 2016
Messages
2
Hi,

I have been unable to find an answer to this one. Here is my question, I would like to count the number of unique dates in a sheet based on a criteria. For the example below, I would like to count the number of unique dates for only item F102840.


itemdue_date
F1026014/13/2016
F102650XL11/15/2014
F102654XL7/20/2014
F102657XL10/27/2014
F102658XL10/2/2014
F10283410/26/2015
F1028406/16/2014
F1028406/24/2014

<colgroup><col><col></colgroup><tbody>
</tbody>
Thanks!!
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
itemdue_dateF102840
F1026014/13/20162
F102650XL11/15/2014
F102654XL7/20/2014
F102657XL10/27/2014
F102658XL10/2/2014
F10283410/26/2015
F1028406/16/2014
F1028406/24/2014

<tbody>
</tbody>

In E2 control+shift+enter, not just enter:

=SUM(IF(FREQUENCY(IF($A$2:$A$9=E1,$B$2:$B$9),$B$2:$B$9),1))
 
Upvote 0
itemdue_dateF102840
F1026014/13/20162
F102650XL11/15/2014
F102654XL7/20/2014
F102657XL10/27/2014
F102658XL10/2/2014
F10283410/26/2015
F1028406/16/2014
F1028406/24/2014

<tbody>
</tbody>

In E2 control+shift+enter, not just enter:

=SUM(IF(FREQUENCY(IF($A$2:$A$9=E1,$B$2:$B$9),$B$2:$B$9),1))
Hi,

This seems to not work for me. Any idea?
 
Upvote 0
You need to give us more info. What does "seems not to work" mean - wrong answer, error msg.??
What version of Excel are you using?
The above is an array formula, did you enter the formula with CTRL-SHIFT-ENTER?
Post a small sample of your data (using XL2BB if you can). Also, expected result.
In the example above the dates are numeric, if your data is text the formula will need to be changed.
 
Upvote 0
Thanks, seemed if column has blank cells or #n/a the formula would not work,did some clean up and it worked.
 
Upvote 0
I want to know, how to modify the above formula for multiple criteria. like instead of one value in E2, if we have a list of items for which we need to check how many occurrences for each item.
 
Upvote 0
Need to post a small sample of your data with the results you expect. Are your list of items going to be in separate cells or the same cell?
 
Upvote 0
Thanks, seemed if column has blank cells or #n/a the formula would not work,did some clean up and it worked.
What did you exactly clean up ?
What is the final formula you have applied ?

One way you can modify the formula posted for sillerdu is:

=SUM(IF(FREQUENCY(IF(ISTEXT($A$2:$A15),IF($A$2:$A$15=E1,IF(ISNUMBER($B$2:$B$15),$B$2:$B$15))),IF(ISNUMBER($B$2:$B$15),$B$2:$B$15)),1))

which also must be confirmed with control+shift+enter.
 
Upvote 0

Forum statistics

Threads
1,215,419
Messages
6,124,796
Members
449,189
Latest member
kristinh

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