Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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: http://www.yonahruss.com/2007/02/format-excel-numbers-as-gb-mb-kb-b.html)

But is there any way to do this as a 'format'? I'd like to have the big number in the cell, but have it display as the human-readable format.

like image 958
RickMeasham Avatar asked Oct 07 '09 19:10

RickMeasham


People also ask

How do I convert bytes to GB in Excel?

In other words, if you want to convert a storage size from bytes to MB, you need to divide it with 102 * 1024. Similarly, to convert it to GB, you need to divide it by 1024 * 1024 * 1024. What is this? Conversely, if you want to convert back, you need to multiply the storage size by 1024 each time.

How do you change KB to MB in Excel?

If you want to convert mb to kb, just apply this formula: =A2*1024. Unit Conversion: (Convert between multiple units, such as time, distance, bits & bytes, etc. ) With Kutools for Excel's Unit Conversion utility, you can quickly convert between multiple units without any formulas.

How do you Format cell data?

Select the cells with the Excel Style. Right-click the applied style in Home > Cell Styles. Select Modify > Format to change what you want.


1 Answers

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" 
like image 99
guitarthrower Avatar answered Sep 28 '22 02:09

guitarthrower