+ Reply to Thread
Results 1 to 11 of 11

Avoid double counting of same value

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

    Avoid double counting of same value

    Hi,

    I have two rows (representing response to question 1 and 2) with "Yes" and "No" values. The columns represent individuals. I need to calculate number of individuals said "Yes" at least to one question. How can i avoid double counting of "Yes" since given individual can say "Yes" to question 1 and 2 however adding them up will be double counting since it is just one individual. Thanks, a

  2. #2
    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

    Can you post a SMALL sample file and show us what result you expect?

    A SMALL file will have about 20 rows and a few columns worth of data.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Avoid double counting of same value

    Hi, welcome to the forum

    Can you upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

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

    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

  5. #5
    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

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

    Re: Avoid double counting of same value

    Try entering this formula in B4:K4
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Does this do what you want?
    Dave

  7. #7
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Avoid double counting of same value

    Here's another.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    or this one.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by FlameRetired; 11-02-2015 at 03:21 AM.

  8. #8
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Avoid double counting of same value

    IN your attached file where you need answer and what is your expected result for that
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  9. #9
    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.

  10. #10
    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

  11. #11
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    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. 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