Convert Function

J

jayceejay

I understand that there is a function (CONVERT) that converts feet to inches
and vise-versa. BUT is there a modification of that function that will
convert inches to a COMBINATION of Feet and Inches? (ie: Convert a value of
67 to 5'7")
 
B

Biff

Try this:

=IF(A1="","",IF(A1<12,"0' "&A1&"""",INT(A1/12)&"' "&MOD(A1,12)&""""))

A1 = 67

Returns: 5' 7"

I've written it so that if A1 is less than 1 foot the result will be like
this:

A1 = 7

Returns: 0' 7"

Biff
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top