+ Reply to Thread
Results 1 to 5 of 5

sum 3 days before and 3 days after

  1. #1
    Forum Contributor
    Join Date
    12-09-2022
    Location
    Australia
    MS-Off Ver
    365
    Posts
    103

    sum 3 days before and 3 days after

    Hi
    Please can you help me.
    My spreadsheet is like this (please see the attached):

    I want to use a sum formular according to my pre-defined criteria (detail in excel).

    Sum criteria include 3 days before, and 3 day after.

    Is there any excel formular that allow me to do automatically?



    Many thanks
    Attached Files Attached Files

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,696

    Re: sum 3 days before and 3 days after

    Try:

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2021
    Posts
    5,933

    Re: sum 3 days before and 3 days after

    Or try this in G4:

    =SUM(OFFSET(B2:B458,MATCH(MAX(C2:C458),C2:C458,0)-4,0,3,1))

    in G6:

    =SUM(OFFSET(B2:B458,MATCH(MAX(C2:C458),C2:C458,0),0,3,1))

  4. #4
    Forum Contributor
    Join Date
    12-09-2022
    Location
    Australia
    MS-Off Ver
    365
    Posts
    103

    Re: sum 3 days before and 3 days after

    Thanks you so much

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,696

    Re: sum 3 days before and 3 days after

    You're welcome. Thanks for the rep.

+ 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: 8
    Last Post: 07-19-2022, 06:16 AM
  2. Replies: 2
    Last Post: 09-12-2020, 11:03 AM
  3. Replies: 13
    Last Post: 08-09-2020, 04:53 PM
  4. [SOLVED] How to calculate task schedule based on 4-days work and 4-days OFF including weekends
    By qadeerume in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-28-2020, 12:19 AM
  5. [SOLVED] Formula to calculate working days and calendar days per month-year ?
    By donny007 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-05-2018, 06:23 PM
  6. [SOLVED] calculate total number of days between two days based on 365 days year
    By aparunkumar in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 03-14-2016, 12:51 AM
  7. Replies: 0
    Last Post: 06-11-2015, 03:12 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