Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 48
Default Convert Ft'-In Fr" (5'-6 3/4") to Ft.dec (5.56)

Hi All,
Is there anyway to convert an architectural units text with feet, inches and
fractions of an inch, like (5'-6 3/4") to feet and decimals of a foot, like
(5.56)?
TIA,
Sal
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,393
Default Convert Ft'-In Fr" (5'-6 3/4") to Ft.dec (5.56)

With this text: 5'-6 3/4")
in A1, the formula =--LEFT(A1,FIND("'",A1)-1) returns the numeric value 5
The double negation converts text to number

The formula
=--LEFT(MID(A1,FIND("'",A1)+2,256),LEN(MID(A1,FIND("' ",A1)+2,256))-1)
returns 6.75 also as a number

Combining them as
=ROUND(LEFT(A1,FIND("'",A1)-1)+LEFT(MID(A1,FIND("'",A1)+2,256),LEN(MID(A1,FIND ("'",A1)+2,256))-1)/12,2)
gives 5.56

I tested the formula with 12'-5 1/8" and got the correct value of 12.43
But please do more testing
best wishes
--
Bernard Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme

"sammy" wrote in message
...
Hi All,
Is there anyway to convert an architectural units text with feet, inches
and
fractions of an inch, like (5'-6 3/4") to feet and decimals of a foot,
like
(5.56)?
TIA,
Sal


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 48
Default Convert Ft'-In Fr" (5'-6 3/4") to Ft.dec (5.56)

Thank you Bernard,

This is exactly what i wanted and i have done some testing with know values
and it works as expected.

Thanks again.
Sammy
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,393
Default Convert Ft'-In Fr" (5'-6 3/4") to Ft.dec (5.56)

Good to know.
Thanks for the feedback.
--
Bernard Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
"sammy" wrote in message
...
Thank you Bernard,

This is exactly what i wanted and i have done some testing with know
values
and it works as expected.

Thanks again.
Sammy


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Convert Ft'-In Fr" (5'-6 3/4") to Ft.dec (5.56)

Now is there a way to reverse that? If I have 5.56 can I convert it to read
5'-6 3/4"?

"Bernard Liengme" wrote:

Good to know.
Thanks for the feedback.
--
Bernard Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
"sammy" wrote in message
...
Thank you Bernard,

This is exactly what i wanted and i have done some testing with know
values
and it works as expected.

Thanks again.
Sammy





  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Convert Ft'-In Fr" (5'-6 3/4") to Ft.dec (5.56)

Take a look at David McRitchie's site:
http://mvps.org/dmcritchie/excel/formula.htm#carpentry

Especially the formula after this portion:
"This formula from a posting by Bernie Dietrick 2000-08-04 will round feet ..."

=IF(A1=1,INT(A1)&"' ","") & TEXT(MOD(A1,1)*12,"- 0"&IF(ABS(MOD(A1,1)
*12-ROUND(MOD(A1,1)*12,0))1/32," 0/"&CHOOSE(ROUND(MOD(MOD(A1,1)*12,1)*16,0),
16,8,16,4,16,8,16,2,16,8,16,4,16,8,16),"")) &""""


jmer wrote:

Now is there a way to reverse that? If I have 5.56 can I convert it to read
5'-6 3/4"?

"Bernard Liengme" wrote:

Good to know.
Thanks for the feedback.
--
Bernard Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
"sammy" wrote in message
...
Thank you Bernard,

This is exactly what i wanted and i have done some testing with know
values
and it works as expected.

Thanks again.
Sammy




--

Dave Peterson
  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Convert Ft'-In Fr" (5'-6 3/4") to Ft.dec (5.56)

That's it! Thanks so much!

"Dave Peterson" wrote:

Take a look at David McRitchie's site:
http://mvps.org/dmcritchie/excel/formula.htm#carpentry

Especially the formula after this portion:
"This formula from a posting by Bernie Dietrick 2000-08-04 will round feet ..."

=IF(A1=1,INT(A1)&"' ","") & TEXT(MOD(A1,1)*12,"- 0"&IF(ABS(MOD(A1,1)
*12-ROUND(MOD(A1,1)*12,0))1/32," 0/"&CHOOSE(ROUND(MOD(MOD(A1,1)*12,1)*16,0),
16,8,16,4,16,8,16,2,16,8,16,4,16,8,16),"")) &""""


jmer wrote:

Now is there a way to reverse that? If I have 5.56 can I convert it to read
5'-6 3/4"?

"Bernard Liengme" wrote:

Good to know.
Thanks for the feedback.
--
Bernard Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
"sammy" wrote in message
...
Thank you Bernard,

This is exactly what i wanted and i have done some testing with know
values
and it works as expected.

Thanks again.
Sammy



--

Dave Peterson

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
Convert numbers to date: "586" to read "May 1986" CEckels Excel Worksheet Functions 5 May 14th 09 04:46 PM
any formula to convert numbers in word form, e.g. "2" as "Two"? Neeraj Excel Worksheet Functions 1 May 26th 08 01:03 PM
how i convert "100" to "hundred"( number to text) in excel-2007 mohanraj Excel Worksheet Functions 1 May 11th 08 09:07 PM
convert "15000" to "Fifteen thousand" in excel cell? anurag Excel Worksheet Functions 1 May 4th 06 07:58 AM
can we convert "2 days 16 hrs" to " 64hrs" using excel functions chris Excel Worksheet Functions 5 April 24th 06 12:53 AM


All times are GMT +1. The time now is 10:55 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"