+ Reply to Thread
Results 1 to 9 of 9

sumproduct formula to reference a specific time period

  1. #1
    Forum Contributor
    Join Date
    07-21-2013
    Location
    washington dc
    MS-Off Ver
    365 MSO
    Posts
    473

    sumproduct formula to reference a specific time period

    HI-

    The below SumProduct formula references a specific Month. How can I amend for below 2 scenarios:

    1) A specific date. Example. 2/21/14, 2/20/14, etc
    2) 1 one week time frame. Example 2/10/14 to 2/14/14, etc.

    Please Login or Register  to view this content.

  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,776

    Re: sumproduct formula to reference a specific time period

    For the first one, just drop the MONTH. For the other, use two comparisons, >=, and <=.


    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
    Forum Contributor
    Join Date
    07-21-2013
    Location
    washington dc
    MS-Off Ver
    365 MSO
    Posts
    473

    Re: sumproduct formula to reference a specific time period

    Can you take a look at my spreadsheet. I created a quick example. For some reason it is not working when I do equals the date. The numbers aren't returning what I expect. test.xlsx

  4. #4
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,481

    Re: sumproduct formula to reference a specific time period

    Because Z column is look like date, but not dates.
    Try to use column B instead (if possible), if not, in next column of Z, try:
    AA2=DATE(RIGHT(Z2,4),LEFT(Z2,2),MID(Z2,4,2))
    Drag down
    Copy and Past Special / Value back to Z column.
    Quang PT

  5. #5
    Forum Contributor
    Join Date
    07-21-2013
    Location
    washington dc
    MS-Off Ver
    365 MSO
    Posts
    473

    Re: sumproduct formula to reference a specific time period

    That didn't work for me either. Maybe I need to switch my fomula to a sumif? If so, how would that look?

  6. #6
    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,776

    Re: sumproduct formula to reference a specific time period

    Couple of problems. The dates aren't dates, they're text that look a bit like date.

    And the formula should be:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    That works for Asia in cell A7.

    Note that you need commas to separate the elements or use * to multiply the elements together.



    Regards, TMS
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    07-21-2013
    Location
    washington dc
    MS-Off Ver
    365 MSO
    Posts
    473

    Re: sumproduct formula to reference a specific time period

    Thank you. One more question. Would below work for a 1 week time frame if dates are correct in b1, and b2?
    Please Login or Register  to view this content.

  8. #8
    Forum Contributor
    Join Date
    07-21-2013
    Location
    washington dc
    MS-Off Ver
    365 MSO
    Posts
    473

    Re: sumproduct formula to reference a specific time period

    nevermind I figure it out. THanks guys

  9. #9
    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,776

    Re: sumproduct formula to reference a specific time period

    You're welcome. Thanks for the rep.


    I suspect you worked out that you'd need to split the two date comparisons.


    Regards, TMS

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Formula Needed - Calculate total hours that fall between a specific time period.
    By JennyGP in forum Excel - New Users/Basics
    Replies: 8
    Last Post: 04-19-2020, 02:44 AM
  2. Formula to not count hours before and after a specific set time period
    By Chrislawsin in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 02-16-2012, 06:29 PM
  3. Formula to look up value in specific time period
    By chintanbtech in forum Excel General
    Replies: 0
    Last Post: 01-17-2012, 12:44 PM
  4. Replies: 2
    Last Post: 04-27-2011, 08:21 AM
  5. Formula count occurences in a specific time period
    By sarahmad in forum Excel General
    Replies: 7
    Last Post: 10-26-2009, 01:33 PM

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