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

前端 未结 16 1531
忘了有多久
忘了有多久 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 18:54

    You can't really do calculations in the formatting features of Excel. You can use something like the following to do a rough estimation though:

    [<500000]#,##0" B";[<500000000]#,##0,," MB";#,##0,,," GB"
    

提交回复
热议问题