+ Reply to Thread
Results 1 to 3 of 3

Replace multiple SumProduct/Vlookup with a dynamic array of conditions

  1. #1
    Registered User
    Join Date
    03-17-2016
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    9

    Replace multiple SumProduct/Vlookup with a dynamic array of conditions

    Hi there,

    I have tried to see if there was a similar post to my issue but are not able to find something that match what I am trying to do.

    I have been assigned to come up with a roster and I'd love to help the one from someone that feels comfortable with it. I am working for an NGO so resources are quite limited, thus me an HR person doing the roster for medical people

    Anyway I'd like to minimize a formula I am using to calculate the total number of shift in my roster for every person that work.
    I am using a mix of SumProduct and Vlookup in the formula to calculate the total. The idea behind it is to make it as simple as possible, which is far to be the case now.

    Below my two tables:

    TABLE 1 > A1:F7
    Total
    Bob D1 D2 D2 D2 7
    Kyle D3 D3 D1 D1 8

    TABLE 2> A5:B7
    D1 1
    D2 2
    D3 3


    Formula in F7:
    =SUMPRODUCT(--(B2:E2="D1")*VLOOKUP("D1",$A$5:$B$7,2,FALSE))+SUMPRODUCT(--(B2:E2="D2")*VLOOKUP("D2",$A$5:$B$7,2,FALSE))+SUMPRODUCT(--(B2:E2="D3")*VLOOKUP("D3",$A$5:$B$7,2,FALSE))

    Problem
    As you can see the

  2. #2
    Valued Forum Contributor
    Join Date
    01-16-2012
    Location
    England
    MS-Off Ver
    MS 365
    Posts
    1,397

    Re: Replace multiple SumProduct/Vlookup with a dynamic array of conditions

    Faboolus,

    Can you attach the worksheet, even if you show just a few rows with "dummy" data, so we can follow the logic, as your references seem to overlap (e.g. A5 (Table 2) is in the Table 1 range A12:F7)?

    Ochimus

  3. #3
    Registered User
    Join Date
    03-17-2016
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    9

    Re: Replace multiple SumProduct/Vlookup with a dynamic array of conditions

    Sorry I'll delete this thread I posted it twice.

    That's the one. I'll attach an Excel sheet to it but connection is not really good
    http://www.excelforum.com/excel-form...onditions.html

+ 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. Replies: 2
    Last Post: 08-21-2015, 03:50 AM
  2. [SOLVED] Additional conditions for IF array and Dynamic MAX formula
    By pauldaddyadams in forum Excel General
    Replies: 25
    Last Post: 11-19-2014, 11:29 AM
  3. [SOLVED] Dynamic Count and Sum Array Formulas Based on Multiple Conditions
    By 5150 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 01-27-2014, 04:35 PM
  4. [SOLVED] Make print area dynamic & replace a SUMPRODUCT with code!
    By apla in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 09-20-2013, 10:04 AM
  5. Replies: 13
    Last Post: 12-13-2012, 11:44 AM
  6. Replies: 3
    Last Post: 01-07-2012, 02:51 AM
  7. Sumproduct with dynamic array
    By benaw in forum Excel General
    Replies: 3
    Last Post: 10-18-2009, 07:24 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