Count of duplicate values in a column between a date range

Sumit7285

New Member
Joined
Nov 5, 2011
Messages
4
I have 2 columns: 1st column contains dates and 2nd column contains Names. I need to count the number of duplicate entries between a date range.

thanks,
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
I have 2 columns: 1st column contains dates and 2nd column contains Names. I need to count the number of duplicate entries between a date range.

thanks,

A2:A100 >> dates
B2:B100 >> names

E2: date1
F2: date2

where date1 <= date2.

In G2 control+shift+enter, not just enter:
Rich (BB code):
=SUM(IF(FREQUENCY(IF(1-($B$2:$B$100=""),IF($A$2:$A$100>=date1,
    IF($A$2:$A$100<=date2,MATCH("~"&$B$2:$B$100,$B$2:$B$100&"",0)))),
    ROW($B$2:$B$100)-ROW($B$2)+1),1))

You can omit the "~"& and &"" bits if the names do not contain or are srurrounded with chars with special meaning like <, *, etc.
 
Upvote 0
Hi Aladin, Thanks for the response but the formula is returning 0 value. Please refer the below table for the sample data.

visit_datepos_id
2/17/2016948847
2/17/20161071125
2/17/20161096333
2/17/2016975751
2/17/20161098291
2/17/20161031913
2/17/20161052474
2/17/2016943079
2/16/20161176526
2/8/20161085475

<colgroup><col><col></colgroup><tbody>
</tbody>
 
Upvote 0
Hi Aladin, Thanks for the response but the formula is returning 0 value. Please refer the below table for the sample data.

visit_datepos_id
2/17/2016948847
2/17/20161071125
2/17/20161096333
2/17/2016975751
2/17/20161098291
2/17/20161031913
2/17/20161052474
2/17/2016943079
2/16/20161176526
2/8/20161085475

<tbody>
</tbody>

Care to post the formula you applied to this sample?
 
Upvote 0

Forum statistics

Threads
1,215,066
Messages
6,122,948
Members
449,095
Latest member
nmaske

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