+ Reply to Thread
Results 1 to 3 of 3

DSUM where criteria is Current Date

  1. #1
    Registered User
    Join Date
    11-04-2010
    Location
    Finland
    MS-Off Ver
    Excel 2007
    Posts
    14

    DSUM where criteria is Current Date

    Hello,

    I need to get sum of values based on current date criteria.
    TO get sum for values where date is smaller that today's date.

    This is overdues report.

    I've tried with DSUM and SUMIF but nothing seem to work.

    DSUM works like this : =DSUM(Details!A:N;"maksamatta";C34:C35)

    where in cell C35 is the current date written "<8.6.2011"
    But I sure as hell don't want to change everyday a current date on to that field.

    How can I get it like this :

    DSUM(Details!A:N;"maksamatta";<now())

    Thanks a lot,

    Magerator
    Last edited by Magerator; 06-08-2011 at 07:38 AM. Reason: Solved

  2. #2
    Registered User
    Join Date
    11-04-2010
    Location
    Finland
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: DSUM where criteria is Current Date

    Okay got this solved from another forum.

    I tried this and it didn't work :
    =SUMIF(Details!G:G;<NOW();Details!E:E)

    the solution was this :
    =SUMIF(Details!G:G;"<"&NOW();Details!E:E)

    Simple but took half of my day...

    Thank you anyways.

    Magerator

  3. #3
    Valued Forum Contributor
    Join Date
    07-17-2005
    Location
    Abergavenny, Wales, UK
    MS-Off Ver
    XL2003, XL2007, XL2010, XL2013, XL2016
    Posts
    608

    Re: DSUM where criteria is Current Date

    Hi

    I know you say you have solved your problem, but I would advise against using NOW() as your criterion, unless the data in column G is formatted with time as well as date.

    IMO you would be bteer to use =TODAY() rather than NOW()

    Also, for your DSUM to work, you could just enter in cell C35 =TODAY() formatted however you wish.
    --
    Regards
    Roger Govier
    Microsoft Excel MVP

+ 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