How can I format bytes a cell in Excel as KB, MB, GB etc?

前端 未结 16 1678
忘了有多久
忘了有多久 2020-12-22 18:46

I have a value in a cell that\'s in bytes. But nobody can read 728398112238. I\'d rather it say 678.37GB

To write a formula to format it relatively easy (here\'s one

16条回答
  •  醉酒成梦
    2020-12-22 19:04

    And, yet another solution, is to use engineering notation. (That's like scientific notation except the exponent is always a multiple of 3.) Right-click on the cell(s) and select Format Cells. Under the Number tab, select Custom. Then in the Type: box, put the following:

    ##0.00E+00
    

    Then click OK. Instead of K, M, etc, you'll have +3, +6, etc. This will work for positive and negative numbers, as well as positive and negative exponents, -3 is m, -6 is u, etc.

    567.00E-06
      5.67E-03
     56.70E-03
    567.00E-03
      5.67E+00
     56.70E+00
    567.00E+00
      5.67E+03
     56.70E+03
    567.00E+03
      5.67E+06
    

提交回复
热议问题