# Countif

#### How_Do_I

##### Well-known Member
Hello, where am I going wrong here please... My D1 should be 4...

Excel Workbook
ABCD
1USAAFUSAAF26
2USAAF Agenvillers
3USAAF Ailly-le-haut-Clocher
4USAAF Andres
5USAAF Ardouval
6USAAF
Sheet1

### Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
How_Do_I, Good evening.

Try to use:

D1 --> =COUNTIF(A1:A6, "<>"&B1)

Is that what you want?
I hope it helps.

Good evening to you too Marcílio_Lobão... Thanks for that formula, it worked for me.

Thanks for the feedback.

Replies
3
Views
372
Replies
5
Views
337
Replies
1
Views
362
Replies
4
Views
283
Replies
0
Views
192

1,217,753
Messages
6,138,417
Members
450,135
Latest member
IsidroGil

### 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