+ Reply to Thread
Results 1 to 2 of 2

Problem with Countifs with 3 criteria (one being date)

  1. #1
    Registered User
    Join Date
    12-30-2013
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    1

    Problem with Countifs with 3 criteria (one being date)

    Problem.jpgI just joined the forum so I am not sure where to post this problem. I have been trying to create a countifs formula with 3 criteria (that includes date in "mmm-yy" custom format as one of the criteria & text in rest) but it is not working. By the way there are blanks in the sheet too. The date range is along a row while the text ranges are along columns of the sheet. The formula which I tried initially is as follows;

    =COUNTIFS(PI!$K$1:$CP$1,$A3,PI!$G$3:$G$201,F$37,PI!$H$3:$H$201,$B3)

    I tried both with and without array but none works. I even tried extending the criteria range of the date to $HD$1 but still it is not working and giving me #value!.

    I even tried variation of SUMPRODUCT but they are either giving value error or wrong results. Some of the Sumproduct syntax I tried are

    a) If(SUMPRODUCT(--(PI!$K$1:$CP$1=$A3),--(PI!$G$3:$G$201=F$37),-- (PI!$H$3:$H$201=),COUNTA(PI!$G$3:$G$201=F$37),"")

    b) SUMPRODUCT((IF(ISblank(PI!$K$1:$CP$1=$A3),0,PI!$K$1:$CP$1)=$A3)*(IF(ISblank(PI!$G$3:$G$201),0,PI!$G$3:$G$201)=F$37)*(IF(ISblank(PI!$H$3:$H$201),0,PI!$H$3:$H$201)=$B3))

    c) SUMPRODUCT((MOD(row(PI!$K$1:$CP$1),6)=0)*(PI!$K$1:$CP$1=$A3))*SUMPRODUCT($G$3:$G$201=F$37)*(PI!$H$3:$H$201=$B3))

    I have browsed extensively for last 2 days but unable to get a solution for this... I am attaching a screenshot of the sheet .....Please help.

    ...... Sorry the upload did not happen properly... now I am uploading both the screenshot as well as the sample xls file (in zip format due to size) which is similar to my original file. In the xls file, the BEFORE sheet is Prod_Support and the AFTER sheet is Summary sheet..... I am trying to count ONSITE & OFFSHORE TEAM SIZE using the criteria of Month, Project Type and Location...... Hope this information helps in getting a solution......
    Attached Files Attached Files
    Last edited by Akbhat; 12-31-2013 at 01:14 PM.

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Problem with Countifs with 3 criteria (one being date)

    screen shots are pointless and anyway i cant see one in your post
    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

+ 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. Countifs to find more than one criteria based on date.
    By raovv in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-11-2013, 11:03 AM
  2. [SOLVED] COUNTIFS within a date range but only if a second column meets a specified criteria
    By HeathWilD in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-29-2012, 01:14 AM
  3. Help with COUNTIFS logic with monthly date criteria.
    By cbreeze in forum Excel General
    Replies: 2
    Last Post: 02-16-2012, 12:16 PM
  4. Replies: 2
    Last Post: 08-18-2011, 11:33 AM
  5. How to count date as a criteria in countifs
    By huntersdad in forum Excel General
    Replies: 7
    Last Post: 03-29-2011, 07:38 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