+ Reply to Thread
Results 1 to 5 of 5

SUMPRODUCT or COUNTIF issues

  1. #1
    Registered User
    Join Date
    11-20-2013
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    7

    SUMPRODUCT or COUNTIF issues

    Hi All,

    I recently posted regarding countifs / sumproducts and got some good answers back. The previous thread is here and gives some context to my question below.

    http://www.excelforum.com/excel-form...ta-ranges.html

    It's become a bit more complex on me.

    I am formulating a roster for a large workshop and need to be able to calculate how many hours are available for specific groups of tradespeople on specific days. For example, I need to know how many electricians hours are available to work on a particular day.

    The top Rows are days of the week (Mon-Fri)
    The columns are sorted by type of trade and name.

    I need to firstly filter by the type of trade (electrician, fitter etc). This is in range A12:A120.

    Then I need to count the shift type they are on. For example "D", "R" and "N" in range say HY12:HY120

    *If they are an "electrician" and a "D" then multiply by 7.1 hours for that day.
    *If they are an "electrician" and an "R" then multiply by 10.1 hours for that day.
    *If they are an "electrician and an "N" then multiply by 10.1 hours for that day.

    So if D appears say 5 times in the range AND they are also an electrician, then it would be 5*7.1. This would give me total work hours for that day.

    I'll then need to do the same for other trades

    At the moment I have the below formula, but its only giving me hours for Electricians on Day shift.

    =sumproduct((HY12:HY120="D")*(A12:A120="Electricians"))*7.1

    How do I also factor in the Electricians on shift type "R"?

    I've linked them to actual cells not manually written it in.

    I hope this explains what I mean.

    Would appreciate if anyone can assist.

    Cheers
    Alex

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,447

    Re: SUMPRODUCT or COUNTIF issues

    I suggest you post a sample workbook based on the outcome of the previous thread.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    11-20-2013
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: SUMPRODUCT or COUNTIF issues

    Hi TMS,

    Have attached the workbook below.

    The tables below the actual roster show my sumproduct formulas. I've then got a table which outlines actual hours worked per day.

    I then need to get an idea of daily how many hours are available for each trade. I'll then put slot this in below the roster.

    If anyone could assist with formula ideas that would be great.

    Cheers
    Alex
    Last edited by reidos2800; 11-25-2013 at 05:04 PM.

  4. #4
    Registered User
    Join Date
    11-20-2013
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: SUMPRODUCT or COUNTIF issues

    gday all,

    Ignore the above,

    I've just solved it using an extended version of the sumproduct formula I used previously.

    All good,

    Cheers
    Alex

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,447

    Re: SUMPRODUCT or COUNTIF issues

    Glad you managed to work it out.



    If you are satisfied with the solution(s) provided, please mark your thread as Solved. Guess you will be happy with it, seeing as you provided it


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

+ 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. sumproduct issues
    By Dyakin in forum Excel General
    Replies: 6
    Last Post: 03-29-2012, 10:03 AM
  2. should I use countif or sumproduct to return # of nameA's priority 2 issues
    By StressedOutMom in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-11-2012, 05:59 PM
  3. Issues with Sumproduct
    By Chareth Cutestory in forum Excel General
    Replies: 6
    Last Post: 09-02-2011, 06:08 PM
  4. sumproduct issues
    By tweety127 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-17-2008, 11:38 AM
  5. SUMPRODUCT issues
    By Ashlynn Grace in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-26-2006, 05:00 PM

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