+ Reply to Thread
Results 1 to 2 of 2

SUM of repeating values

  1. #1
    Registered User
    Join Date
    07-23-2012
    Location
    australia
    MS-Off Ver
    Excel 2007
    Posts
    4

    SUM of repeating values

    A 10
    B 12
    C 15
    D 16
    E 5
    A 7
    B 9
    C 5
    A 11
    B 12
    A 10




    Count Sum
    1 2
    2 1
    3 1
    4 1

    The count column is counting the number of times a certain item appears in a column (ie there are 2 items that appear once D & E, 1 item that appears twice C, etc). The formula i am using in the Count column is =(SUMPRODUCT((COUNTIF($A$1:$A$14,$A$1:$A$14)=$A17)+0))/ (1,2,3 or 4)

    I want a forumla to count the sum of the items that appear once, twice, three times etc. It should give the results as below


    Count Sum
    1 2 21
    2 1 20
    3 1 33
    4 1 38


    Thanks
    Andrew

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Help with Sum

    In C17 and copied down:

    =SUMPRODUCT((COUNTIF($A$1:$A$14,$A$1:$A$14)=$A17)+0, $B$1:$B$14)
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ 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. [SOLVED] Repeating values in the next row
    By RSWillis in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 06-07-2013, 04:29 PM
  2. How to keep values from repeating
    By Ozyr in forum Excel General
    Replies: 12
    Last Post: 01-06-2013, 12:06 PM
  3. creating a repeating formula that doesn't show repeating values
    By cybershot in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 12-09-2010, 06:12 PM
  4. How to sum up only non-repeating values?
    By VCK in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-30-2009, 05:17 PM
  5. Repeating Values
    By Elaine in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-01-2005, 03:06 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