+ Reply to Thread
Results 1 to 4 of 4

Calculating Hours worked by day

Hybrid View

rapscalli Calculating Hours worked by... 05-04-2012, 05:26 AM
dilipandey Re: Calculating Hours worked... 05-04-2012, 06:08 AM
rapscalli Re: Calculating Hours worked... 05-04-2012, 06:29 AM
dilipandey Re: Calculating Hours worked... 05-04-2012, 06:32 AM
  1. #1
    Registered User
    Join Date
    05-04-2012
    Location
    uk
    MS-Off Ver
    2013
    Posts
    7

    Calculating Hours worked by day

    Hi all,

    i have a task list with
    • hours
    • start date
    • finish date
    In columns a, b and c

    In row 1, from D1:AK1 i have dates as table headers.

    Below these dates i would like to calculate the hours scheduled for the task described on that row.

    Eg a task starting may 1st, ending may 3rd, 3 hrs work.

    I would like to see 1 hr under may 1st, may 2nd and may 3rd.

    I had this formula calculated myself some time ago but have mislaid it, and it has been some time since i've used excel in anger!

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Calculating Hours worked by day

    Hi rapscalli,

    Welcome to the forum.

    Use the below formula in cell D2 and drag it to right and down....

    =IF(AND(D$1>=$B2,D$1<=$C2),$A2/(($C2-$B2)+1),2)

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), dilipandey@gmail.com

  3. #3
    Registered User
    Join Date
    05-04-2012
    Location
    uk
    MS-Off Ver
    2013
    Posts
    7

    Re: Calculating Hours worked by day

    Quote Originally Posted by dilipandey View Post
    Hi rapscalli,

    Welcome to the forum.

    Use the below formula in cell D2 and drag it to right and down....

    =IF(AND(D$1>=$B2,D$1<=$C2),$A2/(($C2-$B2)+1),2)

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    hi DILIPandey,

    many thanks, i've got it working with your help. I also had to add in
    WEEKDAY(F$1,2)<6
    to avoid weekends
    and
    (ISERROR(VLOOKUP(F$1,'logic-Holidays'!$A:$A,1,0))
    to avoid holidays.

    It is all working correctly now. If only i could get the data in the correct format from ms project!

  4. #4
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Calculating Hours worked by day

    Good logics....

    cheers

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

+ 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