+ Reply to Thread
Results 1 to 12 of 12

Countifs if duplicates

  1. #1
    Forum Contributor
    Join Date
    08-29-2017
    Location
    Canada
    MS-Off Ver
    Window 2013
    Posts
    127

    Countifs if duplicates

    How do I set a countif but dont want to count duplicate names? Example a sales team of 5 sold x number of iteams but then Adams name may come up several times due to mutiple things sold. I just want the countif to count name once?

    Thanks,

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Countifs if duplicates

    with a pivot table like in the similar below question

    https://www.excelforum.com/excel-gen...-criteria.html
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Contributor
    Join Date
    08-29-2017
    Location
    Canada
    MS-Off Ver
    Window 2013
    Posts
    127
    Quote Originally Posted by oeldere View Post
    with a pivot table like in the similar below question

    https://www.excelforum.com/excel-gen...-criteria.html
    Excellent thank you, however is their a formula you can provide as well?

  4. #4
    Forum Contributor
    Join Date
    08-29-2017
    Location
    Canada
    MS-Off Ver
    Window 2013
    Posts
    127
    So one category is the name the other what he sold , I want countif not to count the duplicate names

  5. #5
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Countifs if duplicates

    Hi Noah,

    If you can supply a sample workbook, it is much easier to supply a formula. Formulas are based on which row or column and how the data is arranged.

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  6. #6
    Forum Contributor
    Join Date
    08-29-2017
    Location
    Canada
    MS-Off Ver
    Window 2013
    Posts
    127

    Re: Countifs if duplicates

    Sorry having some issues in upload I'll give you an example

    Raw data
    Colomn A (iteam sold) Colomn B (name)
    1 Ford Mustang David
    2. Ford Mustang. David
    3. Jeep Cherokee Kevin
    4. Audi Q5. Kevin
    5 Audi Q5 John
    6. BMW X3 John
    7. Bmw X1 Priya
    8, Audi Q5 Jaspreet

    Front Dashboard (structured data) formulas will be here
    Col A. Col B will have the formula
    Bmw 2
    Audi 3
    Jeep 1
    Ford Mustang 1


    Like the above,the countif will do that

    Hope that helps,

    Thanks!
    Last edited by Noah101; 09-10-2017 at 05:52 PM.

  7. #7
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Countifs if duplicates

    • click Go Advanced,
    • scroll down until you see Manage Attachments,
    • click that and select Browse,
    • select your file and click Open,
    • click Upload and you will see your attachment below Upload Files from a website
    • click Close this window,
    • click Submit reply

    After that you should see attachment in your post

  8. #8
    Forum Contributor
    Join Date
    08-29-2017
    Location
    Canada
    MS-Off Ver
    Window 2013
    Posts
    127

    Re: Countifs if duplicates

    I can't I'm sorry I know these steps, my pc doesnt let me.

  9. #9
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Countifs if duplicates

    Ok, you can try with PowerQuery

    Is that what you want?

    (sorry but no formula(s) )
    Attached Files Attached Files
    Last edited by sandy666; 09-10-2017 at 06:20 PM.

  10. #10
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Countifs if duplicates

    With A1:B8 is data
    A10 is car name
    B10 is name
    B10:
    =SUMPRODUCT(($A$1:$A$8=A10)/COUNTIFS($A$1:$A$8,$A$1:$A$8,$B$1:$B$8,$B$1:$B$8))

    Ctrl-shift-enter
    Quang PT

  11. #11
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Countifs if duplicates

    In the link I offered in #2, there is a formula solution in #5.

    In #11 the OP has comment it is working on his situation (which is simular to yours).

    Can you explain why you did not take the time to look at that question (in my link)?

  12. #12
    Forum Contributor
    Join Date
    08-29-2017
    Location
    Canada
    MS-Off Ver
    Window 2013
    Posts
    127

    Re: Countifs if duplicates

    its now solved, thanks everyone! yes I read it but I went thought it a little too fast. My apologies,

    Thank you!

    Noah

+ 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] CountIfs(?) Ignoring Duplicates
    By thesonofdarwin in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-02-2017, 12:31 AM
  2. COUNTIFS to remove duplicates
    By RookieHelp! in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-16-2015, 06:37 AM
  3. Countifs function without duplicates
    By darkhangelsk in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-10-2014, 04:39 PM
  4. [SOLVED] COUNTIFS without duplicates
    By amphinomos in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-12-2014, 11:08 AM
  5. COUNTIFS with no duplicates
    By dasseya1 in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 08-23-2013, 04:09 AM
  6. [SOLVED] COUNTIFS and excluding duplicates
    By lawend in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-08-2013, 03:39 PM
  7. COUNTIFS and Duplicates
    By connorwfarrell in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-05-2012, 04:17 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