+ Reply to Thread
Results 1 to 4 of 4

Sumproduct: Incomplete List

  1. #1
    Registered User
    Join Date
    03-14-2015
    Location
    Japan
    MS-Off Ver
    2013
    Posts
    2

    Sumproduct: Incomplete List

    Hello, everyone!

    In my workplace we have data like this:

    Sheet "Paste"
    Bought Sold
    Drinks Store1 52 64
    Drinks Store2 23 12
    Candy Store1 12 24
    Food Store1 89 98
    Food Store2 65 45

    Notice how if there was no products bought or sold in one category, it is excluded completely (at the moment this cannot be changed because of our outdated system).
    As we have over 100 categories and I want to compare them on a montly basis I need a new page where even this 0-movement-categories are shown.

    Sheet "List"
    Bought Sold
    Drinks Store1 52 64
    Drinks Store2 23 12
    Candy Store1 12 24
    Candy Store2 0 0
    Food Store1 89 98
    Food Store2 65 45

    Before I start showing my formulas I need to stress that I am more familiar with Calc than Excel, which is probably why I cannot get it to work.

    I tried using
    =(IF(Paste!$A:$A=List!$A2,1,0)*IF(Paste!$B:$B="Store1",1,0)*Paste!C:C)
    and it works until it arrives at a non-existant category where it starts to either find the category or store code to be false. (I alternate the second if clause to be equal to "Store1" or "Store2")


    So instead I tried a proper sumproduct function instead:
    =SUMPRODUCT((Paste!A:A=List!A2)*(Paste!B:B="Store1")*(Paste!C:C))
    but it gives me a #VALUE error, I guess because C:C is not a proper value?


    By moving a parenthesis I got good result... until it hit a non-existant category again. It does not skip and return 0, instead it returns the next value in the "Paste"-list.
    =SUMPRODUCT((Paste!A:A=List!A2)*(Paste!B:B="Store1"))*(Paste!C:C)

    I tried using a lookup-formula to find the proper value, but I guess I am too unfamiliar with it to get it to work.

    Any help would be very much appreciated.

    - Wolfwinter

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Sumproduct: Incomplete List

    Hi, welcome to the forum

    Notice how if there was no products bought or sold in one category, it is excluded completely
    umm no, actually i did not notice (maybe because its not there?

    To best describe or illustrate your problem you would be better off attaching a dummy workbook. The workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    03-14-2015
    Location
    Japan
    MS-Off Ver
    2013
    Posts
    2

    Re: Sumproduct: Incomplete List

    Thank you for you quick reply!

    I made a simple book with my problem.
    I marked the cells where I get the wrong values with red.

    Thanks in advance,

    - Wolfwinter
    Attached Files Attached Files

  4. #4
    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,063

    Re: Sumproduct: Incomplete List

    Hi. Does this fix your problem?
    Attached Files Attached Files
    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

+ 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: 09-17-2013, 07:12 PM
  2. [SOLVED] combobox issues... incomplete list
    By ag273n in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-14-2013, 02:23 AM
  3. Mapping incomplete list to a complete list
    By Ctrl Alt Sweet in forum Excel General
    Replies: 1
    Last Post: 11-21-2006, 05:54 AM
  4. Incomplete List of Fonts for Symbols?
    By RBW in forum Excel General
    Replies: 0
    Last Post: 05-18-2006, 10:50 AM
  5. Access import query list incomplete
    By Cydney in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-30-2006, 05:35 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