+ Reply to Thread
Results 1 to 8 of 8

Adding YEAR function to Sumproduct(Subtotal(

  1. #1
    Registered User
    Join Date
    12-07-2010
    Location
    Aberdeen
    MS-Off Ver
    Excel 2013
    Posts
    50

    Adding YEAR function to Sumproduct(Subtotal(

    Can anyone tell me why the attached sample spreadsheet formula's will not return the correct values please.

    I have highlighted the relevant cells in red. I am trying to Sum the Invoice Values by Year for the Filtered data.

    Thank you.
    Attached Files Attached Files

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Adding YEAR function to Sumproduct(Subtotal(

    If you use the evaluate function under Formulas on the ribbon and step through the calculation you will see your current formula ends up multiplying a year by the invoice values and thus you get the wrong figures.

    See attached for amended formulas that do what you need.

    BSB
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    12-07-2010
    Location
    Aberdeen
    MS-Off Ver
    Excel 2013
    Posts
    50

    Re: Adding YEAR function to Sumproduct(Subtotal(

    BSB

    I had tried to use the evaluation function on the source file which has>1100 records but should have tried it on the sample!

    thanks for your help.

  4. #4
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Adding YEAR function to Sumproduct(Subtotal(

    Yes, I can see why that would have not been easy to decipher the cause of the problem.

    Happy to help.

    BSB

  5. #5
    Registered User
    Join Date
    12-07-2010
    Location
    Aberdeen
    MS-Off Ver
    Excel 2013
    Posts
    50

    Re: Adding YEAR function to Sumproduct(Subtotal(

    Sorry to bother you again BSB.

    Could you try the sheet again but remove the filter on Column K.
    Doesn't seem to be summing all the values!
    Thanks.

  6. #6
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Adding YEAR function to Sumproduct(Subtotal(

    Apologies. Was rushing off to a meeting so didn't have time to check that my solution covered anything more than what was visible at the time.

    See if the amended attachment does what you expect.

    BSB
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    12-07-2010
    Location
    Aberdeen
    MS-Off Ver
    Excel 2013
    Posts
    50

    Re: Adding YEAR function to Sumproduct(Subtotal(

    Superb! Thanks very much.

  8. #8
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Adding YEAR function to Sumproduct(Subtotal(

    No problem. Happy to help

    BSB

+ 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] Adding Subtotal to a Median IF Function
    By elfvis in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-10-2015, 03:26 PM
  2. [SOLVED] adding year to date without year on whole sheet
    By kronikjb in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-03-2015, 04:16 PM
  3. Adding a third criteria to Sumproduct function
    By superboy in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-06-2014, 05:01 AM
  4. sumproduct+countifs+month year function does not work
    By apskhinda in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-06-2013, 07:01 AM
  5. [SOLVED] Adding arguments to an SUMPRODUCT function
    By SpiritedAway in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-19-2013, 09:04 PM
  6. Function similar to SUMPRODUCT for Subtotal
    By Jerseynjphillypa in forum Excel General
    Replies: 8
    Last Post: 09-22-2012, 07:42 AM
  7. Subtotal by Year, Large Spreadsheet?
    By Al Franz in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-14-2005, 05:06 PM

Tags for this Thread

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