LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 20
Default Problem with COUNT

Dear Darren Bartrup,
Thank you very much for the expanation. Now it's clear.
--
Cong Nguyen



"Darren Bartrup" wrote:

You're using the wrong formula.
COUNTA counts cells that are not empty - it doesn't count the occurences of
a character within a single cell.

This formula should do the trick:
=LEN(A1)-LEN(SUBSTITUTE(A1,",",""))

This counts how many characters are in cell A1, it then counts how many
characters are in cell A1 with the , removed.
Take one from the other and you have your result.

"Cong Nguyen" wrote:

In cell B1: I wanted to count the number of commas (,) in cell A1

A, B, C, D, F, G, H 2

Please check what's wrong with my COUNT formula, COUNTA(A1,","), somehow the
result is always "2".

Thank you

--
Cong Nguyen

 
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 Problem John Calder New Users to Excel 6 April 24th 07 02:10 AM
COUNT IF (AND / OR) SUM IF PROBLEM Anthony Mann Excel Worksheet Functions 2 April 17th 07 08:10 PM
count problem bill gras Excel Worksheet Functions 10 December 15th 05 10:31 AM
Count IF problem [email protected] Excel Worksheet Functions 2 September 6th 05 09:28 PM
count problem vipa2000 Excel Worksheet Functions 6 July 28th 05 09:28 AM


All times are GMT +1. The time now is 12:07 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"