+ Reply to Thread
Results 1 to 16 of 16

count values on the basis of complex criteria

Hybrid View

  1. #1
    Registered User
    Join Date
    11-26-2015
    Location
    india
    MS-Off Ver
    2016
    Posts
    7

    count values on the basis of complex criteria

    I am attaching excel for ref, please download it and open chart sheet . I want to calculate count on the basis of vlookup values but its not working so please help. mydem.xls
    Last edited by nkd108; 11-26-2015 at 04:21 AM. Reason: missed sheet name

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: count values on the basis of complex criteria

    I don't understand what you're trying to do with this.
    What are you looking for in column A of Sheet1 in your formulas?

    Could you explain a little more about what your expected result should be and how it SHOULD be calculated?

    BSB

  3. #3
    Valued Forum Contributor ImranBhatti's Avatar
    Join Date
    03-27-2014
    Location
    Rawalpindi,Pakistan
    MS-Off Ver
    Office 365
    Posts
    1,784

    Re: count values on the basis of complex criteria

    TRY THIS
    =COUNTIF(Sheet1!D:D,"NO")

    Best Regards
    Imran Bhatti
    Teach me Excel VBA

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

    Re: count values on the basis of complex criteria

    A guess... In sheet 1 D2, copy down:

    =IF(ISNUMBER(MATCH(A2,Sheet2!$A$2:$A$13,0)),"No","Yes")

    If incorrect, please explain what you are trying to achieve and where we should be looking. Which formula is wrong? What do you want it to do?
    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

  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 2406
    Posts
    44,298

    Re: count values on the basis of complex criteria

    OK, I now understand that it is the chart sheet (your edit at Post 1)... Please explain what you want the formula to do....

  6. #6
    Registered User
    Join Date
    11-26-2015
    Location
    india
    MS-Off Ver
    2016
    Posts
    7

    Re: count values on the basis of complex criteria

    In sheet1 i am comparing id from sheet2, created a Missing ID column for this. Then after want to create a report in chart sheet.
    want to count matching ID(Missing Id=NO) from both the sheet(sheet1 & sheet2). and want result in %.

  7. #7
    Registered User
    Join Date
    11-26-2015
    Location
    india
    MS-Off Ver
    2016
    Posts
    7

    Re: count values on the basis of complex criteria

    =COUNTIF(Sheet1!A:A,Sheet1!D:D="NO")/COUNTIF(Sheet2!A:A,Sheet1!D:D="NO") //not working but let me explain what i want to do

    sheet1 has missing ID column, means we have information which id is present in both of the sheet.

    Now i want to count only matched(common in both sheet) ID in chart sheet and want result in %.

    so count sheet1 id on the basis on Missing ID="NO" and also count sheet2 id on the basis on Missing ID="NO"(from sheet1).

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

    Re: count values on the basis of complex criteria

    is this what you want (Total number of "No" in sheet 1)*100 / (Total number of UNIQUE IDs)??

    224 and 45 are present in sheet 2 but not in sheet 1. Do the need to e couted as part of the "No" group or as part of the "Total" group?

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

    Re: count values on the basis of complex criteria

    =COUNTIF(Sheet1!D:D,"No") - suggested at Post 3 - will count the number of "No" in sheet 1, but I still don't understand what sum you want to calculate from sheet 2.... What is your EXPECTED answer from sheet 2?

  10. #10
    Registered User
    Join Date
    11-26-2015
    Location
    india
    MS-Off Ver
    2016
    Posts
    7

    Re: count values on the basis of complex criteria

    From sheet2 I want to count employeeID which all are present in sheet1.

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

    Re: count values on the basis of complex criteria

    There are ten people listed on sheet 1, who are also listed on sheet 2. THEREFORE there are 10 people listed on sheet 2, who are also listed on sheet 1. But they are the SAME ten people.

    What is your expected answer?
    Attached Files Attached Files

  12. #12
    Registered User
    Join Date
    11-26-2015
    Location
    india
    MS-Off Ver
    2016
    Posts
    7

    Re: count values on the basis of complex criteria

    2 ID are different. for dummy purpose i added two more rows in sheet2.
    Attached Files Attached Files

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

    Re: count values on the basis of complex criteria

    For the fourth time, please tell me your expected answer...

  14. #14
    Registered User
    Join Date
    11-26-2015
    Location
    india
    MS-Off Ver
    2016
    Posts
    7

    Re: count values on the basis of complex criteria

    =COUNTIF(Sheet1!D:D,"NO")/COUNTIF(Sheet2!A:A,Sheet1!D:D="NO")
    i want to count sheet1 empid with Missing ID="NO" and also Sheet2 empid with Missing ID="NO"

    Missing ID is calculated in sheet1. Please suggest.

  15. #15
    Registered User
    Join Date
    11-26-2015
    Location
    india
    MS-Off Ver
    2016
    Posts
    7

    Re: count values on the basis of complex criteria

    but its showing #DIV/0!

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

    Re: count values on the basis of complex criteria

    For the fifth time, please manually calculate your expected answer..... For example:

    "Seven from sheet 1 divided by 10 from sheet 2, expressed as a percentge, i.e. 70%"

    If/when you do this, please make it clear if your manually calculated answer refers to the sheet posted at Post 1 or the the one at Post 12

+ 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: 2
    Last Post: 01-21-2014, 02:53 PM
  2. Complex Count based on criteria
    By dans123 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-23-2013, 07:23 AM
  3. [SOLVED] Challenging complex formula- unique count for multiple criteria on several levels
    By joannelittell in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 10-30-2013, 09:52 PM
  4. complex problems count based on many levels of criteria
    By joannelittell in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 10-28-2013, 04:42 PM
  5. [SOLVED] Count unique values on basis of onter cell status
    By azeemsarwar in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-15-2013, 09:52 AM
  6. Replies: 5
    Last Post: 05-05-2010, 10:32 AM
  7. Complex multi criteria lookup and count formula???
    By JapanDave in forum Excel General
    Replies: 9
    Last Post: 05-25-2009, 04:36 AM
  8. Count using complex criteria
    By Rob in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-04-2005, 10:06 AM

Tags for this Thread

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