简体   繁体   中英

How to calculate time difference between two cells in Excel

I've time value in two columns in my sheet. Ex: Col A & B
In col C i want the time difference between time in A & B

Example :
在此处输入图片说明

But it is giving me seconds difference.
I've tried the formula =INT((B2-A2)*24) but i got hours alone.

My expected result is how many hours,min,seconds differed 01:20:52 in two cells.

How to get that?

将单元格公式设置为=b2-a2 (即应从较大的值中减去较小的值,反之亦然),并将该单元格的格式设置为Time[h]:mm:ss

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM