+ Reply to Thread
Results 1 to 10 of 10

Counting Wingdings

  1. #1
    Forum Contributor
    Join Date
    03-30-2008
    Posts
    121

    Counting Wingdings

    I am using arrow wingdings (CHAR233 or CHAR234) in the same
    column and I would like to count them.

    I don't need a separate count of 233s or 234s I just need a
    count if the column is occupied by one or the other.

    I have tried various contexts of the formula posted below without
    success.

    How do I count multiple characters in the same cell?

    Thanks.

    =COUNTIF(A11,CHAR(233,CHAR(234))

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Counting Wingdings

    The number of char(234) in A11 is

    =LEN(A11) - LEN(SUBSTITUTE(A11, CHAR(234), ""))
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Contributor
    Join Date
    03-30-2008
    Posts
    121

    Re: Counting Wingdings

    I must not have stated my question correctly.

    The contents of A11 could be CHAR233 or CHAR234
    and I need to count the contents as 1 whichever character
    it contains.

    When I used =LEN(A11) - LEN(SUBSTITUTE(A11, CHAR(234), ""))
    the contents of A11 was one CHAR233 and the answer it gave
    me was 0 and it should been one.

    Thanks.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Counting Wingdings

    =2 * LEN(A11) - LEN(SUBSTITUTE(A11, CHAR(233), "")) - LEN(SUBSTITUTE(A11, CHAR(234), ""))

    or

    =2 * LEN(A11) - SUM(LEN(SUBSTITUTE(A11, {"é","ê"}, "") ) )

  5. #5
    Registered User
    Join Date
    10-28-2008
    Location
    Turkey
    Posts
    88

    Re: Counting Wingdings

    Try these:

    =COUNTIF(A11,"*"&CHAR(233)&"*")
    =COUNTIF(A11,"*"&CHAR(234)&"*")

    Or

    =COUNTIF(A11;"*"&CHAR(233)&"*")+COUNTIF(A11,"*"&CHAR(234)&"*")

    .

  6. #6
    Forum Contributor
    Join Date
    03-30-2008
    Posts
    121

    Re: Counting Wingdings

    Thanks for helping. The last two formulas work if I'm counting single cells, however,
    in most instances I am counting a range.

    For example, I have tried adjusting the formulas below to include A40:A51 and
    I get a wrong answer.

    COUNTIF(A11;"*"&CHAR(233)&"*")+COUNTIF(A11,"*"&CHAR(234)&"*")

    =2 * LEN(A11) - SUM(LEN(SUBSTITUTE(A11, {"é","ê"}, "") ) )

  7. #7
    Forum Contributor
    Join Date
    03-30-2008
    Posts
    121

    Re: Counting Wingdings

    I finally figured it out.

    =COUNTIF(B40:B51,"*"&CHAR(233)&"*")+COUNTIF(B40:B51,"*"&CHAR(234)&"*")

    Thanks for pointing me in the right direction.

  8. #8
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Counting Wingdings

    =sumproduct(len(a40:a51) - len(substitute(a40:a51, {"é","ê"}, "") ) )

  9. #9
    Registered User
    Join Date
    10-28-2008
    Location
    Turkey
    Posts
    88

    Re: Counting Wingdings

    Quote Originally Posted by scotfitz View Post
    Thanks for helping. The last two formulas work if I'm counting single cells, however,
    in most instances I am counting a range.

    For example, I have tried adjusting the formulas below to include A40:A51 and
    I get a wrong answer.

    COUNTIF(A11;"*"&CHAR(233)&"*")+COUNTIF(A11,"*"&CHAR(234)&"*")

    =2 * LEN(A11) - SUM(LEN(SUBSTITUTE(A11, {"é","ê"}, "") ) )
    Your question is not clear.

    Can you attach sample file and please give your result.

    .

  10. #10
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Counting Wingdings

    I finally figured it out.

    =COUNTIF(B40:B51,"*"&CHAR(233)&"*")+COUNTIF(B40:B51,"*"&CHAR(234)&"*")
    That doesn't count mutiple occurrences of the same character.

+ 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