Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 24
Default Convert Function

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")
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 1,688
Default Convert Function

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

"jayceejay" wrote in message
...
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")



  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 24
Default Convert Function

SLICK! Thanks Biff!
(Loved you in "Back to the Future")

"Biff" wrote:

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

"jayceejay" wrote in message
...
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")




  #4   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 1,688
Default Convert Function

You're welcome. Thanks for the feedback!

Biff

"jayceejay" wrote in message
...
SLICK! Thanks Biff!
(Loved you in "Back to the Future")

"Biff" wrote:

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

"jayceejay" wrote in message
...
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")






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Function or formula to convert "text" month to number of month? Steve Vincent Excel Discussion (Misc queries) 5 May 15th 07 01:11 AM
Need some comments on my Utility_Move class module. jchen Excel Worksheet Functions 0 August 21st 06 07:05 PM
Excel option to store trendline's coefficients in cells for use Miguel Saldana Charts and Charting in Excel 9 June 20th 05 08:45 PM
CONVERT Function Disappered in Excel Gord Dibben Excel Discussion (Misc queries) 3 April 13th 05 07:59 PM
How do I use Excel's convert function for apothecary weight? S Code Excel Worksheet Functions 1 November 19th 04 07:13 PM


All times are GMT +1. The time now is 05:43 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"