How to Convert Millimeters (mm) to Inches (in) in Excel (3 Quick Methods)

Unit conversion is one of those tasks that we perform in our day to day life. In many situations, you may need to convert millimeters (mm) to inches (in). To perform this type of task you can always use Microsoft Excel. This article will show you 3 methods of how to convert millimeters (mm) to inches (in) in Excel.

Download Practice Workbook

You can download the practice workbook from the link below.

Arithmetic Formula to Convert Millimeter (mm) to Inches (in)

To get Inches (in) from Millimeter (mm) the following formula can be used:

X= Y*(1/25.4)


  • X is the dimension is Inches (in)
  • Y is the dimension in Millimeters (mm)

3 Methods to Convert Millimeter (mm) to Inches (in) in Excel

Suppose, you have a number of wooden blocks. You have their lengths in Millimeters(mm) units. Now, you want to convert them into Inches (in) units. I will show you 3 quick methods to do this.

how to convert mm to inches dataset

1. Using the Excel CONVERT Function to convert Millimeter (mm) to Inches (in)

The CONVERT function is a built-in function in excel that helps you with unit conversions. Now, follow the following steps to get Inches (in) from Millimeters (mm) using the CONVERT function.

Steps :

  • First, add a column next to the Millimeters (mm) column for Inches (in).
  • Next, select cell D6 and put the following formula.

Here, C6 is the starting cell of the Length in Millimeters (mm), “mm” is the second argument (from_unit), and “in” is the last argument (to_unit). Also, D6 is the starting cell for the Inches (in) column.

using convert function

Using convert function mm to in

Read More: How to Convert inch to mm in Excel (3 Simple Methods)

Similar Readings

2. Using the Arithmetic Formula for Conversion from Millimeter(mm) to Inches (in)

In this method, we will find the dimension in Inches (in) from Millimeters (mm) by inserting the arithmetic formula manually. Now, follow the quick steps mentioned below.

Steps :

  • At the very beginning, add a column next to the Millimeter (mm) column for Inches (in).
  • Now, click on cell D6 and type in the following formula.

using arithmetic formula

  • At this point, drag the Fill Handle for the rest of column D. Finally, you will get your results.

using arithmetic formula

Read More: How to Convert MM to CM in Excel (4 Easy Methods)

3. Using VBA to convert Millimeter (mm) to Inches (in)

This method includes the use of VBA code to convert Millimeters (mm) to Inches (in). Now, follow the following steps to get your result.


  • First of all, add a column next to the Millimeter (mm) for Inches (in).

using VBA to convert

  • Now, press ALT+ F11 to open the Visual Basic window.
  • At this point sequentially select, Sheet 4 > Insert > Module
  • Then, copy the following code and paste it into the blank space.
'This Code will help you to convert mm to inch
Sub Convertmm2in()
    Dim Rg As Range
    Dim Lastrow As Long
    'Here we are asking VBA to find out the last cell in the column with a value
    Lastrow = Range("C" & Rows.Count).End(xlUp).Row
    'These lines of code select the value in the millimeter column.
    'Then it puts the inches value in the inches column multiplying mmm by 1/25.4.
    For Each Rg In Range("C6:C" & Lastrow).SpecialCells(xlCellTypeVisible)
        Range("D" & Rg.Row).Value = Range("C" & Rg.Row).Value * 1 / 25.4
End Sub


using VBA to convert

  • Next, press F5 to run the code.

Here, the entire process is shown in the following screenshot.

using VBA to convert

  • After that, a box will appear like the figure below. Then, select Convertmm2in and hit the Run button.

using VBA to convert

  • Lastly, running the code will give you the following results.

using VBA to convert mm to inch (in)

Read More: Converting CM to Inches in Excel (2 Simple Methods)

Things to Remember While Using CONVERT Function

  • Keep in mind that the unit codes or names are case-sensitive. If you use “MM” and “IN”, you will get a #N/A Error.
  • When you are writing the formula, Excel will show you a list of available units. Though “mm” is not a part of that list, it will work just fine.
  • If you do any mistake while entering the formula, for example: not following the exact format, you will get the #N/A Error in return.


I hope you found what you were looking for from this article. If you have any queries, please leave a comment below. For more articles like this, you can visit our website ExcelDemy.

Related Articles

Sowmik Chowdhury

Sowmik Chowdhury

Hello! Welcome to my Profile. I , Sowmik Chowdhury, graduated from the Bangladesh University of Engineering and Technology from the Department of Naval Architecture and Marine Engineering. Currently, I am working and doing research on Microsoft Excel and here I will be posting articles related to this..

We will be happy to hear your thoughts

Leave a reply

5 Excel Tips
You Never Knew

Genius tips to help you unlock Excel's hidden features