+ Reply to Thread
Results 1 to 2 of 2

Complicated COUNTIFS

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    06-16-2011
    Location
    London
    MS-Off Ver
    Excel XP
    Posts
    276

    Complicated COUNTIFS

    I'm trying to put together a summary sheet for a table of data. The data is arranged as field = column, record = row, as you would expect.

    The COUNTIFS I'm using so far are working well....stuff like:

    Formula: copy to clipboard

    =IF(ISBLANK(E6), "", COUNTIFS(JobData!E:E,E6,JobData!AA:AA,"Commercial*"))


    however.....this one is beyond me.



    The data consists of a primary key (JOB_ID) in column A, a second unique identifier (SERVICE_ORDER_ID) in column B, and around 30 other fields. The field I'm looking at is the EngineerName field (Column E) that contains the name of the engineer that completed the job, and obtaining totals of various types of job. However, one of the fields I'm looking at is the RECALL field (column R), which....if the job was a second visit to the same customer to rectify an issue still apparent after the 1st visit, will contain the SERVICE_ORDER_ID of the first job, along with some other data......and if not then will contain NULL.

    I need to be able to obtain a total number of jobs that have resulted in a recall for each engineer. Bearing in mind, the second job may have been completed by a different engineer to the 1st job.


    so...in English....something like:


    Count number of jobs with this engineers name listed in column "E", the SERVICE_ORDER_ID (column B) of which is listed in the first 15 characters of column "R" of all other jobs.


    Any ideas?

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,721

    Re: Complicated COUNTIFS

    Quote Originally Posted by swoop99 View Post
    Count number of jobs with this engineers name listed in column "E", the SERVICE_ORDER_ID (column B) of which is listed in the first 15 characters of column "R" of all other jobs.
    Try SUMPRODUCT like this:

    =IF(E6="","", SUMPRODUCT((JobData!E$2:E$1000=E6)*ISNUMBER(MATCH(JobData!B2:B1000&"*",JobData!R$2:R$1000,0))))
    Audere est facere

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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