+ Reply to Thread
Results 1 to 6 of 6

Number of times a letter occurs in list of names

Hybrid View

  1. #1
    Registered User
    Join Date
    12-28-2013
    Location
    Melbourne
    MS-Off Ver
    Excel 2010
    Posts
    2

    Number of times a letter occurs in list of names

    I have a list of names for my wedding and am making place cards out of scrabble pieces and need to know how many times each individual letter appears in the 150names to know how many of each letter to buy

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,736

    Re: Number of times a letter occurs in list of names

    If you have names in A2:A200 then try listing each letter of the alphabet in C2 down and use this formula in D2 copied down for a count of each letter

    =SUMPRODUCT(LEN(A$2:A$200)-LEN(SUBSTITUTE(A$2:A$200,C2,"")))
    Audere est facere

  3. #3
    Registered User
    Join Date
    12-28-2013
    Location
    Melbourne
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Number of times a letter occurs in list of names

    Cheers thankyou,

    The formula worked, only problem is it didnt include capital letters so i had to do another column and just add the two together Thanks

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Number of times a letter occurs in list of names

    Did you try the suggestion in reply #3?
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Number of times a letter occurs in list of names

    Try this...

    Data Range
    A
    B
    C
    D
    1
    Name
    -----
    Letter
    Count
    2
    Aaa
    A
    6
    3
    Baa
    B
    7
    4
    Ccb
    C
    5
    5
    Bca
    6
    Cbb
    7
    Bbc


    This formula entered in D2 and copied down:

    =SUMPRODUCT(LEN(A$2:A$7)-LEN(SUBSTITUTE(UPPER(A$2:A$7),C2,"")))

  6. #6
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,736

    Re: Number of times a letter occurs in list of names

    Yes, SUBSTITUTE function is case-sensitive so I should have included UPPER or LOWER function to deal with that

    Tony's suggestion covers that

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. counting the number of times the last number in a series occurs
    By dredwolf in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-16-2012, 09:46 PM
  2. Count how many times a letter occurs
    By GreenMartian in forum Excel General
    Replies: 2
    Last Post: 03-15-2009, 04:30 AM
  3. [SOLVED] I want to see how many times each number occurs in an array.
    By eingram in forum Excel General
    Replies: 3
    Last Post: 06-20-2006, 09:55 PM
  4. Counting the number of times more than 1 variable occurs
    By chrisdedobb in forum Excel General
    Replies: 5
    Last Post: 01-03-2006, 02:20 PM
  5. [SOLVED] How do I count the times a number occurs in a given criteria?
    By w_aller in forum Excel General
    Replies: 3
    Last Post: 02-03-2005, 06:06 AM

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