+ Reply to Thread
Results 1 to 5 of 5

Summing/Averaging Totals Based off Date Criteria

  1. #1
    Registered User
    Join Date
    06-30-2016
    Location
    Oaks, PA
    MS-Off Ver
    Excel 2013
    Posts
    80

    Summing/Averaging Totals Based off Date Criteria

    Hello,

    I'm looking for both a sum and average formula that calculates weekly totals. (I attached my Excel document to better show what I am looking for)

    I'm trying to get the sum and average of In Store Returns from the previous week (Monday through Friday) and am not sure if using a SUMIFS function that looks for the previous weeks data would be possible?

    Any help with this would be much appreciated!

    Thank you
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Summing/Averaging Totals Based off Date Criteria

    In N2, then drag Horizontaly.

    =SUMIFS($B$3:$K$3,$B$2:$K$2,">="&N$1,$B$2:$K$2,"<="&N$1+4)

    In N2, then drag Horizontaly.

    =IFERROR(SUMIFS($B$3:$K$3,$B$2:$K$2,">="&N$1,$B$2:$K$2,"<="&N$1+4)/SUMIFS($B$5:$K$5,$B$2:$K$2,">="&N$1,$B$2:$K$2,"<="&N$1+4),"")
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  3. #3
    Registered User
    Join Date
    06-30-2016
    Location
    Oaks, PA
    MS-Off Ver
    Excel 2013
    Posts
    80

    Re: Summing/Averaging Totals Based off Date Criteria

    kvsrinivasamurthy - I believe your formula will work for what I am searching for! Thank you so much for your help!!

  4. #4
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Summing/Averaging Totals Based off Date Criteria

    Welcome.Glad to help.

  5. #5
    Registered User
    Join Date
    06-30-2016
    Location
    Oaks, PA
    MS-Off Ver
    Excel 2013
    Posts
    80

    Re: Summing/Averaging Totals Based off Date Criteria

    Quote Originally Posted by kvsrinivasamurthy View Post
    Welcome.Glad to help.
    Is there a way to use this same formula, except instead of weekly totals (Monday-Friday) I would use it to sum up the months totals?

    At the end of the formula you used: "<="&N$1+4)

    Obviously the formula is looking for the first Monday of each week and summing it up with the next 4 days of that week.

    Instead of using the +4 approach, is there a way where the formula can be altered to get the entire months totals?

    Something like this:

    =IFERROR(SUMIFS($B$3:$K$3,$B$2:$K$2,">="&N$1,$B$2:$K$2,"<="&MONTH(N$1)/SUMIFS($B$5:$K$5,$B$2:$K$2,">="&N$1,$B$2:$K$2,"<="&MONTH(N$1),"")

+ 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] Need your help averaging based on month & other criteria
    By hennakao in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 02-14-2017, 10:13 AM
  2. [SOLVED] Summing Totals Based on Criteria
    By robstark in forum Excel General
    Replies: 4
    Last Post: 02-10-2017, 02:01 AM
  3. [SOLVED] Summing totals based on first 3 characters
    By ory182003 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-16-2013, 06:58 PM
  4. [SOLVED] Excel 2007 : Averaging across rows based on some criteria
    By cde1983 in forum Excel General
    Replies: 5
    Last Post: 05-15-2010, 07:06 AM
  5. Summing based on a quarterly date criteria.
    By ExcelTip in forum Tips and Tutorials
    Replies: 4
    Last Post: 08-28-2008, 07:22 AM
  6. Summing based on date criteria
    By R0bert0 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-21-2007, 01:26 PM
  7. Replies: 3
    Last Post: 12-14-2006, 09:40 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