+ Reply to Thread
Results 1 to 4 of 4

Sumifs Using Date Ranges

  1. #1
    Registered User
    Join Date
    05-29-2009
    Location
    Northern Ireland
    MS-Off Ver
    Excel 2007
    Posts
    78

    Lightbulb Sumifs Using Date Ranges

    Hi
    is there any way i can calculate 4 & 12 week sales as per highlighted columns on the attached doc for each product code listed (use the date column to lookup the date range re 4& 12 weeks...)

    thanks

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,084

    Re: Sumifs Using Date Ranges

    The ranges need to be the same size; for example:

    =COUNTIFS(H8:H16,H8,D8:D16,">"&DATE(2012,11,29))


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    05-29-2009
    Location
    Northern Ireland
    MS-Off Ver
    Excel 2007
    Posts
    78

    Re: Sumifs Using Date Ranges

    Hi,
    this works ok if the date is manually typed into the cell, but i need a formula that automatically calculates the 4/12 weeks using the date column.... any ideas??

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,084

    Re: Sumifs Using Date Ranges

    Yes, use the date column ... I was just replicating what you had but trying to make it more obvious and readable as a date ... hence using the DATE function.

    =COUNTIFS(H8:H16,H8,D8:D16,">"&DATE(2012,11,29))

    could be:

    =COUNTIFS($H$8:$H$16,$H8,$D$8:$D$16,">"&$E8)


    Regards, TMS

+ 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