counting single entries where duplicates appear within a specific date range

xxrichbxx

New Member
Joined
Sep 2, 2015
Messages
49
Office Version
  1. 365
Platform
  1. Windows
I am trying to create a count which will essentially only count a single entry from a range where there could be multiples.

I was looking at a combination of countifs and frequency, but was struggling to get my head around it.

I think that an example of my source data and what I expect to see would give a better understanding of the problem

Week Number Cell ID Date
29 12345 13/07/2020
29 98765 14/07/2020
29 12345 17/07/2020
30 12345 20/07/2020
30 12345 21/07/2020
30 98765 21/07/2020
30 11111 22/07/2020

Summary

Week 29 2
Week 30 3

Hopefully that makes sense.
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
I jumped the gun ! If a cell returns #CALC! that would suggest it can't find anything which meets the criteria. How would I set it to leave the cell blank?
 
Upvote 0
Like
=IFERROR(ROWS(UNIQUE(FILTER('Master Tracker'!$C$2:$C$486,'Master Tracker'!$A$2:$A$486=$A4))),"")
 
Upvote 0
I have another question about this. I want to add another criteria, this being a project name. If I had a project name in column E is there a way I could use a specific reference to pull out the unique cell id in a given week, with a specific project?

Count/sumifs is straightforward enough but the array you have described above has messed with my head !
 
Upvote 0
Can you please post sample data & expected results.
 
Upvote 0
This is the raw data

Book3
ABCDE
1Week NoPERMIT REFERENCECELL/SITE IDSTART DATEProject
228REQ000000757087ALD02707-Jul-20Leeds
328REQ000000767121ANT25710-Jul-20Barnsley
428REQ000000755222BAH01708-Jul-20Brentord
528REQ000000717947BAN02808-Jul-20Leeds
628REQ000000717946BAN02806-Jul-20Leeds
728REQ000000778562BAR02710-Jul-20Barnsley
828REQ000000753657BEX09307-Jul-20WBA
929REQ000000798150BAN02813-Jul-20WBA
1029REQ000000798156BAN02814-Jul-20WBA
1129REQ000000798159BAN02815-Jul-20WBA
Master Tracker
Cell Formulas
RangeFormula
A2:A11A2=WEEKNUM(D2,1)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
C:CCell ValueduplicatestextNO


Main Summary as before

Book3
KLM
5Overall Summary
6WeekNumber of SitesNumber of Permits
72867
82923
Master Tracker


Then the new summary which breaks down the by project

Book3
OPQ
5Project SummaryBarnsley
6WeekNumber of SitesNumber of Permits
72822
82911
9
10Project SummaryWBA
11WeekNumber of SitesNumber of Permits
122811
132912
Master Tracker


Hope it makes sense
 
Upvote 0
Ok, how about
=IFERROR(ROWS(UNIQUE(FILTER('Master Tracker'!$C$2:$C$486,('Master Tracker'!$A$2:$A$486=$O7)*('Master Tracker'!$E$2:$E$486='Master Tracker'!Q$5)))),"")
 
Upvote 0
Just by helping people on here & playing around. :)
 
Upvote 0

Forum statistics

Threads
1,214,911
Messages
6,122,196
Members
449,072
Latest member
DW Draft

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