Re: Counting multiple values in a single cell
- From: Dave Peterson <petersod@xxxxxxxxxxxxxxxx>
- Date: Tue, 20 Jun 2006 06:12:30 -0500
With the string you want to find (3) in A1
and the multiple values (3; 4; 7) in B1
I put this in C1:
=LEN(TRIM(";"&B1&";"))-LEN(SUBSTITUTE(TRIM(";"&B1&";"),A1,""))
And if you may search for ; (semicolon), this would be safer:
=LEN(TRIM(";"&B1&";"))-LEN(SUBSTITUTE(TRIM(";"&B1&";"),A1,""))-2*(A1=";")
ac8038 wrote:
I have a cell which contains multiple values set out like this:
3; 4; 7
I would like to be able to count the number of values (3) in this cell.
Does anybody know how I could do this????
--
ac8038
------------------------------------------------------------------------
ac8038's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=6054
View this thread: http://www.excelforum.com/showthread.php?threadid=553526
--
Dave Peterson
.
- Follow-Ups:
- Re: Counting multiple values in a single cell
- From: Dave Peterson
- Re: Counting multiple values in a single cell
- References:
- Counting multiple values in a single cell
- From: ac8038
- Counting multiple values in a single cell
- Prev by Date: Re: Counting multiple values in a single cell
- Next by Date: Re: aantal.als dubbel in 1 formule
- Previous by thread: Re: Counting multiple values in a single cell
- Next by thread: Re: Counting multiple values in a single cell
- Index(es):
Relevant Pages
|