Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Tom Tom is offline
external usenet poster
 
Posts: 1
Default Counting entries in a cell

We often use a cell as an "adding machine" and would have
an enrty such as

=12+2+45+32+14

The result would obviously return the value of 105

Can anyone think of a way to COUNT the number of entries
(in this case 5) so that the frequency or average could
automatically be calculated ?

Thanks for the help.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Counting entries in a cell

numitems =
len(cell.formula)-len(application.substitute(cell.formula,"+",""))+1

if numItems 0 then
avg = cell.value / numItems

--
Regards,
Tom Ogilvy

"Tom" wrote in message
...
We often use a cell as an "adding machine" and would have
an enrty such as

=12+2+45+32+14

The result would obviously return the value of 105

Can anyone think of a way to COUNT the number of entries
(in this case 5) so that the frequency or average could
automatically be calculated ?

Thanks for the help.



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
Excel 2003 Counting multiple number entries in a single cell watermt Excel Worksheet Functions 9 August 28th 09 09:35 PM
Counting Continguous Cell Entries ConfusedNHouston Excel Discussion (Misc queries) 1 March 12th 08 07:35 PM
Counting cell entries jc132568 Excel Worksheet Functions 4 December 5th 07 08:23 PM
Counting Entries Jimbo Excel Worksheet Functions 6 April 29th 05 08:27 PM
Counting Entries in a Cell Sh0t2bts Excel Worksheet Functions 0 February 15th 05 10:08 AM


All times are GMT +1. The time now is 03:24 PM.

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"