Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default 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.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default 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.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default 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
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to remove empty spaces in a cell with numbers? Tobias Excel Worksheet Functions 2 October 24th 07 02:08 PM
Tough One. Data on one cell seperated by comas. David B Excel Discussion (Misc queries) 1 March 1st 07 06:55 AM
automatic comas for numbers greater than 999 jonj34 New Users to Excel 1 August 10th 06 09:06 PM
COUNT THE NUMBER OF LETTERS INCLUDING SPACES IN A CELL? zurafz6 Excel Worksheet Functions 7 March 6th 06 07:53 AM
How do I convert numbers stored as text with spaces to numbers Baffuor Excel Discussion (Misc queries) 1 May 24th 05 07:39 AM


All times are GMT +1. The time now is 06:22 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"