Array formula for unique dates for specific names

amendoza19

New Member
Joined
Jul 12, 2019
Messages
14
Hello,

I am trying to count the number of unique dates between 1/1/2018 and 12/31/2019 for specific Well names. For example, Well Name (29-6 64N) has 5 rows of dates in which 4 of those are unique and the other is repeated. Is there a way to count how many dates are unique for each Well Name?

Well Name is in column B with 1039 rows
Dates are in column I with 1039 rows

keep in mind that I have a sheet without repeated Well Names so now im just trying to add how many times the names are repeated by using the dates as a reference

thank you
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Hi,

Below should work for you:


Book1
ABCDE
1WellDate
229-6 64N7/12/201929-6 64N4
329-6 64N7/12/2019
429-6 64N7/12/2019
529-6 64N7/12/2019
629-6 64N7/12/2019
729-6 64N7/12/2019
829-6 64N7/13/2019
929-6 64N7/14/2019
1029-6 64N7/15/2019
1129-6 32N7/16/2019
1229-6 32N7/14/2019
1329-6 32N7/15/2019
1429-6 32N7/15/2019
1529-6 32N7/15/2019
1629-6 32N7/15/2019
1729-6 32N7/15/2019
1829-6 32N7/15/2019
1929-6 32N7/15/2019
Sheet2
Cell Formulas
RangeFormula
E2{=SUM(IF(FREQUENCY(IF($A$2:$A$19=D2,B2:B19),B2:B19),1))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Last edited:
Upvote 0
Hi, Sorry missed this, will this work?


Book1
ABCDEF
1WellDate
229-6 64N7/12/201929-6 64N7/12/20191
329-6 64N7/12/2019
429-6 64N7/12/2019
529-6 64N7/12/2019
629-6 64N7/12/2019
729-6 64N7/12/2019
829-6 64N7/13/2019
929-6 64N7/14/2019
1029-6 64N7/15/2019
1129-6 32N7/16/2019
1229-6 32N7/14/2019
1329-6 32N7/15/2019
1429-6 32N7/15/2019
1529-6 32N7/15/2019
1629-6 32N7/12/2019
1729-6 32N7/20/2019
1829-6 32N7/15/2019
1929-6 32N7/15/2019
Sheet2
Cell Formulas
RangeFormula
F2{=SUM(IF(FREQUENCY(IF(($A$2:$A$19=D2)*($B$2:$B$19=E2),$B$2:$B$19),$B$2:$B$19),1))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
so in place of $B$2:$B$19=E2 use $B$2:$B$19 < <date(2019,1,1)< font=""></date(2019,1,1)<>Date(2019,1,1)

Code:
[/COLOR][COLOR=#333333]=SUM([/COLOR][COLOR=Blue]IF([COLOR=Red]FREQUENCY([COLOR=Green]IF([COLOR=Purple]([COLOR=Teal]$A$2:$A$19=D2[/COLOR])*([/COLOR][/COLOR][/COLOR][/COLOR][COLOR=#008080]$B$2:$B$19 < [/COLOR][COLOR=#333333]<date(2019,1,1)< font=""></date(2019,1,1)<>[/COLOR][COLOR=#333333]Date(2019,1,1)[/COLOR][COLOR=Blue][COLOR=Red][COLOR=Green][COLOR=Purple]),$B$2:$B$19[/COLOR]),$B$2:$B$19[/COLOR]),1[/COLOR])[/COLOR][COLOR=#333333])[/COLOR][COLOR=#333333]

Enter with Ctrl+Shift+Enter
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,198
Members
452,617
Latest member
Narendra Babu D

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