+ Reply to Thread
Results 1 to 4 of 4

Finding date when the sum in a range equals the hours planned

  1. #1
    Registered User
    Join Date
    09-30-2014
    Location
    Netherlands
    MS-Off Ver
    Windows 7
    Posts
    13

    Question Finding date when the sum in a range equals the hours planned

    Hello,

    I am having a problem for my excel planning tool.

    I wish to enter in different columns (dates) in 1 row an amount of planned ours spent on a specific task (task = row)

    In a cell I wish to enter the hours used and next to it the date on which I should be at the moment

    for exemple:

    Date: 01-10 | 02-10 | 03-10 | 04-10
    Hours: 20 | 20 | 20 | 20

    Used hours| 45 (fill in) | Date| 03-10 (sum of hours is 40 at 02-10, which is to small, at 03-10 the sum is 60, which is bigger (or the same) as used hours)

    Attached is a file to see this situation.

    Does anyone know a formula to find the date based on used hours?
    Attached Files Attached Files

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Finding date when the sum in a range equals the hours planned

    I didn't download your file (too big!).


    Try something like this...

    Data Range
    A
    B
    C
    D
    E
    1
    Date
    10/1/2014
    10/2/2014
    10/3/2014
    10/4/2014
    2
    Hours
    20
    20
    20
    20
    3
    4
    Lookup
    Date
    5
    45
    10/3/2014


    This array formula** entered in B5:

    =INDEX(B1:E1,MATCH(TRUE,SUBTOTAL(9,OFFSET(B2,,,,COLUMN(B2:E2)-COLUMN(B2)+1))>=A5,0))

    Format as Date

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    09-30-2014
    Location
    Netherlands
    MS-Off Ver
    Windows 7
    Posts
    13

    Re: Finding date when the sum in a range equals the hours planned

    WORKS PERFECTLY!! Thank you so much!

    I have no clue what formula that is.. an array formula is completely new to me.. how did you learn to do this?

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Finding date when the sum in a range equals the hours planned

    Sorry for the delayed response. I took a few weeks off!

    Quote Originally Posted by TryToUnderstandExcel View Post
    WORKS PERFECTLY!! Thank you so much!
    You're welcome!

    I have no clue what formula that is.. an array formula is completely new to me..
    See this for more info on array formulas:

    http://www.cpearson.com/Excel/ArrayFormulas.aspx

    how did you learn to do this?
    Many years of experience with lots and lots of trial and error!

+ 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] Finding out how many hours are used between a time range
    By lesoies in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-06-2013, 12:50 AM
  2. Distributing planned man-hours over weekending dates
    By lanre in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-30-2013, 04:16 AM
  3. Traffic Light for Hours / Days actual vs planned
    By JPD in forum Excel General
    Replies: 4
    Last Post: 06-08-2011, 10:21 AM
  4. Replies: 1
    Last Post: 06-08-2011, 02:00 AM
  5. Excel 2007 : Gathering Planned and Actual hours
    By Kburtt in forum Excel General
    Replies: 0
    Last Post: 02-28-2011, 10:42 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