# Question re previous post about counting uniques

#### kweaver

##### Well-known Member
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
Countif requires a range for the first argument, the formula in F2 returns an array, not a range.

Replies
10
Views
400
Replies
5
Views
163
Replies
3
Views
446
Replies
6
Views
264
Replies
2
Views
185

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.

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.

### Which adblocker are you using?

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

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