coffeeman12
New Member
- Joined
- Sep 19, 2020
- Messages
- 8
- Office Version
- 2016
- Platform
- MacOS
I've tried multiple suggestions from different boards for this.
Here is what I'd like to do:
Col A Col B
1/1/2020 A
1/1/2020 A
1/4/2020 A
1/5/2020 A
1/1/2020 B
1/2/2020 B
1/4/2020 B
1/5/2020 B
I'd like to count the distinct dates for A in one cell, B in a different cell.
A would = 3
B would = 4
The closest I've come is:
=SUM(IF(FREQUENCY(MATCH(A1:A8,A1:A8,0),MATCH(A1:A8,A1:A8,0))>0,1))
This gives "4"
This formula doesn't allow you to specify whether you want to count the distinct dates for A or B (in column B).
It also does not work if you change the ranges to "A:A" in order to capture the entire column, to allow for changing numbers of rows.
Here is what I'd like to do:
Col A Col B
1/1/2020 A
1/1/2020 A
1/4/2020 A
1/5/2020 A
1/1/2020 B
1/2/2020 B
1/4/2020 B
1/5/2020 B
I'd like to count the distinct dates for A in one cell, B in a different cell.
A would = 3
B would = 4
The closest I've come is:
=SUM(IF(FREQUENCY(MATCH(A1:A8,A1:A8,0),MATCH(A1:A8,A1:A8,0))>0,1))
This gives "4"
This formula doesn't allow you to specify whether you want to count the distinct dates for A or B (in column B).
It also does not work if you change the ranges to "A:A" in order to capture the entire column, to allow for changing numbers of rows.