+ Reply to Thread
Results 1 to 6 of 6

Sum Product not working

Hybrid View

  1. #1
    Valued Forum Contributor
    Join Date
    04-21-2005
    Location
    Southern England
    MS-Off Ver
    Excel for Office 365
    Posts
    1,702

    Sum Product not working

    Hi
    Can anyone see why this sum product isn’t working please. In cell P13 I would expect £700 to be returned as H13 contains either 1104 or 1008

    I have uploaded a file – it has worked previously but something must be corrupting it.

    Paul
    Attached Files Attached Files

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Sum Product not working

    In P13 Cell

    =SUMPRODUCT((LEFT($H$13:$H$14,4)="1104")+(LEFT($H$13:$H$14,4)="1108")*(LEFT($G$13:$G$14,3)=$O13),($K$13:$K$14))


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

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

    Re: Sum Product not working

    Try this..

    =SUMPRODUCT((LEFT($H$13:$H$14,4)="1104")*($J$13:$J$14=0)*(LEFT($G$13:$G$14,3)=TEXT($O13,"000")),$K$13:$K$14)+SUMPRODUCT((LEFT($H$13:$H$14,4)="1108")*($J$13:$J$14=0)*(LEFT($G$13:$G$14,3)=TEXT($O13,"000")),$K$13:$K$14)
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  4. #4
    Valued Forum Contributor
    Join Date
    04-21-2005
    Location
    Southern England
    MS-Off Ver
    Excel for Office 365
    Posts
    1,702

    Re: Sum Product not working

    @Daddylonglegs - you star! I have looked at the problem for ages and I wouldnt have spotted it!! It was "" instead of 0 which I have now changed

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

    Re: Sum Product not working

    The formula is working as it should - one of your criteria is $J$13:$J$14="".......but neither of those cells are ="" or blank - they both contain zero, which isn't the same thing - you either need to remove that condition, or change it to $J$13:$J$14=0.......or perhaps change the data.......
    Audere est facere

  6. #6
    Valued Forum Contributor
    Join Date
    04-21-2005
    Location
    Southern England
    MS-Off Ver
    Excel for Office 365
    Posts
    1,702

    Re: Sum Product not working

    Hi,

    Thanks for the replies - both work. I will use ACE_XL's as this includes both columns.

    Does anyone know why the orgianal formula wouldn't work - I can not see why?
    =SUMPRODUCT((LEFT($H$13:$H$14,4)="1104")*($J$13:$J$14="")*(LEFT($G$13:$G$14,3)=$O13)*($K$13:$K$14))+SUMPRODUCT((LEFT($H$13:$H$14,4)="1108")*($J$13:$J$14="")*(LEFT($G$13:$G$14,3)=$O13)*($K$13:$K$14))
    Paul

+ 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. Working out product across multiple columns?
    By Aidan Leather in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-02-2013, 07:31 AM
  2. % of one product against the other not working
    By newbieexcelgirl in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 02-01-2013, 12:32 PM
  3. Replies: 2
    Last Post: 03-15-2012, 12:11 AM
  4. formula for product not working
    By steve in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-04-2006, 03:55 PM
  5. [SOLVED] excel product key is not working
    By chris in forum Excel General
    Replies: 0
    Last Post: 02-02-2005, 08: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