+ Reply to Thread
Results 1 to 11 of 11

Avoid double counting of same value

Hybrid View

Karen57 Avoid double counting of same... 11-01-2015, 08:38 PM
Tony Valko Re: Avoid double counting of... 11-01-2015, 08:42 PM
FDibbins Re: Avoid double counting of... 11-01-2015, 08:43 PM
bebo021999 Re: Avoid double counting of... 11-01-2015, 10:31 PM
Karen57 Re: Avoid double counting of... 11-02-2015, 02:34 AM
FlameRetired Re: Avoid double counting of... 11-02-2015, 03:10 AM
Tony Valko Re: Avoid double counting of... 11-02-2015, 05:43 AM
Karen57 Re: Avoid double counting of... 11-02-2015, 08:32 AM
FlameRetired Re: Avoid double counting of... 11-02-2015, 09:23 AM
FlameRetired Re: Avoid double counting of... 11-02-2015, 03:19 AM
samba_ravi Re: Avoid double counting of... 11-02-2015, 03:23 AM
  1. #1
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,645

    Re: Avoid double counting of same value

    Hi, without sample worksheet, but i guess this is counting unique distinct customers with "Yes". See picture:



    Untitled.png
    Quang PT

  2. #2
    Registered User
    Join Date
    06-30-2015
    Location
    AA
    MS-Off Ver
    2010
    Posts
    8

    Re: Avoid double counting of same value

    Dear All, thanks for your support

    I have attached sample file. I need to calculate how many people (out of 10) replied "Yes" to either question (question 1 or 2). It is easy to do when it is "Yes" and "No". But when it is "Yes" for both questions formula calculates it as 2 instead of 1 since it is just one person. Thanks
    Attached Files Attached Files

  3. #3
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2503
    Posts
    13,702

    Re: Avoid double counting of same value

    Try entering this formula in B4:K4
    Formula: copy to clipboard
    =--OR(COUNTIFS($B$1:B$1,B$1,$B$2:B$2,"yes"),COUNTIFS($B$1:B$1,B$1,$B$3:B$3,"yes"))
    Does this do what you want?
    Dave

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Avoid double counting of same value

    Many members are unable to see images in the *.png format.

    If you need to post an image post it in the *.jpg format.

    Even better than posting images... post a SMALL sample file. That way we can test solutions directly in the file with the relevant data.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Registered User
    Join Date
    06-30-2015
    Location
    AA
    MS-Off Ver
    2010
    Posts
    8

    Re: Avoid double counting of same value

    Thanks a lot FlameRetired, that is exactly what i needed. Thanks

  6. #6
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2503
    Posts
    13,702

    Re: Avoid double counting of same value

    You're welcome. Glad it does the job. Thanks for the feedback and the rep.

+ 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. How to avoid counting same values in multiple countifs
    By eoindub in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 12-24-2014, 07:04 AM
  2. [SOLVED] COUNTIFS is double counting
    By infiniticihr in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-22-2014, 01:09 PM
  3. How to avoid double-counting inventory after it has been accounted for?
    By excelrookie2014 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-05-2014, 07:37 PM
  4. Countifs and Double Counting
    By jlacsina in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-18-2013, 09:55 PM
  5. [SOLVED] how to avoid null/double click
    By var in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-16-2012, 09:55 AM
  6. Avoid counting rows/columns with formula but no values
    By magnuc in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-22-2006, 06:30 AM
  7. [SOLVED] How to avoid counting blanks in a list
    By Frank in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 10-03-2005, 09:05 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