+ Reply to Thread
Results 1 to 5 of 5

Sum Product

  1. #1
    Forum Contributor
    Join Date
    05-05-2014
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2013
    Posts
    103

    Sum Product

    Hello,

    I am having an issue with returning one value from multiple criteria. Starting line 92-98, I need the Line 9 on YIAH to match the date in Line 1 on Sheet5, Column d YIAH to match line 2 in Sheet 5, and column C to match column A (sheet 5)
    =SUMPRODUCT((Sheet5!$1:$1=YIAH!$F$9)*(Sheet5!$2:$2=YIAH!$D92)*(Sheet5!$A$3:$A$10=YIAH!$C92))

    This is my current formula but returns a funny message from excel. Thanks!!!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Sum Product

    Excel ran out of resources while attempting to calculate one or more formulas. As a result, these formulas cannot be evaluated.

    Why is column F an array?
    Also why are you using sumproduct instead of an index+match?


    When I delete the three columns of formulas, that irritating error goes away.
    Last edited by mikeTRON; 08-14-2014 at 06:36 PM.
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

  3. #3
    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,933

    Re: Sum Product

    I had to reload with manual calc on, otherwise excel just crashed.

    a few pointers...
    1. You should avoid full rows or columns in sumproduct, it will slow things down
    2. with a table like you have on sheet 2, it is often better to have the dates going down and the categories going across. As the table grows downwards, it will naturally grow downwards

    Try this regular formula instead of the SP...
    =INDEX(Sheet5!$B$4:$AG$10,MATCH($C92,Sheet5!$A$4:$A$10,0),MATCH(YIAH!E$9&"-"&YIAH!$D92,INDEX(Sheet5!$B$1:$AG$1&"-"&Sheet5!$B$2:$AG$2,0),0))

    copied down and across
    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

  4. #4
    Forum Contributor
    Join Date
    05-05-2014
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2013
    Posts
    103

    Re: Sum Product

    Thanks! Actually, I did not create sheet2 (i know better than that!), It works! Thanks!

  5. #5
    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,933

    Re: Sum Product

    Happy to help and thanks for the 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] I'm receiving a Run-Time error 1004 while trying to delete a product from a product list.
    By redsab in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-05-2014, 10:03 PM
  2. Replies: 1
    Last Post: 06-20-2014, 03:38 PM
  3. Macro for Name Generation from Product to Product with Sizes and Filenames
    By ddenicola in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-30-2014, 11:59 AM
  4. [SOLVED] Find Product Details in Another Sheet based on Product ID and Copy some Fields From there
    By kevalkothari in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-29-2012, 10:43 AM
  5. [SOLVED] Need Function that will find ordered product, and display the product code in a 2nd workbk
    By rollerden in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-21-2012, 08:52 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