+ Reply to Thread
Results 1 to 15 of 15

Calculating using time

  1. #1
    Forum Contributor
    Join Date
    04-14-2009
    Location
    Wales
    MS-Off Ver
    Excel 2010
    Posts
    129

    Calculating using time

    Please look at the attachment. Firstly, i'd like cell G5 to show the amount of time worked i.e diff between E6 & F6. Secondly I'd like help with the formula for cells AF6 & AG6 which would require AB6-AC6 divided by the frames, every time I try it I get a messed up answer. Thanks for reading.
    Attached Files Attached Files
    Last edited by omletto; 11-12-2009 at 07:28 AM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,038

    Re: Calculating using time

    Formula in G5 is =MOD(F5-E5,1)

    And about second question I'm not quite sure what do you look for
    Never use Merged Cells in Excel

  3. #3
    Forum Contributor
    Join Date
    04-14-2009
    Location
    Wales
    MS-Off Ver
    Excel 2010
    Posts
    129

    Re: Calculating using time

    Thank you very much for first answer, that worked perfectly. Sorry, I didn't explain very well. I need to work out the peices per hour. That would mean the total peices (3811) divided by total hours worked less the total justified downtime. hope thats clearer.

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,038

    Re: Calculating using time

    Try this:

    In AF column you can write =D5/G5.
    But you'll get error due to dividing by 0

    Therefore you can use this:

    =IF(ISERR(D5/G5),"",D5/G5)

    Wich will give you blank cell instead of error.

    Same for AG column you can write:
    =IF(AF5="","",AF5/3600)

  5. #5
    Forum Contributor
    Join Date
    04-14-2009
    Location
    Wales
    MS-Off Ver
    Excel 2010
    Posts
    129

    Re: Calculating using time

    That comes up as a blank, in AF6 it should read 27hrs minus 1 hr 57 minutes. then i need it to show how many peices were made per hour. so that should equal 3811 divided 25hrs and 3 minutes.

  6. #6
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,038

    Re: Calculating using time

    I see where I made mistake...

    Try look here is this OK for you now:

    SAWS.xls

    However, I had to change those ugly merged cells

    (only monday adjusted)

    Also, I get different values.

    Pieces per hour can't be hour. It's a number (I got 3387)

    Same is for Pieces per second (i just forgot to remove formatting, but format it as number)
    Last edited by zbor; 11-12-2009 at 05:44 AM.

  7. #7
    Forum Contributor
    Join Date
    04-14-2009
    Location
    Wales
    MS-Off Ver
    Excel 2010
    Posts
    129

    Re: Calculating using time

    Firstly I agree with the merged cells, that wasn't me But the frames per person was correct, D6+J6+P6+V6= 3811 Now what I need is for the 3811 to be divided by the total hrs worked less the total justified down time 25hrs 3mins which should come to approx 152.

  8. #8
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,038

    Re: Calculating using time

    Look here...
    However, I still didn't get 152 but I hope we are close...

    SAWS.xls

    Take a look on SUMIF function wich is basically I use

  9. #9
    Forum Contributor
    Join Date
    04-14-2009
    Location
    Wales
    MS-Off Ver
    Excel 2010
    Posts
    129

    Re: Calculating using time

    Thanks for the help, but the peices per hr still reads 3651, if 3811 were made in 25 hrs then 3651 cannot be the output per hr.

  10. #10
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,038

    Re: Calculating using time

    How about this:

    =IF(AB5=0,"",AE5/24*(AB5-AC5))

  11. #11
    Forum Contributor
    Join Date
    04-14-2009
    Location
    Wales
    MS-Off Ver
    Excel 2010
    Posts
    129

    Re: Calculating using time

    That comes up as a blank

  12. #12
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,038

    Re: Calculating using time

    Yes. And extend down and you'll get numbers in AF6 and AF7.

    If you don't want blank you'll get DIV/0 error but you can't get numbers because you dividing with 0.
    Last edited by zbor; 11-12-2009 at 07:10 AM.

  13. #13
    Forum Contributor
    Join Date
    04-14-2009
    Location
    Wales
    MS-Off Ver
    Excel 2010
    Posts
    129

    Re: Calculating using time

    i need a formula that will divide 3811units divided by 25:03 and give the answer in units.

  14. #14
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,038

    Re: Calculating using time

    And formula do that.
    Just enter in AF6 : =IF(AB6=0,"",AE6/24*(AB6-AC6))

  15. #15
    Forum Contributor
    Join Date
    04-14-2009
    Location
    Wales
    MS-Off Ver
    Excel 2010
    Posts
    129

    Re: Calculating using time

    Hi mate, your formula works with a couple more brackets - =IF(AB6=0,"",AF6/(24*(AB6-AC6))). :-)

    Thank you very much for your help, much appreciated.

+ 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