+ Reply to Thread
Results 1 to 3 of 3

Counting letters

Hybrid View

  1. #1
    Registered User
    Join Date
    07-12-2013
    Location
    Jersey
    MS-Off Ver
    Excel 2010
    Posts
    59

    Counting letters

    Hi all
    Please help on this one, been scratching my head all morning..........

    I have a table like this.........

    Item Code
    Ice A
    Ice A
    Ice B
    water D
    water A
    water C
    water A
    milk B
    milk D
    milk C
    milk C
    milk C
    milk B

    and i would like to count the number of each letter to look like........
    _______ A B C D
    Ice ___ 2 1 0 0
    water _ 2 0 1 1
    milk ___0 2 3 1

    Hope you can help

    Kevin

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Counting letters

    use sumproduct like this
    =SUMPRODUCT(($A$1:$A$13=$E2)*($B$1:$B$13=F$1))
    see attached
    Attached Files Attached Files
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    07-12-2013
    Location
    Jersey
    MS-Off Ver
    Excel 2010
    Posts
    59

    Re: Counting letters

    Excellent thank you so much
    Kevin

+ 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 in letters
    By soce in forum Excel Programming / VBA / Macros
    Replies: 24
    Last Post: 10-01-2008, 04:54 PM
  2. counting letters.
    By pytelium in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-13-2006, 04:23 PM

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