Results 1 to 10 of 10

Thread: Need formula Help...........go figure....LOL

  1. #1

    Need formula Help...........go figure....LOL



    Register for a FREE account, and/
    or Log in to avoid these ads!

    I am trying to calculate Job Start Time the Job End Time and get a total (got this part covered) I'm having trouble subtracting 1 hour from jobs that take more than an hour to complete. I will attempt to post a screen cap of the form I am using.

    Click image for larger version. 

Name:	8-2-2011 6-07-28 PM.jpg 
Views:	33 
Size:	52.7 KB 
ID:	184

  2. #2
    Administrator Ken Puls's Avatar
    Join Date
    Mar 2011
    Location
    Nanaimo, BC, Canada
    Posts
    2,195
    Articles
    57
    Blog Entries
    14
    The secret to this is that times are actually just fractions of days. So to get one hour, you just use =1/24. To get minutes, you'd go with =1/24/60.

    I've mocked up your sample and attached it here.

    Hope it helps!
    Attached Files Attached Files
    Ken Puls, FCPA, FCMA, MS MVP (Excel)

    Master your data with Power Query: Purchase your copy of my book M is for Data Monkey today!

    Main Site: http://www.excelguru.ca -||- Blog: http://www.excelguru.ca/blog -||- Forums: http://www.excelguru.ca/forums
    Check out the Excelguru Facebook Fan Page -||- Follow Me on Twitter

    If you've been given VBA code (a macro) for your solution, but don't know where to put it, CLICK HERE.

  3. #3
    Yes...Thanks it did work for the most part, but the total box at the bottom (Total -1 Hour) still does not populate a running total. It just keeps the ########## until the whole
    is filled in. Some days we don't do that many calls, so we may not fill up the sheet.
    Click image for larger version. 

Name:	page2.jpg 
Views:	9 
Size:	104.5 KB 
ID:	187

  4. #4
    Administrator Ken Puls's Avatar
    Join Date
    Mar 2011
    Location
    Nanaimo, BC, Canada
    Posts
    2,195
    Articles
    57
    Blog Entries
    14
    Did you adapt the formula that was in my sample?

    In K9 you should enter: =IF(I9>1/24,I9-1/24,I9)

    Copy that down the column and you should be sorted.
    Ken Puls, FCPA, FCMA, MS MVP (Excel)

    Master your data with Power Query: Purchase your copy of my book M is for Data Monkey today!

    Main Site: http://www.excelguru.ca -||- Blog: http://www.excelguru.ca/blog -||- Forums: http://www.excelguru.ca/forums
    Check out the Excelguru Facebook Fan Page -||- Follow Me on Twitter

    If you've been given VBA code (a macro) for your solution, but don't know where to put it, CLICK HERE.

  5. #5
    No, Sorry, I missed that one. I really do appreciate it man............I have been sweating over this for 3 days. It all works now.

    Thanks

  6. #6
    Administrator Ken Puls's Avatar
    Join Date
    Mar 2011
    Location
    Nanaimo, BC, Canada
    Posts
    2,195
    Articles
    57
    Blog Entries
    14
    Very cool, glad to be of help.
    Ken Puls, FCPA, FCMA, MS MVP (Excel)

    Master your data with Power Query: Purchase your copy of my book M is for Data Monkey today!

    Main Site: http://www.excelguru.ca -||- Blog: http://www.excelguru.ca/blog -||- Forums: http://www.excelguru.ca/forums
    Check out the Excelguru Facebook Fan Page -||- Follow Me on Twitter

    If you've been given VBA code (a macro) for your solution, but don't know where to put it, CLICK HERE.

  7. #7

    found a glitch

    I found a glitch in the formula..........if the time does not go over an hour, the - 1 hour column shows the total time for the call, not a zero.

  8. #8
    Administrator Ken Puls's Avatar
    Join Date
    Mar 2011
    Location
    Nanaimo, BC, Canada
    Posts
    2,195
    Articles
    57
    Blog Entries
    14
    Ah, okay. I built it that way intentionally.

    Try this: =IF(I9>1/24,I9-1/24,0)
    Ken Puls, FCPA, FCMA, MS MVP (Excel)

    Master your data with Power Query: Purchase your copy of my book M is for Data Monkey today!

    Main Site: http://www.excelguru.ca -||- Blog: http://www.excelguru.ca/blog -||- Forums: http://www.excelguru.ca/forums
    Check out the Excelguru Facebook Fan Page -||- Follow Me on Twitter

    If you've been given VBA code (a macro) for your solution, but don't know where to put it, CLICK HERE.

  9. #9
    Thanks I'll change that.

    Now.....how would I lock the formulas so they can't be changed, but others can input their
    Data?


    Kinda new at this so sorry for all the questions.....

  10. #10
    Administrator Ken Puls's Avatar
    Join Date
    Mar 2011
    Location
    Nanaimo, BC, Canada
    Posts
    2,195
    Articles
    57
    Blog Entries
    14
    No problem.

    The first thing I would do is create a Style for my data entry cells. (I have a writeup here: http://www.excelguru.ca/node/53) This isn't totally necessary, but sure makes it easier to update later.

    When you're creating the style, make sure that you go into "Protection" and uncheck the "Locked" box.

    After that, just protect your worksheet, and your users won't be able to edit the protected ranges, just the ones you've allowed.

    Some notes to go with this:
    • The protection can be broken very easily by any guru. I usually just use a blank password to protect the worksheets from accidental damage, but this lets users in if they need to fix a bug.
    • I always colour my data entry cells. I use a light green and tell my users that "green means go". Every spreadsheet I've built in this company has green data entry cells so that all my users know exactly where they can enter data, and they know never to enter data in a cell that isn't green.
    Hope this helps,
    Ken Puls, FCPA, FCMA, MS MVP (Excel)

    Master your data with Power Query: Purchase your copy of my book M is for Data Monkey today!

    Main Site: http://www.excelguru.ca -||- Blog: http://www.excelguru.ca/blog -||- Forums: http://www.excelguru.ca/forums
    Check out the Excelguru Facebook Fan Page -||- Follow Me on Twitter

    If you've been given VBA code (a macro) for your solution, but don't know where to put it, CLICK HERE.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •