+ Reply to Thread
Results 1 to 4 of 4

Count the occurance of upper or lower case letters

Hybrid View

Guest Count the occurance of upper... 01-13-2005, 03:06 PM
Guest Re: Count the occurance of... 01-13-2005, 03:06 PM
Guest Re: Count the occurance of... 01-13-2005, 03:06 PM
Guest Re: Count the occurance of... 01-13-2005, 04:06 PM
  1. #1
    Sivsy
    Guest

    Count the occurance of upper or lower case letters

    Is there a way to distinguish between and count the occurance of lower and
    upper case letters in an array ? eg If I have a series of columns populated
    with either uppercase "S" or loercase "s", can i use a formula to count the
    occurance of each type ?

  2. #2
    Aladin Akyurek
    Guest

    Re: Count the occurance of upper or lower case letters

    =SUMPRODUCT(--(EXACT(A1:A5,"S")))

    Sivsy wrote:
    > Is there a way to distinguish between and count the occurance of lower and
    > upper case letters in an array ? eg If I have a series of columns populated
    > with either uppercase "S" or loercase "s", can i use a formula to count the
    > occurance of each type ?


  3. #3
    Bob Phillips
    Guest

    Re: Count the occurance of upper or lower case letters

    Sivsy,

    This will count cells starting with a lower case s

    =SUMPRODUCT(--(ISNUMBER(FIND("s",LEFT(A1:A18,1)))))

    If you want only s, then use

    =SUMPRODUCT(--(ISNUMBER(FIND("s",LEFT(A1:A18,1)))),--(LEN(A1:A18)=1))

    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    "Sivsy" <Sivsy@discussions.microsoft.com> wrote in message
    news:B3D998C8-FC50-493A-83D1-991C2F20E3B6@microsoft.com...
    > Is there a way to distinguish between and count the occurance of lower and
    > upper case letters in an array ? eg If I have a series of columns

    populated
    > with either uppercase "S" or loercase "s", can i use a formula to count

    the
    > occurance of each type ?




  4. #4
    Ken Wright
    Guest

    Re: Count the occurance of upper or lower case letters

    Also if you just wanted a count of all the lowercase letters regardless of
    what they are, then assuming no blanks

    =SUMPRODUCT(--(CODE(A1:L100)>=97))

    --
    Regards
    Ken....................... Microsoft MVP - Excel
    Sys Spec - Win XP Pro / XL 97/00/02/03

    ----------------------------------------------------------------------------
    It's easier to beg forgiveness than ask permission :-)
    ----------------------------------------------------------------------------

    "Sivsy" <Sivsy@discussions.microsoft.com> wrote in message
    news:B3D998C8-FC50-493A-83D1-991C2F20E3B6@microsoft.com...
    > Is there a way to distinguish between and count the occurance of lower and
    > upper case letters in an array ? eg If I have a series of columns

    populated
    > with either uppercase "S" or loercase "s", can i use a formula to count

    the
    > occurance of each type ?




+ 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