+ Reply to Thread
Results 1 to 3 of 3

Date Range in SumIf Formula?

  1. #1
    Registered User
    Join Date
    02-21-2005
    Posts
    10

    Date Range in SumIf Formula?

    Excel 2000, 9.0

    I'm trying to establish a condition in a SumIf formula stating a range of dates.

    e.g. Column A: Date, Column B: Cost

    If the date in Column A is between 2/1/05 and 2/28/05, add expense from Column B.

    I can only get it to add "later than" by indicating
    =SUMIF('Men''s'!A4:FA93,">1/31/04",'Men''s'!B4:B293)
    But that just adds up Column B ofr the rest of the year...

    Any help's appreciated!

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

    =SUMPRODUCT(--(A1:A100>="2/1/2005"+0),--(A1:A100<="2/28/2005"+0),B1:B100)

    OR

    =SUMPRODUCT(--(A1:A100>=C1),--(A1:A100<=D1),B1:B100)

    ...where C1 contains the start date, and D1 contains the end date.

    Hope this helps!

    Quote Originally Posted by burgeon
    Excel 2000, 9.0

    I'm trying to establish a condition in a SumIf formula stating a range of dates.

    e.g. Column A: Date, Column B: Cost

    If the date in Column A is between 2/1/05 and 2/28/05, add expense from Column B.

    I can only get it to add "later than" by indicating
    =SUMIF('Men''s'!A4:FA93,">1/31/04",'Men''s'!B4:B293)
    But that just adds up Column B ofr the rest of the year...

    Any help's appreciated!

  3. #3
    Registered User
    Join Date
    02-21-2005
    Posts
    10
    That works perfectly - Thanks!

+ 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