+ Reply to Thread
Results 1 to 9 of 9

Help with adjusting formula so it does't calculate/display till all cells are filled in

  1. #1
    Registered User
    Join Date
    10-14-2018
    Location
    London
    MS-Off Ver
    Mac V15
    Posts
    12

    Help with adjusting formula so it does't calculate/display till all cells are filled in

    Hi

    I am trying to adjust an excel timesheet given to me. I have got a formula to calculate the broken turnaround, but I don't want it to calculate/display until two of the cells within the formula are filled in.

    Otherwise it auto displays a negative number till they are filled in.

    The formula I have is =SUM(D22 - C24 - 46800/86400) (where D22 is the time I leave say on a Monday night and C24 is the time I am called the next day say on Tuesday morning). The formula is calculating how many hours I break the 11 hour turn around.

    I think it is the IF command but I have made several attempts to try to make it work but am completely stumped as it will not calculate and says I got the formula wrong.

    Any help would be greatly appreciated.

    Thanks

    This has also been answered at https://www.mrexcel.com/forum/excel-...-complete.html --6SJ
    Last edited by 6StringJazzer; 10-14-2018 at 03:24 PM. Reason: Moderator added xpost link

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

    Re: Help with adjusting formula so it does't calculate/display till all cells are filled i

    Try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    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
    Registered User
    Join Date
    10-14-2018
    Location
    London
    MS-Off Ver
    Mac V15
    Posts
    12

    Re: Help with adjusting formula so it does't calculate/display till all cells are filled i

    this works, thank you


    I am also trying to Make it round up to the hour, so if broken turnaround was broken by say 1hr 20 mins it rounds up to 2 hours. Now I have a round up formula in the cell below that takes the calculation result from eh cell above, but I would prefer to do it all as one formula. Is that possible, or are all my attempts wrong cos it is not.

    Thanks

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,863

    Re: Help with adjusting formula so it does't calculate/display till all cells are filled i

    It can be done as one formula. What are the two formulae you now wish to combine? Maybe this:

    =IF(OR(D22="",C24=""),"",ROUNDUP(SUM(D22 - C24 - 46800/86400),0))
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Help with adjusting formula so it does't calculate/display till all cells are filled i

    Welcome to the Forum littlered136!

    As a new member, please take the time to review our rules. There aren't many, and they are all important. Rule #3 requires you to include a link if you post the same question somewhere else. I have edited your post to include the link this time because you are a new member.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  6. #6
    Registered User
    Join Date
    10-14-2018
    Location
    London
    MS-Off Ver
    Mac V15
    Posts
    12

    Re: Help with adjusting formula so it does't calculate/display till all cells are filled i

    sorry I was doing this on my iPhone and didn't see that rule, thank you for letting me know.

  7. #7
    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,447

    Re: Help with adjusting formula so it does't calculate/display till all cells are filled i

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

  8. #8
    Registered User
    Join Date
    10-14-2018
    Location
    London
    MS-Off Ver
    Mac V15
    Posts
    12

    Re: Help with adjusting formula so it does't calculate/display till all cells are filled i

    Thank you TMS.. just did all the advice given above... Im new to this forum so appreciate you guiding me with what I need to do! Thanks Sarah

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

    Re: Help with adjusting formula so it does't calculate/display till all cells are filled i

    You're welcome. Thanks for the rep.

+ 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. formula to calculate no:of leaves taken by employee till date
    By aswathyradhika in forum Excel General
    Replies: 1
    Last Post: 07-26-2017, 03:21 AM
  2. [SOLVED] Delete Rows till next filled Cell
    By Kaiserschmarrn in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-23-2016, 04:19 AM
  3. [SOLVED] Adjusting formula to calculate weekdays only
    By greeneggsandsam in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-11-2014, 05:40 PM
  4. [SOLVED] Identify the last filled row in Column A and then drag formula in Column B till the same
    By bonny24tycoon in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-13-2012, 10:50 AM
  5. count filled and empty rows till the last filled row
    By Dalal in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-29-2011, 04:32 AM
  6. Formula to display results once 2 cells are filled
    By damonb in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 01-23-2011, 03:54 PM
  7. Formula to calculate days till a given date + more
    By DmitriK in forum Excel General
    Replies: 7
    Last Post: 11-21-2008, 09:04 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