+ Reply to Thread
Results 1 to 7 of 7

Thread: Finding Matches within Date Ranges

  1. #1
    Registered User
    Join Date
    03-04-2010
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    4

    Finding Matches within Date Ranges

    Hello,

    I have a spreadsheet developed for an entire years worth of daily work. I have a starting date for the year and an end date for the year, 10,1,2009 - 9,30,2010.

    I am trying to develop a formula that will search the entire year work dates and each time the same date appears will sum a third column that has hours per day assigned to that specific date. I.E. if i have 3 of the same dates spread throughout the year and 2 hours of work assigned for that date it will sum the hours and return 6 (3 days times 2 hours = 6). I want to be able to fill out my year work schedule and use the formula to see if i have over 8 hours assigned per date / day for the entire year. Unfortunately i am not allowed to set my schedule in ascending order, i have to list groups of work for the year and that is requiring me to have the same date appear in several different areas of my year schedule as i only assign a few hours of work to each group that i work on daily to total 8 hours per day.

  2. #2
    Forum Guru NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    32,636

    Re: Need help with Dates in excel

    Try Sumif. See Excel help for more.

    e.g

    =Sumif($A$1:$A$100,X1,$B$1:B$100)

    this will sum values in B1:B100 where A1:A100 has same value (date) as entry in X1
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  3. #3
    Registered User
    Join Date
    03-04-2010
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Need help with Dates in excel

    Quote Originally Posted by NBVC View Post
    Try Sumif. See Excel help for more.

    e.g

    =Sumif($A$1:$A$100,X1,$B$1:B$100)

    this will sum values in B1:B100 where A1:A100 has same value (date) as entry in X1

    Tried that and it works for one column of dates, but will not seek dates between a two column date range. Spreadsheet is an example of what I am trying to accomplish. Basically, what I am trying to have a formula do is to search for a single date between a date range even if it shows several times within a date range and total or sum the number of hours associated with that single date. (spreadsheet yellow column)
    Attached Files Attached Files

  4. #4
    Forum Guru NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    32,636

    Re: Need help with Dates in excel

    Can you fill that column with expected results.. I am not sure I follow.
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  5. #5
    Registered User
    Join Date
    03-04-2010
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Need help with Dates in excel

    Quote Originally Posted by NBVC View Post
    Can you fill that column with expected results.. I am not sure I follow.
    The hrs/day column has the amount of hours spent between the two columns summed up. from column E
    Attached Files Attached Files

  6. #6
    Forum Guru NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    32,636

    Re: Need help with Dates in excel

    Try:

    =SUMPRODUCT(--($B$5:$B$19<=G5),--($C$5:$C$19>=G5),$E$5:$E$19)

    copied down

    You can hide 0's by formatting cells as custom: 0;-0;;@
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  7. #7
    Registered User
    Join Date
    03-04-2010
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Need help with Dates in excel

    Quote Originally Posted by NBVC View Post
    Try:

    =SUMPRODUCT(--($B$5:$B$19<=G5),--($C$5:$C$19>=G5),$E$5:$E$19)

    copied down

    You can hide 0's by formatting cells as custom: 0;-0;;@

    That worked, thanks for all your help.

+ 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.2.0