• Count Capital Letter

    Author
    Topic
    #458218

    Is there a way to count the number of capitalized characters in a text cell?
    For example, a cell value of “TTest” would return a result of 2.

    TIA

    Viewing 0 reply threads
    Author
    Replies
    • #1151510

      For cell A1:

      =SUMPRODUCT((CODE(MID(A1,ROW(INDIRECT(“1:”&LEN(A1))),1))>64)*(CODE(MID(A1,ROW(INDIRECT(“1:”&LEN(A1))),1))<91))

      This only counts letters A…Z, not letters with accents such as É.

      • #1151513

        For cell A1:

        =SUMPRODUCT((CODE(MID(A1,ROW(INDIRECT(“1:”&LEN(A1))),1))>64)*(CODE(MID(A1,ROW(INDIRECT(“1:”&LEN(A1))),1))<91))

        This only counts letters A…Z, not letters with accents such as É.

        Hans

        Thanks.
        I am always lost when it come to text and together with mega-formula

    Viewing 0 reply threads
    Reply To: Count Capital Letter

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: