# Count if dependant on text length

#### nathan663

##### Board Regular
I am looking for a formula (countif - i guess) that will look up cells but will only count them if the text length is more than 3.

Any words equal to or less than three characters will not be included in the count

Nathan

### Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.

#### Domenic

##### MrExcel MVP
Assuming that A2:A10 contains the data, try...

=SUMPRODUCT(--(LEN(A2:A10)>3))

Hope this helps!

xl-central.com

#### Prabby1981

##### New Member
Try this formula if the text is in column A:

Code:
``=SUM(IF(LEN(\$A:\$A)>3,1,0))``

Close the formula with CTRL + SHIFT + Enter and not usual Enter.

Hope this helps !

Replies
3
Views
136
Replies
3
Views
231
Replies
1
Views
38
Replies
4
Views
159
Replies
4
Views
479

1,190,646
Messages
5,982,114
Members
439,755
Latest member
nicos18

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