+ Reply to Thread
Results 1 to 7 of 7

multiple conditions to count large amount of data by Type, month & activity type

  1. #1
    Registered User
    Join Date
    04-03-2014
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    4

    multiple conditions to count large amount of data by Type, month & activity type

    count criteria.xlsx

    Hi there

    I'm looking for help with the attached

    I have a sheet of data which is broken down by day and for multiple resources, each row may contain more than one type of activity, I need to count up the resource types across the month and put them into a table by month.

    I have tried COUNTIFS but either it's not up to the job or I can't work out how to do it.

    I can do the first step of getting a count for any type of activity using SUMPRODUCT but have to specify the row in the formula whereas I want it to select the row based on the resource type.

    It must be possible but I don't have the skills to know how :-)

    Any help appreciated.
    Norfolk_lass
    Last edited by norfolk_lass; 04-03-2014 at 07:20 AM.

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

    Re: multiple conditions to count large amount of data by Type, month & activity type

    Try the below formula in cell C15 and copy to the right for the months.

    =SUMPRODUCT(($A$2:$A$6=$A15)*($B$2:$J$6=$B15)*($B$1:$J$1=C$13))

    It will take care of any rows that detail IO, T or T in column B. You can then just use a simple =SUM() to get the "Totals".

    Should at least point you in the right direction of what you need to do for the rest, but feel free to shout for more help if needed.

    BSB.

  3. #3
    Registered User
    Join Date
    04-03-2014
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: multiple conditions to count large amount of data by Type, month & activity type

    Thanks for the quick reply BSB.

    Think I will be using SUMPRODUCT more from now on now I understand how to actually use it.

    Big thank you
    NL

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

    Re: multiple conditions to count large amount of data by Type, month & activity type

    No probs NL. Happy to help

    Please mark the thread as SOLVED if you're happy you have your solution.

    BSB.

  5. #5
    Registered User
    Join Date
    04-03-2014
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: [SOLVED] multiple conditions to count large amount of data by Type, month & activity t

    Thanks and I even improved on it but making the totals <>0 so it looks to the original rather than do a sum.

    Amazing how a good formula is a thing of beauty - am I really that sad!

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

    Re: [SOLVED] multiple conditions to count large amount of data by Type, month & activity t

    Haha! Not sad at all

  7. #7
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: multiple conditions to count large amount of data by Type, month & activity type

    Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.

    In future, to mark your thread as Solved, you can do the following -
    Select Thread Tools-> Mark thread as Solved.

    Incase your issue is not solved, you can undo it as follows -
    Select Thread Tools-> Mark thread as Unsolved.

    Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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. [SOLVED] How to tackle multiple conditions (date range, destinations & type of load) with vlookup?
    By arvind sharma in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-15-2013, 05:41 AM
  2. Replies: 0
    Last Post: 09-03-2013, 11:26 AM
  3. Replies: 1
    Last Post: 08-08-2012, 02:39 PM
  4. Type Mismatch Error on Large Data Sets
    By erock24 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-04-2010, 04:40 PM
  5. Count job type for each month
    By Back2Basics in forum Excel General
    Replies: 4
    Last Post: 05-26-2009, 06:09 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