+ Reply to Thread
Results 1 to 5 of 5

Excel 2007 : Time Formatting and getting a % difference

  1. #1
    Registered User
    Join Date
    08-25-2010
    Location
    Birmingham
    MS-Off Ver
    Excel 2003
    Posts
    44

    Time Formatting and getting a % difference

    Hi There,

    Wondering if anyone could help?

    I have two time column like this:

    Col A (planned) would equal say 04:59:10 (hours:mins:seconds) format
    Col B (Actual) would equal say 05:02:10 (hours:mins:seconds) format

    what i need is a third column that shows the difference in the same format so for the example above it would be a difference of 00:03:00 then i need this as a percentage i can do this with normal numbers etc and have done, but with these time formats it doesnt seem to work correctly

    Cheers

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Time Formatting and getting a % difference

    The difference is a basic B less A (true Date & Time values are just Numbers (24 hours = 1)
    Note: if using 1900 Date System (PC default) you can't display negative values in true Time Format (unclear if this is something you need to account for or not)

    Regards %, of what ? You should find you can calculate the % of the difference without issue - can you elaborate ?

  3. #3
    Registered User
    Join Date
    08-25-2010
    Location
    Birmingham
    MS-Off Ver
    Excel 2003
    Posts
    44

    Re: Time Formatting and getting a % difference

    Hi Donkey thanks for the reply.

    How do i get the difference between the two though? The percentage i need is the difference, so for instance the actual time driven is 3 mins more than the planned time, what is that as a %? Maybe i am confusing the issue and this is infact very simple?

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Time Formatting and getting a % difference

    The difference in C is:

    Please Login or Register  to view this content.
    The % is:

    Please Login or Register  to view this content.
    However, my point re: negative times holds true - in this case where Actual > Planned you have an issue assuming you're running 1900 date system as Col C will not display.

    Assume then the example times you provide are reversed such that Planned < Actual (eg -0:03:00)
    If you wish to show the time as negative (without reverting to 1904 Date System - read up before doing so) then an alternative:

    Please Login or Register  to view this content.
    note at this point the value in Col C is a text string and not a true Time Value, subsequently:

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    08-25-2010
    Location
    Birmingham
    MS-Off Ver
    Excel 2003
    Posts
    44

    Re: Time Formatting and getting a % difference

    Great this works perfectly

+ 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