+ Reply to Thread
Results 1 to 9 of 9

Counting multiple values in a single cell

Hybrid View

  1. #1
    kounoike
    Guest

    Re: Counting multiple values in a single cell

    assuming delimiter is ";" ,

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

    keizi

    "ac8038" <ac8038.29p00z_1150793101.5207@excelforum-nospam.com> wrote in
    message news:ac8038.29p00z_1150793101.5207@excelforum-nospam.com...
    >
    > 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...fo&userid=6054
    > View this thread:

    http://www.excelforum.com/showthread...hreadid=553526
    >



  2. #2
    Dave Peterson
    Guest

    Re: Counting multiple values in a single cell

    And if the OP didn't want to include the space characters:

    =LEN(TRIM(A1))-LEN(SUBSTITUTE(TRIM(A1),";",""))+(A1<>"")



    kounoike wrote:
    >
    > assuming delimiter is ";" ,
    >
    > =LEN(A1)-LEN(SUBSTITUTE(A1,";",""))+1
    >
    > keizi
    >
    > "ac8038" <ac8038.29p00z_1150793101.5207@excelforum-nospam.com> wrote in
    > message news:ac8038.29p00z_1150793101.5207@excelforum-nospam.com...
    > >
    > > 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...fo&userid=6054
    > > View this thread:

    > http://www.excelforum.com/showthread...hreadid=553526
    > >


    --

    Dave Peterson

  3. #3
    kounoike
    Guest

    Re: Counting multiple values in a single cell

    Thank you for your correction, Dave. i never thought of that.

    keizi

    "Dave Peterson" <petersod@verizonXSPAM.net> wrote in message
    news:4497DDC0.5F1BE9F9@verizonXSPAM.net...
    > And if the OP didn't want to include the space characters:
    >
    > =LEN(TRIM(A1))-LEN(SUBSTITUTE(TRIM(A1),";",""))+(A1<>"")
    >
    >
    >
    > kounoike wrote:
    > >
    > > assuming delimiter is ";" ,
    > >
    > > =LEN(A1)-LEN(SUBSTITUTE(A1,";",""))+1
    > >
    > > keizi
    > >
    > > "ac8038" <ac8038.29p00z_1150793101.5207@excelforum-nospam.com> wrote

    in
    > > message news:ac8038.29p00z_1150793101.5207@excelforum-nospam.com...
    > > >
    > > > 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...fo&userid=6054
    > > > View this thread:

    > > http://www.excelforum.com/showthread...hreadid=553526
    > > >

    >
    > --
    >
    > Dave Peterson



+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1