# CountIf cell contents LEN = 9

#### kwagner1

##### Active Member
Greetings,

i was looking for a formula to count the number of cells that i have in a column that have a cell length of 9.

- i want to identify SSN's that dont have 9 characters.

can you help??

thanks again folks!
K

### Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.

##### MrExcel MVP
=sumproduct(--(len(a1:a10)<>9))

#### berg891832

##### Well-known Member
what do the two -- do?

berg

#### Zack Barresse

##### MrExcel MVP
turns sumproducts TRUE/FALSE values to boolean 1/0 for numerical value(s). it's a simple force. just what the N() function does.

##### MrExcel MVP
converts the array of logicals returned by the length test to numbers so the sumproduct can sum them. things like {TRUE;TRUE:FALSE} become {1;1;0}.

#### kwagner1

##### Active Member
worked! thanks!

Replies
3
Views
211
Replies
2
Views
113
Replies
5
Views
111
Replies
5
Views
252
Replies
2
Views
92

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,152,161
Messages
5,768,547
Members
425,481
Latest member
ihumanl

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