ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   How do I count just the numbers in a cell, no spaces or comas? (https://www.excelbanter.com/excel-worksheet-functions/227513-how-do-i-count-just-numbers-cell-no-spaces-comas.html)

bonair

How do I count just the numbers in a cell, no spaces or comas?
 
I have dates (1, 15, 21) in various cells. I want to count JUST the dates,
no spaces or comas.

Jacob Skaria

How do I count just the numbers in a cell, no spaces or comas?
 
Suppose A1 = 1, 15, 21
The below formula will give you the number of dates..

=LEN(D13)-LEN(SUBSTITUTE(D13,",",""))+1

If this post helps click Yes
---------------
Jacob Skaria


"bonair" wrote:

I have dates (1, 15, 21) in various cells. I want to count JUST the dates,
no spaces or comas.


Dave Peterson

How do I count just the numbers in a cell, no spaces or comas?
 
=LEN(A1)-LEN(SUBSTITUTE(A1,",",""))+(A1<"")

Will count the number of entries separated by commas.

bonair wrote:

I have dates (1, 15, 21) in various cells. I want to count JUST the dates,
no spaces or comas.


--

Dave Peterson


All times are GMT +1. The time now is 04:56 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com