PC Review


Reply
Thread Tools Rate Thread

How to count the number of 'values' in a cell

 
 
Sandih
Guest
Posts: n/a
 
      11th Jul 2006

Hi

I am after something that seems simple, but I can't figure out a way t
do it.

If I have a single cell containing a list of values seperated by
comma (ie a csv list in a cell), how do I count the number of values.
I figure it must be by counting the commas somehow and then adding on
as the last doesn't have it, but there is no way to tell how many ther
will be.

My cell contents look like this
18911, 18801, 18825, 18482, 18941

so I want to have another cell return the number 5.

Does anyone have any ideas?

Regards
Sand

--
Sandi
-----------------------------------------------------------------------
Sandih's Profile: http://www.excelforum.com/member.php...fo&userid=3622
View this thread: http://www.excelforum.com/showthread.php?threadid=56015

 
Reply With Quote
 
 
 
 
Sandih
Guest
Posts: n/a
 
      11th Jul 2006

I think I have the answer I think the following function calculatio
would work....

if
a1 contains 18911, 18801, 18825, 18482, 18941

then the following could give me the number of values in the cell

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

--
Sandi
-----------------------------------------------------------------------
Sandih's Profile: http://www.excelforum.com/member.php...fo&userid=3622
View this thread: http://www.excelforum.com/showthread.php?threadid=56015

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Count number of values da Microsoft Excel Misc 2 30th Apr 2009 10:49 PM
Count number of values =?Utf-8?B?TWFyeQ==?= Microsoft Excel Worksheet Functions 1 4th Oct 2005 09:00 PM
Count number of values in a cell =?Utf-8?B?bnljX2RvYw==?= Microsoft Excel Worksheet Functions 3 31st Jul 2005 12:34 AM
Count number of times a specific number is displayed in a cell ran =?Utf-8?B?c3Vicw==?= Microsoft Excel Worksheet Functions 1 27th Jun 2005 05:01 PM
Count the number of specific values in a cell =?Utf-8?B?S2V2aW4=?= Microsoft Excel Worksheet Functions 4 3rd Jun 2005 04:20 AM


Features
 

Advertising
 

Newsgroups
 


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