+ Reply to Thread
Results 1 to 5 of 5

COUNTIF NESTED IN IF Function

  1. #1
    Registered User
    Join Date
    04-16-2017
    Location
    Singapore
    MS-Off Ver
    2016
    Posts
    5

    COUNTIF NESTED IN IF Function

    Hi, I am trying to do a count of the qualifications of my employees based on their status:

    For APO, how many of them has this particular qualification "WSQ CONDUCT CROWD AND TRAFFIC CONTROL", for instance.

    I tried using this formula:

    =IF('NEA 1424'!$A$2:$A$204 ="APO", COUNTIF('NEA 1424'!$AB$2:$AP$204,"WSQ CONDUCT CROWD AND TRAFFIC CONTROL"), 0)

    The formula didn't work and counted everyone who has the qualification i.e. ignoring the first criteria of "APO". The returned value was 115.

    Then I tested the formula on another employee type "APOE" and it returned value of 0.

    Did I do something wrong?

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

    Re: COUNTIF NESTED IN IF Function

    Will you please attach a SMALL sample Excel workbook (10-20 rows of data is usually enough)? Please don't attach a picture of one (no-one will want to re-type all your stuff before starting).

    1. Make sure that your sample data are truly REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution is also shown (mock up the results manually).

    3. Make sure that all confidential information is removed first!!

    4. Try to avoid using merged cells. They cause lots of problems!

    Unfortunately the attachment icon doesn't work at the moment. So, to attach an Excel file you have to do the following: Just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
    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.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    04-16-2017
    Location
    Singapore
    MS-Off Ver
    2016
    Posts
    5

    Re: COUNTIF NESTED IN IF Function

    here you go. File attached
    Attached Files Attached Files

  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 2403
    Posts
    44,054

    Re: COUNTIF NESTED IN IF Function

    Use this formula in C4, copied across to E4 and down:

    =SUMPRODUCT(('NEA 1424'!$D$2:$R$204='Division Qualifications Monitor'!$B4)*('NEA 1424'!$A$2:$A$204='Division Qualifications Monitor'!C$3))

    Replace D3 APO(E) with APOE...
    Attached Files Attached Files
    Last edited by Glenn Kennedy; 04-16-2017 at 10:49 AM.

  5. #5
    Registered User
    Join Date
    04-16-2017
    Location
    Singapore
    MS-Off Ver
    2016
    Posts
    5

    Re: COUNTIF NESTED IN IF Function

    Woah, let me digest. Thanks so much

+ 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. COUNTIF/COUNTIFS function + nested user-defined function
    By shamjamali in forum Excel General
    Replies: 1
    Last Post: 05-12-2015, 09:12 PM
  2. [SOLVED] Nested COUNTIF within IF Function
    By shaunguyver in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-09-2015, 10:47 AM
  3. Sum, Countif, and Array nested function help
    By lea334 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-02-2014, 12:10 PM
  4. [SOLVED] Nested Countif Function
    By DDM64 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-17-2013, 10:16 AM
  5. Nested IF function with COUNTIF
    By jad70 in forum Excel General
    Replies: 5
    Last Post: 02-06-2012, 06:17 AM
  6. nested countif function
    By gavster in forum Excel General
    Replies: 12
    Last Post: 11-20-2007, 10:41 AM
  7. [SOLVED] Countif Function -Nested
    By Angi in forum Excel General
    Replies: 7
    Last Post: 05-04-2005, 03:06 PM

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