ACCESS METRIC CONVERSION

netmog

New Member
Joined
Mar 14, 2002
Messages
6
Hello All,

I have a database where I want to convert the data from several columns from English (in, ft) to metric (CM, M) units. Any ideas how to do this using a query or simple function? There are about 6500 lines of data to convert.

Thanks for your help,

Jason in California
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
If your data is in a numeric format you could create a function like the one below that will do the conversion.

Public Function ConversionCalc(unit As Double, conversion As Integer) As Double
Select Case conversion
Case 1 ' Inches to Centimeters
ConversionCalc = unit * 2.54
Case 2 ' Feet to Meters
ConversionCalc = unit * 0.3048
Case 3 ' Centimeters to Inches
ConversionCalc = unit * 0.393700787
Case 4 ' Meters to Feet
ConversionCalc = unit * 3.2808399
End Select
End Function
 
Upvote 0

Forum statistics

Threads
1,221,687
Messages
6,161,289
Members
451,695
Latest member
Doug Mize 1024

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top