Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 137
Default Count periods in a cell

Hi,

I cannot get Countif to return the number of periods in cell A1
(formatted as text) : "1.1.1.1"

Thanks for your help

Cheers
Carim

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Count periods in a cell

=LEN(A1)-LEN(SUBSTITUTE(A1),".","")

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"Carim" wrote in message
oups.com...
Hi,

I cannot get Countif to return the number of periods in cell A1
(formatted as text) : "1.1.1.1"

Thanks for your help

Cheers
Carim



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 137
Default Count periods in a cell


As usual ... thanks to Tom O ...

found the answer :

=LEN(A1)-LEN(SUBSTITUTE(A1,".",""))

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 137
Default Count periods in a cell

Hi Bob,

Thanks a lot ... our messages crossed ...

Regards

Carim

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
count cells, then reset count when value in another cell changes Mitchell_Collen via OfficeKB.com Excel Worksheet Functions 4 February 20th 09 04:22 AM
How to count the number of months between 2 periods? Eric Excel Discussion (Misc queries) 3 February 5th 08 06:52 PM
How do I add periods to complete a word in a cell? Renee R. Excel Discussion (Misc queries) 5 September 2nd 05 08:17 PM
13 periods Steved Charts and Charting in Excel 1 August 11th 05 05:22 AM
COUNT SEPARATE PERIODS IN COLUMN Paul Bird Excel Programming 1 August 17th 03 05:49 PM


All times are GMT +1. The time now is 05:52 AM.

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

About Us

"It's about Microsoft Excel"