+ Reply to Thread
Results 1 to 4 of 4

SUMIF and TODAY()

  1. #1
    Registered User
    Join Date
    05-17-2012
    Location
    australia
    MS-Off Ver
    Excel 2007
    Posts
    11

    SUMIF and TODAY()

    Hi

    I need some help to try and nut out the use of dates with SUMIF.

    I need to sum a range of values where the corresponding date for a value is less than the current date. For example:


    untitled.JPG

    Todays date = 18/5/12

    Dates Value
    1/4/12 5
    23/4/12 6
    1/3/12 5
    9/2/12 9
    23/6/12 8
    12/12/12 7

    I have tried to use the following SUMIF formulas but without success.

    =SUMIF(A6:A28,"<=TODAY()",B6:B28)
    or
    =SUMIF(A6:A28,"<=A1",B6:B28)

    If i write the formula as =SUMIF(A6:A28,"<=18/5/12",B6:B28) it works ok

    If someone can help that would be appreciated
    Last edited by jacol; 05-17-2012 at 07:47 PM.

  2. #2
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: SUMIF and TODAY()

    This way

    =SUMIF(A6:A28,"<="&TODAY(),B6:B28)
    or
    =SUMIF(A6:A28,"<="&A1,B6:B28)

  3. #3
    Registered User
    Join Date
    05-17-2012
    Location
    australia
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: SUMIF and TODAY()

    Thankyou so much for your prompt reply, much appreciated. works fine

  4. #4
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: SUMIF and TODAY()

    You're welcome. Don't forget to mark your thread as SOLVED (if instructions needed click on Forum Rules @ top of page and see rule #9).

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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