+ Reply to Thread
Results 1 to 8 of 8

Counting & Summing With Iqnore Duplicate Names

  1. #1
    Forum Contributor
    Join Date
    01-22-2013
    Location
    Pekanbaru, Indonesia
    MS-Off Ver
    Excel 2013 & Google Sheet
    Posts
    1,146

    Counting & Summing With Iqnore Duplicate Names

    hi all...

    i need your help, how to counting and summing data with contains duplicate name people
    i want to know : (iqnore duplicate)
    - count data in grade a, grade b and grade c
    - sum data in grade a, grade b and grade c

    note : the column "name" contains duplicate names...
    please, check my file...

    any help, much appreciated..

    john m
    Attached Files Attached Files

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Counting & Summing With Iqnore Duplicate Names

    Hi,

    See attached where I added a unique list of names in column J and then SUMIF() and COUNTIF formulae alongside.
    Attached Files Attached Files
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Valued Forum Contributor
    Join Date
    01-16-2012
    Location
    England
    MS-Off Ver
    MS 365
    Posts
    1,397

    Re: Counting & Summing With Iqnore Duplicate Names

    Jhon,

    What do you want to happen where a duplicated name has the same value on different dates?

    "ALIMUDDIN" has a Grade C score of 181,818 on 24/05/2016, and again on 03/10/2016. Do you want to count both of them, so his total is 363,636? Or just once, so he has 181,818?

    What do you then want where a duplicated name has different values on different dates as well?

    "FATIMAH" has three Grade A scores of 544,554 (2 on 01/01/16 and one on 02/01/2016) then another 500,000 on 24/05/2016, and 1,000,000 on 02/06/2016

    Do you count all of them, so her Grade A score is 3,133,662, or count only values that are different, so she has (544,554 + 500,000 + 1,000,000)=2,044,554

    Ochimus

  4. #4
    Forum Contributor
    Join Date
    01-22-2013
    Location
    Pekanbaru, Indonesia
    MS-Off Ver
    Excel 2013 & Google Sheet
    Posts
    1,146

    Re: Counting & Summing With Iqnore Duplicate Names

    thanks Ricard, but not fully working....
    the value always keep 1 not 2,3,4 etc....

    for grade a, total sum value is 27.106.339 (is correct) and i want find counting data's name ignore duplicate...

    for easy understanding :

    in grade a, count unique name is 26 ? How to find 26 using formula in pivot?

    in grade a, the result should be 27.106.339 (sum) and 26 (count).

    sorry, i hope you not create new table but continue the table before...
    Last edited by Jhon Mustofa; 01-26-2017 at 08:04 PM.

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,150

    Re: Counting & Summing With Iqnore Duplicate Names

    To return the number of unique values, use this array formula, copied across:

    =SUM(--(FREQUENCY(IF(D$2:D$800>0,MATCH($B$2:$B$800,$B$2:$B$800,0)),ROW($B$2:$B$800)-ROW($B$2)+1)>0))

    to return the sum, use this, copied across (assuming that I understand your request)
    =SUM(D:D)

    Array Formulae are a little different from ordinary formulae in that they MUST be confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER.

    You will know the array is active when you see curly brackets { } - or "curly braces" for those of you in the USA, or "flower brackets" for those of you in India - appear around the outside of your formula. If you do not use CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly brackets yourself - it won't work...
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  6. #6
    Forum Contributor
    Join Date
    01-22-2013
    Location
    Pekanbaru, Indonesia
    MS-Off Ver
    Excel 2013 & Google Sheet
    Posts
    1,146

    Re: Counting & Summing With Iqnore Duplicate Names

    hi glenn, it works..

    i have a problem, how to make it in pivot formula?
    it's possible if the unique values can breakdown in a list?
    like i mean for unique data representative is 1 and 0 for duplicate value...
    for grade a = 26, i want to know, who is that?

    i hope you could help me...

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,150

    Re: Counting & Summing With Iqnore Duplicate Names

    You can return a list of unique names using an array formula like this, copied across and down:

    =IFERROR(INDEX($B$2:$B$800,MATCH(0,INDEX(IF(D$2:D$800<>0,COUNTIF(J$4:J4,$B$2:$B$800)),0),0)),"")

    but to make a Pivot Table DIRECTLY from the data set that you have, you would need Excel 2016.

    See:


    https://blogs.office.com/2015/12/15/...in-excel-2016/



    Array Formulae are a little different from ordinary formulae in that they MUST be confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER.

    You will know the array is active when you see curly brackets { } - or "curly braces" for those of you in the USA, or "flower brackets" for those of you in India - appear around the outside of your formula. If you do not use CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly brackets yourself - it won't work...
    Attached Files Attached Files

  8. #8
    Forum Contributor
    Join Date
    01-22-2013
    Location
    Pekanbaru, Indonesia
    MS-Off Ver
    Excel 2013 & Google Sheet
    Posts
    1,146

    Re: Counting & Summing With Iqnore Duplicate Names

    thank you so much....Glen

+ 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. Replies: 7
    Last Post: 12-23-2015, 07:43 AM
  2. Need to copy store names from sheet1 to sheet3 and remove duplicate names
    By aleanboy in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-21-2014, 08:47 AM
  3. Replies: 1
    Last Post: 10-06-2014, 09:44 AM
  4. [SOLVED] Counting names in a column but counting duplicate names once
    By TBoe in forum Excel General
    Replies: 10
    Last Post: 01-04-2014, 12:12 AM
  5. Summing of Multiple Criteria sum but not counting Duplicate Values
    By chadman in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-25-2013, 07:34 AM
  6. Replies: 11
    Last Post: 10-21-2012, 01:40 AM
  7. Counting Duplicate Names in a Column
    By graybush in forum Excel General
    Replies: 1
    Last Post: 08-04-2011, 11:25 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