+ Reply to Thread
Results 1 to 7 of 7

Nest / Combine 2 Sumproduct Functions from 2 Different Tables

  1. #1
    Valued Forum Contributor
    Join Date
    07-16-2007
    Location
    GA
    MS-Off Ver
    Office 365 - Version 2403
    Posts
    1,054

    Question Nest / Combine 2 Sumproduct Functions from 2 Different Tables

    Hi,

    Looking to nest or combine the following 2 functions because I'm looking up the same cell content, except within 2 different tables.

    =IF(B12="","",SUMPRODUCT(--($B$12:$B$17=X18),--($S$12:$S$17))) and =IF(B22="","",SUMPRODUCT(--($B$22:$B$32=X18),--($S$22:$S$32)))

    Right now, these functions works well from a single table but need to combine them. Other function examples are welecomed too.


    Thanks
    MyCon
    -- Using Latest Version of Excel

  2. #2
    Valued Forum Contributor
    Join Date
    07-16-2007
    Location
    GA
    MS-Off Ver
    Office 365 - Version 2403
    Posts
    1,054

    Re: Nest / Combine 2 Sumproduct Functions from 2 Different Tables

    Hi,

    Nevermind - I just managed to figure this out by myself by using:

    =IF(B12="","",SUMPRODUCT(--($B$12:$B$17=X18),--($S$12:$S$17)))--IF(B22="","",SUMPRODUCT(--($B$22:$B$32=X18),--($S$22:$S$32)))

    However, I still welcome other suggestions.

    Thans

  3. #3
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: Nest / Combine 2 Sumproduct Functions from 2 Different Tables

    I can think of two different ways you might want to do this.

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.

  4. #4
    Valued Forum Contributor
    Join Date
    07-16-2007
    Location
    GA
    MS-Off Ver
    Office 365 - Version 2403
    Posts
    1,054

    Re: Nest / Combine 2 Sumproduct Functions from 2 Different Tables

    Hi ben_hensel,

    I like your suggestions & both work well too. Why is the '0' needed within the first example?

  5. #5
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: Nest / Combine 2 Sumproduct Functions from 2 Different Tables

    =1+""

    will throw a #VALUE! error because you're trying to add a text string and a number.

    So, change the IF to return zero instead of the "" string.

  6. #6
    Valued Forum Contributor
    Join Date
    07-16-2007
    Location
    GA
    MS-Off Ver
    Office 365 - Version 2403
    Posts
    1,054

    Re: Nest / Combine 2 Sumproduct Functions from 2 Different Tables

    Hi Everyone,

    I would like to add an addition to my original question. Now, I would like to sum between 2 tables & between 2 dates or get a weekly breakdown instead of a cumulative total.

    For examples, in cell, F57, I have 08/11 & in, F58, have, 08/27.


    Where & how could I add this in into any of the above examples given.

    Thanks

  7. #7
    Valued Forum Contributor
    Join Date
    07-16-2007
    Location
    GA
    MS-Off Ver
    Office 365 - Version 2403
    Posts
    1,054

    Re: Nest / Combine 2 Sumproduct Functions from 2 Different Tables

    Hi,

    Does anyone have feedback?

+ 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. [SOLVED] Trying to nest SUMPRODUCT
    By soberguy in forum Excel Formulas & Functions
    Replies: 25
    Last Post: 05-29-2014, 09:53 PM
  2. Combine H Lookup and SumProduct functions formula
    By Anitykk in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-16-2013, 07:24 AM
  3. Nest IF/THEN functions
    By CB1984 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-16-2011, 11:10 PM
  4. How do I nest these 3 IF functions?
    By Rochelle B in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-01-2005, 08:06 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