+ Reply to Thread
Results 1 to 4 of 4

SUMIF and DATES

Hybrid View

  1. #1
    Registered User
    Join Date
    05-18-2005
    Posts
    2

    SUMIF and DATES

    I'm using a SUMIF statement where the criteria tests to see if a date is before a fixed date in another cell.

    =SUMIF(A4:A24,<D2,B4:B24)

    where A are dates entered as MMM-YY format and "D2" is a date in the same format.

    SUMIF does not seem to work for dates and I can't find "help" on the issue

  2. #2
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474
    Try...

    =SUMIF(A4:A24,"<"&D2,B4:B24)

    Hope this helps!

  3. #3
    Registered User
    Join Date
    05-18-2005
    Posts
    2

    Almost there

    Your tips make the formula give me an answer - thank you - but it is still incorrect. I simplified the formula to what I've shown below:

    =SUMIF(A4:A5,"<="&D4,B4:B5)

    testing cell D4 which is Aug-05 in MMM-YY format
    A4 = Jul-05
    A5 = Aug 05

    B4=1
    B5=2

    The answer I get is 1, when it should be 3, since I am testing for less than or equal to....

    Any advice?

  4. #4
    Forum Expert
    Join Date
    12-24-2004
    Location
    Sweden
    Posts
    1,256
    It should work...

    Ola
    Attached Files Attached Files

+ 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