+ Reply to Thread
Results 1 to 6 of 6

Need Assistance with IF, AND, SUMPRODUCT Nested Formula

  1. #1
    Registered User
    Join Date
    02-04-2013
    Location
    Lexington KY
    MS-Off Ver
    Excel 2010
    Posts
    4

    Need Assistance with IF, AND, SUMPRODUCT Nested Formula

    Hi all, I am in desperate need of assistance in making this formula work. It does work properly if I just make a simple calculation that satisfies the AND requirements such as a1*b1. But when I add the SUMPRODUCT I get nothing but #VALUE! as a result. Can anyone please assist me in making this formula work??

    Thanks so much for your assistance.




    =IF((AND(Q20="No",R20="No")),SUMPRODUCT($V$15:$GD$15,V20:GD20,IF((AND(Q20="Yes",R20="No")),SUMPRODUCT($V$16:$GD$16,V20:GD20,IF((AND(Q20="Yes",R20="Yes")),SUMPRODUCT($V$15:$GD$15,V20:GD20," "))))))

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Need Assistance with IF, AND, SUMPRODUCT Nested Formula

    Wow! A multi-nested SUMPRODUCT formula!

    No, but seriously, that looks a little iffy on first impressions. Firstly, are you sure that you actually want this nesting (which I'm not even sure means much), or should it perhaps be:

    =IF((AND(Q20="No",R20="No")),SUMPRODUCT($V$15:$GD$15,V20:GD20),IF((AND(Q20="Yes",R20="No")),SUMPRODUCT($V$16:$GD$16,V20:GD20),IF((AND(Q20="Yes",R20="Yes")),SUMPRODUCT($V$15:$GD$15,V20:GD20)," ")))))

    Secondly, what exactly are you trying to do with this formula? Can you post a workbook indicating your desired results?

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  3. #3
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: Need Assistance with IF, AND, SUMPRODUCT Nested Formula

    would this be it?

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    02-04-2013
    Location
    Lexington KY
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Need Assistance with IF, AND, SUMPRODUCT Nested Formula

    My intent is to multiply cell J11 by either J7, J8 or J9 depending on the values in E11 and F11 and I can make that work (See formula in cell FT11. My problem is that I need to multiply Row 11 by the appropriate row 7, 8 or 9, once again, depending on the values in E11 and F11 but I need to make that work for columns J through FR and arrive at a grand total in column FT. Attached is a sample condensed file of what I am trying to accomplish. Hope that makes sense.

    Thanks!!!!
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    02-04-2013
    Location
    Lexington KY
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Need Assistance with IF, AND, SUMPRODUCT Nested Formula

    Much thanks to XOR LX!! Your suggestion worked perfectly!!

    Really appreciate your help!!

  6. #6
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Need Assistance with IF, AND, SUMPRODUCT Nested Formula

    A tad shorter version of XOR LX's formula perhaps..

    =IF(OR(AND(Q20="No",R20="No"),AND(Q20="Yes",R20="Yes")),SUMPRODUCT($V$15:$GD$15,V20:GD20),IF(AND(Q20="Yes",R20="No"),SUMPRODUCT($V$16:$GD$16,V20:GD20)," "))
    Life's a spreadsheet, Excel!
    Say thanks, Click *

+ Reply to Thread

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