Question re previous post about counting uniques

kweaver

Well-known Member
Joined
May 8, 2018
Messages
2,177
Office Version
  1. 365
  2. 2010
I saw Fluff's solution. I had a different approach. However, I'm curious why you can't replace F2# in E2 with the code in F2:

Code:
FILTER(UNIQUE($A$2:$B$10),{1,0})

Book2
ABCDEF
1GLContractRand. Id
2GL1Contract 1textGL12GL1
3GL1Contract 1textGL21GL1
4GL1Contract 2textGL33GL2
5GL2Contract 3textGL3
6GL2Contract 3textGL3
7GL2Contract 3textGL3
8GL3Contract 4text
9GL3Contract 5text
10GL3Contract 6text
Sheet2
Cell Formulas
RangeFormula
D2:D4D2=UNIQUE(A2:A10)
E2:E4E2=COUNTIF(F2#,D2#)
F2:F7F2=FILTER(UNIQUE($A$2:$B$10),{1,0})
Dynamic array formulas.
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)

jasonb75

Well-known Member
Joined
Dec 30, 2008
Messages
14,611
Office Version
  1. 365
Platform
  1. Windows
Countif requires a range for the first argument, the formula in F2 returns an array, not a range.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,151,972
Messages
5,767,401
Members
425,410
Latest member
SmittyT

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
Top