Display Negative Time in Excel | 2 Examples

Поділитися
Вставка
  • Опубліковано 25 сер 2024

КОМЕНТАРІ • 41

  • @awsblacknight6956
    @awsblacknight6956 2 місяці тому

    Thanks for the useful video!
    Useful tip for others who want to count the days between dates:
    instead of using "dd" to output in numbers, use "00" or "000". Only realized after looking more closely that the value output using "dd" is only accurate for differences less than 1 month apart.

  • @RicardoSantos-gl9hj
    @RicardoSantos-gl9hj 2 місяці тому

    Fantastic. Many Thanks for the Useful Video

  • @octavianboghici
    @octavianboghici 4 місяці тому

    Thank you! I really appreciate it!

  • @sunilmadhavarapu9012
    @sunilmadhavarapu9012 3 місяці тому

    Thanq I like the way of explain the solution

  • @OakleyTurvey
    @OakleyTurvey 3 роки тому +2

    Hi Alan,
    You can put the differences into two columns using an IF to determine whether the answer is negative and reversing the maths if so for the negative column. (Similar to double-entry bookkeeping with credits and debits.) This then negates the need for TEXT and ABS and allows maths on the resultant numbers (if needed). I like your method though if no need of further maths...

  • @BruxBrule
    @BruxBrule 2 роки тому

    Thank you for this, this works perfectly for my scenario when reporting staff hours..."scheduled hours vs. hours worked" and whether they were over/under their scheduled shift.

  • @chandrajyotidatta3196
    @chandrajyotidatta3196 5 місяців тому

    Very helpful

  • @susmitsen1588
    @susmitsen1588 2 роки тому

    Great, one of the best and easiest way to put the logic in the present scenario... 😘😀

  • @davemason2604
    @davemason2604 3 роки тому

    Hi Alan
    Good tutorial.
    I am the guy who sent you the original question and your solution helped on similar scenarios I was doing. Great explanation and keep up the good work. Cheers

    • @Computergaga
      @Computergaga  3 роки тому +1

      Hey Dave, thanks for the question and the comments 👍

  • @merajakhtar2803
    @merajakhtar2803 2 роки тому

    Thank You So Much for this sir, I am really really thankful to you....

  • @5alid-Alanazi
    @5alid-Alanazi 8 місяців тому

    Great, thank you so much

  • @wayneedmondson1065
    @wayneedmondson1065 3 роки тому +1

    Hi Alan. An interesting problem. Since the underlying fraction of day is still calculated (just the formatting is wonky), another method would be to figure out the number of seconds difference with something like: =(C3-C2)*(24*60*60) which would show positive/negative seconds. You could then convert the number of positive/negative seconds into pos/neg minutes and seconds in adjacent columns. But, to get the time formatting, there seems to be no other method than converting to text, as you demonstrated, outside of the 1904 date change which could be risky if the workbook includes other date/time related inputs. Thanks for this discussion and the heads up on how it works :)) Thumbs up!!

  • @stephenallen4829
    @stephenallen4829 3 роки тому

    Another possible approach is to show the calculation converted to doubles. Then convert back in a second column for display purposes using your text formatting method. Then you would always have data for possible onward calculation.
    This is simply exposing what Excel does behind the scenes, but useful for reminding us how dates and times work.

  • @joycruz2251
    @joycruz2251 2 роки тому

    Thanks it really help my computation.. 😊

  • @Skodaparthi
    @Skodaparthi 2 роки тому

    Thank you soo much for this

  • @DerMega
    @DerMega Рік тому

    Thanks for the video, it helped me a lot.
    For the second approach you dont need the abs() function you just could have switched C and D in the calculation to get the positive difference and format it as text with the minus afterwards :)

  • @demtro
    @demtro 4 місяці тому

    I have this problem, and I have hundreds of dates. I tried to use the 1904 date system and make adjustments however when I import new dates, I need to do it again so that is not an option. The text feature will not work either as I need to use that field to perform additional calculations. I posted this problem in a forum and was asked why not use the ABS feature to display the absolute value. That is not a bad idea, however I would need a way to identify which fields were originally negative so I can address that in the formula. Do you have any other ways or ideas to display negative times that will allow me to do calculations or a way to use ABS but identify the negative ones with a color or something?

  • @SolomonKinyanjui_sk
    @SolomonKinyanjui_sk 3 роки тому

    Good work

  • @lausianne
    @lausianne 6 місяців тому

    Is there any logical reason why Excel cannot handle negative times properly? No problem with Libre Office or Google sheets.
    1904 is no solution because it messes up every date on the sheet, text is no option because it's no good for calculations.

  • @xavierfranzvicente5940
    @xavierfranzvicente5940 2 роки тому

    Hi! just a question can you show us how to deduct hours on any time for example 1 want to deduct 2 hours from 12:00am or 1am
    hope you can helps us Thank you! more power

    • @Computergaga
      @Computergaga  2 роки тому

      Sure. You will need the date in a column or the same cell to subtract a time from 1 am to the previous day accurately.

    • @xavierfranzvicente5940
      @xavierfranzvicente5940 2 роки тому

      @@Computergaga ill look forward in you teaching us this with a video! god bless i kinda not super good with excel hahaha

  • @alishan459
    @alishan459 2 роки тому

    I have a problem. I want hh:mm because my data have high values

    • @Computergaga
      @Computergaga  2 роки тому

      Sure. That shouldn't be a problem. Use [h]:mm if its over 24 hours.

  • @DLPPAnshumanBanerjee
    @DLPPAnshumanBanerjee 2 роки тому +1

    Great. Copied