+ Reply to Thread
Results 1 to 8 of 8

Thread: Drag Formula

  1. #1
    Registered User
    Join Date
    10-29-2011
    Location
    South Glos
    MS-Off Ver
    Excel 2007
    Posts
    17

    Drag Formula

    Hi. I have the attached simple spread sheet set up and want to drag the formulas down the sheet. At this time, if I drag the formulas I get the last summation shown all down the sheet i.e 66. Is there a way of dragging the formulas and getting a blank cell until I populate number of hours? Thanks.


    PLEASE SEE WORKBOOK ATTACHMENT FURTHER DOWN THIS THREAD
    Attached Files Attached Files
    Last edited by fithawk; 10-30-2011 at 05:23 PM. Reason: wrong type of attachment

  2. #2
    Forum Guru TMShucks's Avatar
    Join Date
    07-15-2010
    Location
    Manchester, England
    MS-Off Ver
    MSO 2003 & 2007
    Posts
    6,187

    Re: Drag Formula

    Please don't post .pdf or .jpg copies of workbook problems ... post the sample workbook.

    Regards

  3. #3
    Registered User
    Join Date
    10-29-2011
    Location
    South Glos
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: Drag Formula

    Quote Originally Posted by TMShucks View Post
    Please don't post .pdf or .jpg copies of workbook problems ... post the sample workbook.

    Regards
    Apologies. Please see attached workbook.
    Attached Files Attached Files

  4. #4
    Forum Guru TMShucks's Avatar
    Join Date
    07-15-2010
    Location
    Manchester, England
    MS-Off Ver
    MSO 2003 & 2007
    Posts
    6,187

    Re: Drag Formula

    Cell C2: =IF(B2="","",N(C1)+B2)
    Cell D2: =IF(B2="","",G$2-C2)

    And drag both formulae down.

    Regards

  5. #5
    Registered User
    Join Date
    10-29-2011
    Location
    South Glos
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: Drag Formula

    Quote Originally Posted by TMShucks View Post
    Cell C2: =IF(B2="","",N(C1)+B2)
    Cell D2: =IF(B2="","",G$2-C2)

    And drag both formulae down.

    Regards
    Fantastic, many thanks!!

  6. #6
    Registered User
    Join Date
    10-29-2011
    Location
    South Glos
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: Drag Formula

    Quote Originally Posted by fithawk View Post
    Fantastic, many thanks!!
    Is there any way of excel counting the number of hours for column B from either the date format that I have used or another format? Needs to be 3 hrs per day. Thanks.

  7. #7
    Forum Guru TMShucks's Avatar
    Join Date
    07-15-2010
    Location
    Manchester, England
    MS-Off Ver
    MSO 2003 & 2007
    Posts
    6,187

    Re: Drag Formula

    Is there any way of excel counting the number of hours for column B from either the date format that I have used or another format?
    Not as it stands. Even if you use LEFT and MID to split the free format date column, there is no consistency in the input and it doesn't include the year. So, as such, it is open to human error and would require assumptions to be made about which year is required.

    You really need to split the Dates Requested in two, that is, Start Date and End Date ... which presumably are inclusive. You could then use NETWORKDAYS to calculate the number of days in the date range and, from there, work out how many hours per day.

    If you wish to pursue this (different question), I suggest you open a new thread.

    If this has answered your question, please mark this thread as solved. See my signature for details or the FAQ.

    Regards

  8. #8
    Forum Guru TMShucks's Avatar
    Join Date
    07-15-2010
    Location
    Manchester, England
    MS-Off Ver
    MSO 2003 & 2007
    Posts
    6,187

    Re: Drag Formula

    See the attached example.

    Regards
    Attached Files Attached Files

+ 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