Petua: Bahasa lain diterjemahkan Google. Anda boleh melawat English versi pautan ini.
Log masuk
x
or
x
x
Daftar Sekarang
x

or

Bagaimana untuk menukar milisaat ke masa dalam Excel?

Seperti yang kita semua ketahui, satu detik bersamaan dengan milidetik 1000 antara masa yang menyatukan, artikel ini, saya akan bercakap mengenai cara menukar milisaat ke hh: mm: ss dalam Excel.

Tukar milisaat ke hh: mm: ss dengan formula


anak panah gelembung kanan biru Tukar milisaat ke hh: mm: ss dengan formula

Untuk menukar milisaat ke masa, formula berikut boleh memihak kepada anda:

Sila masukkan formula ini ke dalam sel kosong di mana anda ingin mengeluarkan hasilnya:

=CONCATENATE(TEXT(INT(A2/1000)/86400,"hh:mm:ss"),".",A2-(INT(A2/1000)*1000)), dan kemudian seret pemegang pengisian ke sel yang anda mahu gunakan formula ini, dan semua milisaat dalam sel telah ditukar kepada masa, lihat tangkapan skrin:

doc menukarkan milisaat ke masa 1


Cadangan Alat Produktiviti untuk Excel

kte tab 201905

Kutools untuk Excel Membantu Anda Selalu Menyelesaikan Kerja di Hadapan Masa, dan Berdiri Daripada Orang

  • Lebih daripada ciri-ciri canggih 300 yang canggih, yang direka untuk senario kerja 1500, meningkatkan produktiviti oleh 70%, memberi anda lebih banyak masa untuk menjaga keluarga dan menikmati kehidupan.
  • Tidak perlu lagi menghafal formula dan kod VBA, berikan rehat dari otak anda sekarang.
  • Menjadi pakar Excel dalam minit 3, Operasi yang rumit dan berulang boleh dilakukan dalam beberapa saat,
  • Mengurangkan beribu-ribu operasi papan kekunci & tetikus setiap hari, mengucapkan selamat tinggal kepada penyakit pekerjaan sekarang.
  • 110,000 orang yang sangat berkesan dan pilihan syarikat 300 + yang terkenal di dunia.
  • Ciri-ciri penuh 60-hari adalah percubaan percuma. Jaminan wang balik 60 hari. Tahun 2 peningkatan dan sokongan percuma.

Membawa Browsing Tab dan Editing ke Microsoft Office, Jauh Lebih Berkuasa Daripada Tab Penyemak Imbas

  • Tab Pejabat direka untuk Aplikasi Pejabat Word, Excel, PowerPoint dan Lain-lain: Penerbit, Akses, Visio dan Projek.
  • Buka dan buat beberapa dokumen dalam tab baharu pada tetingkap yang sama, dan bukannya dalam tetingkap baru.
  • Meningkatkan produktiviti anda oleh 50%, dan mengurangkan beratus-ratus klik tetikus untuk anda setiap hari!
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    Franciscan Punk · 4 months ago
    Let me rephrase that last question:
    "My question here is how do I right the equation so that any number of milliseconds less that 172,800,00 equals the right number of days?"

    I meant to type:

    My question here is how do I right the equation so that any number of milliseconds more than 172,799,999.00
    equals the right number of days?
  • To post as a guest, your comment is unpublished.
    Franciscan Punk · 4 months ago
    This is a very helpful discussion for me. I found Rob Bell's and Jan Hook's previous posts such a great help to the initial tutorial. I needed the additional "day" column to count out my milliseconds which were over the 84,000,000 per day. So I modified Robs easy equation to say, "=TEXT(A1/86400000,"dd:hh:mm:ss.000")." I also used Jan's second equation posted. Funny thing though, on google sheets, when I use the expression on 0ms, the result is 30:00:00:00.000, instead of 00:00:00:00.000. When I try the expression on 1ms, the result is 30:00:00:00.001, instead of 00:00:00:00.001. When I try the expression on 99999999ms, the result is 31:03:46:39.999. When I try the expression on 1111111111ms, the result is 11:20:38:31.111. Notice that all of these except the 1111111111ms begins with a "3", such as 2ms=30:00:00:00.2. It seems to me that strangely the expression "=TEXT(A1/86400000,"dd:hh:mm:ss.000"), and Jan's longer version both result in throwing off the math by exactly 30 days, until the 172,800,000ms, at which time the 30 days drops off, and the expression reports a result of 01:00:00:00.000.

    My question here is how do I right the equation so that any number of milliseconds less that 172,800,00 equals the right number of days?
  • To post as a guest, your comment is unpublished.
    Rob Bell · 5 months ago
    The simplest/ easiest expression to do this (based on Florian's post below) is =TEXT(A1/8400000,"hh:mm:ss.000")
  • To post as a guest, your comment is unpublished.
    Jan Hook · 1 years ago
    You can get the original formula to work by modifying the millisecond portion of the formula to include the text function to format as follows: =CONCATENATE(TEXT(INT(A1/1000)/86400,"hh:mm:ss"),".",TEXT(A1-(INT(A1/1000)*1000),"000"))
    If you need to allow for days you can do the following:
    =CONCATENATE(TEXT(INT(A1/1000)/86400,"dd:hh:mm:ss"),".",TEXT(A1-(INT(A1/1000)*1000),"000"))
  • To post as a guest, your comment is unpublished.
    Florian Betz · 1 years ago
    this produces some errors in some cases (I've not bothered to figure out why or in what cases, but it messed up in about 10% of my rows. Instead, divide the millisecond by 86400000, for example with

    =(A1/86400000)

    then apply a custom number format to the new value, such as:

    [hh]:mm:ss.000

    ..this worked fine for me in 100% of my rows.