Forum Discussion

soulzchaos's avatar
soulzchaos
Copper Contributor
May 25, 2021
Solved

Error subtracting times

I am attempting to subtract times from one another to figure out how long something took. So Why do i get a value error when i try to subtract simple times from each other? (error says: A value used ...
  • HansVogelaar's avatar
    May 25, 2021

    soulzchaos 

    The values in the Time Arrived and Time Out columns are left-aligned. This is usually a sign that Excel sees the values as text, not as real times. Insert a space between the time and the am/pm indication:

     

    11:00 am

    4:00 pm

     

    Also, use =C4-B4 instead of =B4-C4.

    If there is a chance that Time Out will be after midnight, use =MOD(C4-B4,1)

Resources