+ Reply to Thread
Results 1 to 4 of 4

Complex COUNTIFS

  1. #1
    Registered User
    Join Date
    01-09-2014
    Location
    Leeds, UK
    MS-Off Ver
    Excel 2003
    Posts
    2

    Question Complex COUNTIFS

    Hi,

    I am using an Excel workbook to record data on input to our service, which comes from several different departments. I have one sheet with all of the raw data on it set up as a table with various columns (month processed, referring department, type of case etc) and various other sheets displaying the analysed information.

    I have used COUNTIF and COUNTIFS to get information such as most frequently referring department, percentages of each case type etc. of the total workload from the raw data sheet but am struggling to produce a formula that will calculate how many cases we receive from each given department on a month by month basis. I have tried the following formula but it returns a #VALUE error:

    =COUNTIFS(Table1[[#All],[Date processed]],">=1/4/2013",Table1[[#All],[Date processed]],"<=30/4/2013",Table1[[#Headers],[Department]],"Integrated transport")

    Would it be possible to get a formula to calculate something of this complexity without re-formatting the data?

    Hope someone can help?

    Thanks.

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,613

    Re: Complex COUNTIFS

    without test data (and having different date format here), I cannot check it, but it could be that
    ">=1/4/2013"
    is a problem source.
    I'd rather use ">=" & DATE(2013,4,1)
    and the same at the end of month

  3. #3
    Registered User
    Join Date
    01-09-2014
    Location
    Leeds, UK
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Complex COUNTIFS

    It isn't the date string causing the problem as the formula works correctly when pulling through the total number of cases in each month - it only runs into difficulties when adding the 'per department' element into the equation.

  4. #4
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Complex COUNTIFS

    Hi,

    Clearly this is a case which is going to be very difficult to resolve without seeing an actual spreadsheet.

    Are you able to upload one which illustrates your issue? Obviously replace any confidential/sensitive information with dummy data if necessary.

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

+ 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 OR COUNTIFS needs to work
    By joshbellfi in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-23-2013, 10:55 AM
  2. [SOLVED] countif/sumif with more criterias - too complex for countifs/sumifs
    By Mengo85 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-03-2013, 07:18 AM
  3. COUNTIFS OR...multiple countifs without duplication in the numbers
    By HooligaD in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-21-2012, 09:53 AM
  4. Replies: 0
    Last Post: 12-16-2011, 09:01 AM
  5. [SOLVED] Complex Index Match Help (or at least complex to me)
    By Jennifer Reitman in forum Excel General
    Replies: 3
    Last Post: 08-10-2006, 03:55 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