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

前端 未结 16 1640
忘了有多久
忘了有多久 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条回答
  •  -上瘾入骨i
    2020-12-22 19:17

    Slight change to make it work on my region, Europe (. as thousands separator, comma as decimal separator):

    [<1000000]#.##0,00" KB";[<1000000000]#.##0,00.." MB";#.##0,00..." GB"
    

    Still same issue on data conversion (1000 != 1024) but it does the job for me.

提交回复
热议问题