+ Reply to Thread
Results 1 to 5 of 5

Complicated Array Formula

  1. #1
    Registered User
    Join Date
    04-15-2013
    Location
    NYC
    MS-Off Ver
    Excel 2007
    Posts
    84

    Complicated Array Formula

    Hello,

    I am working on a project setting up a roll up of data between requirements for projects and available staffs' skill sets. The data is set up in a slightly awkward way, but this analysis will have to be repeated many times and the data will always come in this format. I created a sample, attached. The sample contains the method for analysis and output section. I believe a complicated array is required, but cant make it run properly. If anyone can make it work, I'd appreciate it.

    Thank you,
    Attached Files Attached Files

  2. #2
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: Complicated Array Formula

    If I've understood, that's a big IF here, the below might work for you:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Key assumption is that you're interested only in the deficits such that there is no concept of getting credit for being over-skilled.

    To that end, the multitude of H* tests in the LOOKUP are technically redundant, a single H test would suffice - but have left in as easier to follow, and adapt as nec.

    Ranges can be modified to accommodate your real data etc.

    The above would generate following output based on your sample data:

    2, 3, 2
    2, 1, 4
    2, 2, 1
    5, 6, 5
    5, 5, 6
    1, 2, 1

    If the above is incorrect, quite likely, post another sample with expected results for each intersection -- much easier to follow requisite logic with multiple outputs.
    Last edited by XLent; 09-26-2018 at 04:43 AM. Reason: typos !

  3. #3
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Complicated Array Formula

    I got different results to XLent with this, in N3, then fill down and drag right.

    =SUMPRODUCT(($A$15:$A$17=K3)*(N(LOOKUP($B$15:$F$17,{"High","low","Medium","None"},{3,1,2,0}))<N(LOOKUP($B3:$F3,{"High","low","Medium","None"},{3,1,2,0}))))

    To simplify the formula, I've assumed that the Workstream and Staff tables will both contain the same columns in the same order.
    Also that the results matrix will have the same rows in the same order as the Workstream table.

  4. #4
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: Complicated Array Formula

    Yes, first calc aggregates the "span" of the deficits whereas second, I believe, counts the deficit instances, so you should be covered either way !

    Cheers
    D.O.

  5. #5
    Registered User
    Join Date
    04-15-2013
    Location
    NYC
    MS-Off Ver
    Excel 2007
    Posts
    84

    Re: Complicated Array Formula

    I was looking for XLent's solution, but the way Jason maneuvered the tables is quite clever as well. Fairly awesome that both of you were able to come up with what you did given what you started with.

    Thank you,

+ 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. Help on complicated array lookup
    By renahearn in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-23-2014, 02:25 PM
  2. Replies: 3
    Last Post: 07-19-2012, 01:26 PM
  3. [SOLVED] A Challenge: Complicated SUM(IF( Array Formula
    By Skeet112 in forum Excel General
    Replies: 8
    Last Post: 04-10-2012, 01:04 PM
  4. Complicated array problem
    By semper_si in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-09-2007, 07:26 PM
  5. Complicated Array Formula Question
    By smsnead1 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-28-2006, 07:58 PM
  6. Help with a complicated array formula
    By boooney in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-14-2005, 02:10 AM
  7. complicated array
    By boris in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-01-2005, 07:06 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