Hopefully an easy one. I've set up a system to count occurrences between two dates which are marked as a "1" and then summed up at the top. However, I don't need to count duplicates, but only duplicates within the same date ranges. I know duplicates can be highlighted or deleted, but there will be other dates when they do occur and need to keep those - this is just one day extract.
Tried a few ways, but can't seem avoid counting these duplicates.
Thanks
Tried a few ways, but can't seem avoid counting these duplicates.
Thanks
Book1 | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | L | ||||||||
1 | 12 | |||||||||||||
2 | ||||||||||||||
3 | Sun | |||||||||||||
4 | 7 | |||||||||||||
5 | Suf | From | Till | Weekday | 12-Nov-23 | |||||||||
6 | 34804 | 05-11-2023 | 26-11-2023 | SUN | ABC | 1 | ||||||||
7 | 39200 | 12-11-2023 | 17-12-2023 | SUN | ABC | 1 | ||||||||
8 | 22054 | 05-11-2023 | 19-11-2023 | SUN | ABC | 1 | ||||||||
9 | 22054 | 12-11-2023 | 12-11-2023 | SUN | ABC | 1 | ||||||||
10 | 12824 | 05-11-2023 | 26-11-2023 | SUN | ABC | 1 | ||||||||
11 | 17220 | 05-11-2023 | 24-03-2024 | SUN | ABC | 1 | ||||||||
12 | 21616 | 05-11-2023 | 10-12-2023 | SUN | ABC | 1 | ||||||||
13 | 26012 | 05-11-2023 | 03-12-2023 | SUN | ABC | 1 | ||||||||
14 | 30408 | 12-11-2023 | 19-11-2023 | SUN | ABC | 1 | ||||||||
15 | 34804 | 12-11-2023 | 12-11-2023 | SUN | ABC | 1 | ||||||||
16 | 39200 | 12-11-2023 | 24-03-2024 | SUN | ABC | 1 | ||||||||
17 | 43596 | 05-11-2023 | 26-11-2023 | SUN | ABC | 1 | ||||||||
Sheet2 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
L1 | L1 | =SUMIF($F6:$F17,"ABC",L6:L17) |
L3 | L3 | =TEXT(L5,"DDD") |
L4 | L4 | =WEEKDAY(L5,2) |
L6:L17 | L6 | =IF(AND(L$5>=$C6,L$5<=$D6,ISNUMBER(SEARCH(L$3,$E6))),1,0) |
Cells with Conditional Formatting | ||||
---|---|---|---|---|
Cell | Condition | Cell Format | Stop If True | |
A6:A17 | Cell Value | duplicates | text | NO |
G6:L229 | Cell Value | =0 | text | NO |
G6:L229 | Cell Value | =1 | text | NO |
G5:L5 | Dates Occurring | today | text | NO |