+ Reply to Thread
Results 1 to 7 of 7

Simple suumproduct query

  1. #1
    Banned User!
    Join Date
    09-26-2015
    Location
    Manchester
    MS-Off Ver
    2013
    Posts
    218

    Simple suumproduct query

    Hi there,

    With reference to the attached, can someone tell me how I can use the SUMPRODUCT formula to summarise the data contained in the 'Cost Detail' table, in the 'Cost Summary' table.

    Requirement 1 of the formula must be that the product name/description in the 'Cost Summary' table matches exactly with the description in the 'Cost Detail' table
    Requirement 2 of the formula must be that the cost is only summed in the correct date column of the 'Cost Summary' table - the correct date column being the month in which the cost is absorbed as per the 'Cost Detail' table
    Attached Files Attached Files

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Simple suumproduct query

    I don't think sumproduct is required, a basic sumif is all that is needed.

    In E17 and filled down/right
    =SUMIF($D$4:$D$13,$D17,E$4:E$13)

  3. #3
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Simple suumproduct query

    If the dates will not necessarily always be in the same order in both tables, then try this in E17 filled right/down

    =SUMIF($D$4:$D$13,$D17,INDEX($E$4:$I$13,0,MATCH(E$16,$E$3:$I$3,0)))

  4. #4
    Banned User!
    Join Date
    09-26-2015
    Location
    Manchester
    MS-Off Ver
    2013
    Posts
    218

    Re: Simple suumproduct query

    Thanks Jonmo1,

    I'm guilty of oversimplifying my problem. In the real version, the 'Cost Data' sheet is on another tab and the formula cannot be as simple as a SUMIF. It would need to be at least a SUMIFS formula so the date can be validated too. I forgot to mention this assumption in my post but this is the reason I'm looking for a SUMPRODUCT formula

  5. #5
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Simple suumproduct query

    The 2nd formula I posted will handle validating the date, just need to add sheet references..

    =SUMIF('Cost Data Sheet'!$D$4:$D$13,'Cost Summary Sheet'!$D17,INDEX('Cost Data Sheet'!$E$4:$I$13,0,MATCH('Cost Summary Sheet'!E$16,'Cost Data Sheet'!$E$3:$I$3,0)))

  6. #6
    Banned User!
    Join Date
    09-26-2015
    Location
    Manchester
    MS-Off Ver
    2013
    Posts
    218

    Re: Simple suumproduct query

    This works perfectly, thanks!

  7. #7
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Simple suumproduct query

    You're welcome.

+ 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] Suumproduct and Min together
    By teachMeExcel in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-25-2012, 05:48 PM
  2. simple sum query
    By deanomcbeano27 in forum Excel General
    Replies: 3
    Last Post: 01-16-2012, 06:38 AM
  3. Simple MOD query
    By rajivvishwa in forum Excel General
    Replies: 2
    Last Post: 04-21-2011, 07:49 PM
  4. Simple query about ranges
    By owainl in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-23-2009, 12:58 PM
  5. Simple Query
    By T De Villiers in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-20-2007, 08:36 AM
  6. Hopefully A Simple 'sum' Query!
    By madnesstiger in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-07-2007, 05:07 PM
  7. Simple VB query
    By DJ Dusty in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-31-2005, 05:48 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