+ Reply to Thread
Results 1 to 4 of 4

Sum based on date range by workdays in adjacent column

  1. #1
    Forum Contributor
    Join Date
    03-20-2013
    Location
    Manchester
    MS-Off Ver
    Excel 2010
    Posts
    200

    Sum based on date range by workdays in adjacent column

    Hi

    please could someone assist with the below


    in columns A:A i have dates,

    in columns J:J i have numbers ranging from 1-1000

    i would like a formula to sum J:J, where the date is today & up to 5 workdays old using A:A



    thanks
    Last edited by papasmurfuo9; 04-15-2014 at 08:17 AM.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Sum based on date range by workdays in adjacent column

    Assuming the date could be greater than today

    Try
    =SUMIFS($J1:$J10000, $A$1:$A$10000, ">= "&TODAY()-5, $A$1:$A$10000, "<=" & TODAY())
    Set up your ranges accordingly.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Contributor
    Join Date
    03-20-2013
    Location
    Manchester
    MS-Off Ver
    Excel 2010
    Posts
    200

    Re: Sum based on date range by workdays in adjacent column

    hi
    almost perfect
    however i need it to be the last 5 working days, and not just day
    this possible? thanks

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Sum based on date range by workdays in adjacent column

    Assuming the workdays are Mon thru Fri...

    =SUMIFS(J:J,A:A,">="&WORKDAY(NOW(),-5),A:A,"<="&TODAY())
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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. Counting unique items on a list based on date in adjacent column
    By Mafoo17 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-30-2013, 04:24 PM
  2. [SOLVED] need help calculating workdays within a date range
    By rh23456 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-21-2013, 06:04 PM
  3. Identify a range based on adjacent column....
    By Alex_Sal in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-25-2013, 07:56 AM
  4. Replies: 1
    Last Post: 01-05-2011, 05:18 PM
  5. Selecting range based on adjacent column
    By yaju1120 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-05-2007, 10:41 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