Results 1 to 10 of 10

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

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

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

    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:	36 
Size:	52.7 KB 
ID:	184

  2. #2
    Administrator Ken Puls's Avatar
    Join Date
    Mar 2011
    Location
    Nanaimo, BC, Canada
    Posts
    2,450
    Articles
    44
    Blog Entries
    14
    Excel Version
    Excel Office 365 Insider
    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

    Learn to Master Your Data at the Power Query Academy (the world's most comprehensive online Power Query training), with my book M is for Data Monkey, or our new Power Query Recipe cards!

    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:	10 
Size:	104.5 KB 
ID:	187

  4. #4
    Administrator Ken Puls's Avatar
    Join Date
    Mar 2011
    Location
    Nanaimo, BC, Canada
    Posts
    2,450
    Articles
    44
    Blog Entries
    14
    Excel Version
    Excel Office 365 Insider
    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

    Learn to Master Your Data at the Power Query Academy (the world's most comprehensive online Power Query training), with my book M is for Data Monkey, or our new Power Query Recipe cards!

    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,450
    Articles
    44
    Blog Entries
    14
    Excel Version
    Excel Office 365 Insider
    Very cool, glad to be of help.
    Ken Puls, FCPA, FCMA, MS MVP

    Learn to Master Your Data at the Power Query Academy (the world's most comprehensive online Power Query training), with my book M is for Data Monkey, or our new Power Query Recipe cards!

    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
  •