Results 1 to 1 of 1

Using SUMPRODUCT and MAX together

Threaded View

JakeMann Using SUMPRODUCT and MAX... 03-21-2013, 06:09 AM
  1. #1
    Forum Contributor
    Join Date
    06-20-2012
    Location
    Derby
    MS-Off Ver
    Excel 2010
    Posts
    383

    Using SUMPRODUCT and MAX together

    Hiya,

    I'm working on a specific problem with one of our documents.

    Attached is an example of the work.

    By day there 2 shifts with various jobs running and a maximum number of staff per shift. My problem is that the End Date of some of the jobs fall into a future date.

    As an example, on the attached,

    Job B starts on the afternoon shift of 21st and finishes on 22nd on the morning shift. Job C starts on 22nd in the morning and finishes in the afternoon, so the maximum number of staff i need for the morning shift is 1.

    Job D starts on 22nd in the afternoon, so the maximum number of staff I need in the afternoon is 2.

    On the test I am using the below in N2

    =SUMPRODUCT(MAX(IF(B$2:B$5=J4,)*(E$2:E$5=J4)*(C$2:C$5=N$1)*(F$2:F$5=N$1),H$2:H$5))

    But I don't think it's right.

    Previously I have used =MAX(IF(E9:E9="dddddd",G9="Morning",IF(H9=1,I9))) in N2 but this doesn't take into account if a job continues to run on another shift on another day.

    A bit complicated, but can anyone help or advise?

    Thanks
    Attached Files Attached Files

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