How Calculate Average Of Minutes and Seconds In Excel

前端 未结 1 1598
暖寄归人
暖寄归人 2021-01-29 07:39

My raw data in column B each on a new line looks like this:- 5.04,3.57,0.58,10.01 Left of . is minutes and right of . is seconds. I need to calculate the average of my data . Ho

相关标签:
1条回答
  • 2021-01-29 08:07

    You need to convert to a true time; one option is to use TIME and parse the raw data:

    In a new column, use:

    =TIME(,LEFT(B1,FIND(".",B1)),MID(B1,FIND(".",B1)+1,999))
    

    Another option is to use TIMEVALUE:

    =TIMEVALUE("00:"&SUBSTITUTE(B1,".",":"))
    

    EDIT:

    Use TEXT to force the raw times to retain a trailing zero when parsing:

    =TIMEVALUE("00:"&SUBSTITUTE(TEXT(B5,"00.00"),".",":"))
    

    Another option, probably the best one actually, is just a bit of math:

    =TIME(,TRUNC(B1),(B1-TRUNC(B1))*100)
    

    0 讨论(0)
提交回复
热议问题