+ Reply to Thread
Results 1 to 6 of 6

Sum Lookup from a 2nd table - SumIf and SumProduct(?)

  1. #1
    Registered User
    Join Date
    09-05-2017
    Location
    England
    MS-Off Ver
    Excel 2016
    Posts
    4

    Question Sum Lookup from a 2nd table - SumIf and SumProduct(?)

    Hi all

    I'm trying to do a calendar for a shift pattern. I've a lookup table (held on the Shift times sheet) in the example file. I enter a shift agaisnt a persons name on a date, like S1 and S2.

    For some sanity checking, i want to do a summary of the times per product (B3:B11) - there are 4 products, mulitple people agaisnt each product.

    So C15 for example, i would be looking for the result 15 which it gets from looking at B3:B11 to find which are 'Func' and then pulling the corrisponding values that lookup from C3:C11 from the lookup sheet in A2:B10. So it comes up with 15 because it finds S3 = 7.5 and S1= 7.5 thus 15.

    I dont want to add individual columns per date to perform the lookup value first and then sum on those as that would mean an extra 30 columns and having to hide them etc, i'd just like to do it in a more complex formula.
    I've been banging my head on this for over 6 hours, it must be possible it's just getting my head around the logic. I believed it was a SUMPRODUCT(SUMIF( etc. but it might need an index/match and those are beyond my excel skills at the mo!

    Any help would be appreciate thanks!

    Andrew
    Attached Files Attached Files
    Last edited by Bigglesuk; 09-06-2017 at 04:34 PM. Reason: Adding attachment

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: SumIf and SumProduct(?) - Complicated lookup help (please!)

    Nope. Can't visualise all that stuff...


    Will you please attach a SMALL sample Excel workbook (10-20 rows of data is usually enough)? Please don't attach a picture of one (no-one will want to re-type all your stuff before starting).

    1. Make sure that your sample data are truly REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution is also shown (mock up the results manually).

    3. Make sure that all confidential information is removed first!!

    4. Try to avoid using merged cells. They cause lots of problems!

    Unfortunately the attachment icon doesn't work at the moment. So, to attach an Excel file you have to do the following: Just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    09-05-2017
    Location
    England
    MS-Off Ver
    Excel 2016
    Posts
    4

    Re: SumIf and SumProduct(?) - Complicated lookup help (please!)

    Hi Glenn

    done, as the attachment wasnt working so i had to post then go and upload to google and attach the link

    if you need it also attaching i can do that.

  4. #4
    Registered User
    Join Date
    09-05-2017
    Location
    England
    MS-Off Ver
    Excel 2016
    Posts
    4

    Re: Sum Lookup from a 2nd table - SumIf and SumProduct(?)

    Looks like this one may be a bit taxing, but i'm sure its possible.

  5. #5
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Sum Lookup from a 2nd table - SumIf and SumProduct(?)

    Try using this formula in C14 copied across and down as required

    =SUMPRODUCT(($B$3:$B$11=$B14)+0,SUMIF('Shift Times'!$A$3:$A$10,C$3:C$11,'Shift Times'!$B$3:$B$10))
    Audere est facere

  6. #6
    Registered User
    Join Date
    09-05-2017
    Location
    England
    MS-Off Ver
    Excel 2016
    Posts
    4

    Thumbs up Re: Sum Lookup from a 2nd table - SumIf and SumProduct(?)

    Aww mate - i could kiss you.

    thank you so much that is just what i was looking for. I just couldnt get my head around it, but looking at that it does make sense.

    Ps my nickname at school used to be Daddylonglegs (because i had long legs.. kids are original ey?)

    many thanks

    Andrew

+ 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. Complicated SUMPRODUCT OR SUMIF question?
    By angelila in forum Excel General
    Replies: 5
    Last Post: 01-10-2006, 03:25 PM
  2. complicated sumproduct.
    By Duke Carey in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-06-2005, 07:05 AM
  3. complicated sumproduct.
    By Duke Carey in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-06-2005, 06:05 AM
  4. [SOLVED] complicated sumproduct.
    By Duke Carey in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-06-2005, 04:05 AM
  5. complicated sumproduct.
    By Nimit Mehta in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 AM
  6. [SOLVED] complicated sumproduct.
    By Nimit Mehta in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM
  7. [SOLVED] complicated sumproduct.
    By Nimit Mehta in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 PM
  8. [SOLVED] complicated sumproduct.
    By Nimit Mehta in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-09-2005, 11:05 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