Converting Centimeter to Feet and Vise versa

StevenData

New Member
Joined
Mar 23, 2002
Messages
10
Greeting,
In column A I have some values in Centimeter and would like to write a small macro to convert them to Feet (inches decimal). However I would like, when I apply the macro to the column A, the resulting converted values appear on Column B upon application so that I can see both values in CM in column A and their equivalent values in feet (inches decimal) in column B.
Your input is deeply appreciated.
Example of a value in cm: 243 cm
example of a resulting value in feet inches decimal: 7.4
Sincerely,
Steve
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
steve
you don't really need a macro for this but i'm sure someone can build one for you. you can use the CONVERT function instead. in cell B1 put =CONVERT(A1,"cm","in"). you'll need to install the analysis toolpak add-in (tools menu>addins) for this to work.
 
Upvote 0
Hi anno:

Just to elaborate, what you gave in your example "cm" and "in", Steven could go directly to feet by using "cm" and "ft"!
By the way that would be 7.97 ft -- I think Steve's reference to 7.4 must be in error
_________________
Yogi Anand
Edit: Deleted reference to inactive web site from signature line
This message was edited by Yogi Anand on 2003-01-19 18:19
 
Upvote 0

Forum statistics

Threads
1,213,536
Messages
6,114,210
Members
448,554
Latest member
Gleisner2

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