Hi,
I need to convert inches to feet and inches in this format:
88 1/2 = 7' 4-1/2"
...so that if 88 1/2 is in cell A1, cell B1 will show 7' 4-1/2".
The exact syntax of B1 must be as shown.
Thanks
Hi,
I need to convert inches to feet and inches in this format:
88 1/2 = 7' 4-1/2"
...so that if 88 1/2 is in cell A1, cell B1 will show 7' 4-1/2".
The exact syntax of B1 must be as shown.
Thanks
I couldnt get the syntax to match your request exactly. Hopefully, someone else can expound.
If your inches are in A1, enter this formula into B!:
=INT(A1/12)&"' "&MOD(A1,12)&""""
Possibly amend BigBas' suggestion to
=INT(A1/12)&"' "&TEXT(MOD(A1,12),"0 #/#")&""""
Thx, daddy. I assumed someone would fix it using custom number formatting (which I am still not to great at).
..and just a very minor revision to daddylongleg's formula to match exactly the original request...
=INT(A1/12)&"' "&TEXT(MOD(A1,12),"0-#/#")&""""
Where there is a will there are many ways.
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
O.K.
...Works Great!!! Thanks so much- what a neat group.
Ya'll (<I'm from Arkansas) saved the day.
This may sound crazy but I have the exact *opposite* problem...I have a measurement typed in text (for example 6-3 for 6 foot three inches) and need something that takes this text string and converts it to a number in inches (in this case 75 inches). Any help?
Hi,Originally Posted by rberger909
=1*(LEFT(A1,FIND("-",A1)-1)*12+MID(A1,FIND("-",A1)+1,2))
will do that, the 1* I added solely because my A1 was 'Text' format and I didn't want the answer as text.
hth
---
Si fractum non sit, noli id reficere.
EXCELLENT! Thanks so much!Originally Posted by Bryan Hessey
np - always glad to help.Originally Posted by rberger909
---
I'm back again with another small (I hope) question/alternation needed to the formula above...what if i had a half inch in the measurement? For example 6-3 1/2...it would be written exactly like this (6-3 1/2) with the space and the fraction written like this (1/2) I need the forumla to kick out an answer of 75.5...thanks for any help at all!
Hi,Originally Posted by rberger909
=(1*(LEFT(A1,FIND("-",A1)-1)*12+MID(A1,FIND("-",A1)+1,2)))+IF(LEN(A1)=LEN(SUBSTITUTE(A1,"1/2","")),0,0.5)
looks dodgy but will do (only) 1/2 additions.
note, you could also add 1/4 and 3/4 this way, but other fractions would need more care.
hth
---
Last edited by Bryan Hessey; 04-23-2007 at 07:00 PM.
Couldn't you close that statment with aOriginally Posted by Bryan Hessey
+IF(RIGHT(A1,2)="/",1*RIGHT(A1,2),0)
I didnt try it out, but it should work, no?
Good point. I almost forgot those existed. =)
You can just tweak Bryan's original to....
=LEFT(A1,FIND("-",A1)-1)*12+MID(A1,FIND("-",A1)+1,255)
oops,Originally Posted by BigBas
you can't say right(a1,2) you need left(right(a1,2),1) = "/"
---
I was trying to see how 1,255 converted fractions to decimal,Originally Posted by daddylonglegs
. . . . talk about not seeing the wood for the trees . . .
---
=LEFT(A1,FIND("-",A1)-1)*12 + RIGHT(A1,(LEN(A1)-FIND("-",A1)))
If You are getting help elsewhere please provide a link. We have been working on the same problem at ozgrid.
See Here
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks