+ Reply to Thread
Results 1 to 6 of 6

Count repeated vaule and total sum

  1. #1
    Registered User
    Join Date
    07-01-2010
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    50

    Count repeated vaule and total sum

    Hello,

    I have got more than 10,000 repeated value in a one column with other data.
    Example workbook attached.
    On attachement, "Sheet1" contains all the data and result should come on "Sheet2" (see on attachement).

    Basically, i would like to make formula that countif(columnA)>1 then display total sum based on repeated vaules in column A.

    Thanks in advance!
    Attached Files Attached Files

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Count repeated vaule and total sum

    Try a Pivot table. See attached

    Here is some help on Pivot Tables:

    http://peltiertech.com/Excel/Pivots/pivotstart.htm
    Attached Files Attached Files
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    07-01-2010
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    50

    Re: Count repeated vaule and total sum

    Thanks for the reply.
    I have already tried with Pivot Table but the problem is if any value have been change then it won't reflect on Pivot table that's the reason i was thinking to have reference formula to get update total sum.

    How can run a formula instead of Pivot Table?

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Count repeated vaule and total sum

    You can refresh the Pivot table after making changes in Sheet1....

    But.... if you want formulas, then If you create a column of unique Departments in Sheet2, column A starting in A2, then in B2:

    =SUMIF(Sheet1!$A:$A,$A2,Sheet1!B:B)

    copied down and across.


    To create a unique list in Column A of Sheet2, start by ensuring a title similar to title in column A of Sheet1 is in A1 of Sheet2, then while in Sheet2, go to Data|Filter|Advanced Filter... click OK.

    Then for the list range, select column A range of Sheet1.

    Select Copy to another location and select A1 of current Sheet.

    Then select Unique Records Only

    and click Ok.

  5. #5
    Registered User
    Join Date
    07-01-2010
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    50

    Re: Count repeated vaule and total sum

    It will work!
    i came up with below...

    =IF(COUNTIF(Sheet1!$A:$A,$A2)>1,SUMIF(Sheet1!$A:$A,$A2,Sheet1!B:B))

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Count repeated vaule and total sum

    You don't need the COUNTIF qualification...

    The SUMIF incorporates that already and will sum only if column A has the required text string...

+ 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