# How to Auto Convert KB, MB, GB, PG, TB in Excel

This post will guide you how to convert value in KB format to MB, GB, PB and TB automatically in Microsoft Excel. How do I convert size in bytes to KB, MB, GB, TB and PB in Excel 2013/2016.

For example, assume that you have a list of data  which unit is bytes, and you wish to convert the unit of these values to KB, MB, GB, TB. You should know that the unit conversion rate is 1024 between each adjacent unit. So you can create a formula similar as the below:

=B1/1024

If you want to convert the unit from KB to MB, and you can type the following formula into a blank cell, then press Enter key.

=B2/1024 If you want to convert the unit from byte to MB, and you can use the following formula:

=B1/1024/1024 Or you can also use another formula based on the CONVERT function to convert a number from one measurement system to another.

The syntax of the Convert function is as below:

=CONVERT (number, from_unit, to_unit)

Where,

Number – cell values that you want to convert its unit.

From_unit – the source unit

To_unit – the target unit

The prefixes of from/to unit should be Kibyte, Mibyte, Gibyte and Tibyte.

### Convert KB to MB

To convert size in KB to MB, and you can use the following formula:

=CONVERT(B1,”kibyte”,”Mibyte”) ### Convert MB to GB

If you wish to convert the unit from MB to GB, and you can use the following convert formula:

=CONVERT(B2,”Mibyte”,”Gibyte”) ### Convert GB to TB

If the unit of your original data is MB, and you wish to convert it as GB, just use the below Convert formula:

=CONVERT(D2,”Gibyte”,”Tibyte”) Related Posts

If Cell Contains Either Text1 or Text2

IF function is frequently used in Excel worksheet to return “true value” or “false value” based on the logical test result. If you want to see if cell contains certain substring1 like “abc” or substring2 like “def”, and returns true ...

If Cell Contains Certain Text OR Equals Certain Text

IF cell equals certain text IF function is frequently used in Excel worksheet to return “true value” or “false value” based on the logical test result. If you want to test values to see if they equal certain text like ...

VLOOKUP From Another Sheet Not Working

In the previous post, you should know that how to fix or remove the #N/A error when using VLOOKUP formula to lookup value from another sheet. And this post will show you reasons why your VLOOKUP formula is not working ...

If Cell Begins with One of Three Supplied Characters

If you want to test values to see if they begin with some given specific characters like “x”, ”y”, or “z”, you can create a formula with COUNTIF and SUM functions to return results. EXAMPLE You can see “TRUE” or ...

Fix #N/A Error For VLOOKUP From Another Sheet

This post will show you how to fix the #N/A error why it occurs when you extract values from another sheet using VLOOKUP function in Excel 2016,2013,2010 or other Excel versions. How can you correct a #N/A error in VLOOKUP ...

How To Remove Special Characters in Excel

This post will show you how to remove special characters from text strings in Excel. And I am going to introduce two ways to remove special characters (@&)#%\$) from a string in Excel. Removing Special Characters using Power Query If ...

How To Insert Comments in Protected Worksheet in Excel

This post will show you how to allow comments in a protected worksheet in Excel. You can easily to insert comments into cells in a normal worksheet in Excel, but if want to insert a comment in a worksheet that ...

How To Convert Text to Upper Cases(Using VBA) in Excel

This post will show you how to switch from lower case to upper case in Excel. and I am going to show you two different ways of converting text to upper cases using formula or VBA macro in Excel 2013,Excel ...

How To Hide Every Other Row in Excel (Using VBA)

This post will show you how to hide alternate rows or columns in Excel or how to hide every third, fourth, fifth row or column in Excel. If you want to hide every other row in your current worksheet, how ...

How to Average Only Positive or Negative Numbers of a Range

Suppose both positive numbers and negative numbers exist in a table. If we want to know the average of only positive numbers in this table, we can create a formula to get average of all positive numbers with all negative ...

Sidebar