Hello,
in the shop we use feet-inches-16ths as measurements.
For example.
13-8-3= 13' 8 3/16"
14-0-12 = 14' 3/4"
Can anybody think of a formula to convert this?
Hello,
in the shop we use feet-inches-16ths as measurements.
For example.
13-8-3= 13' 8 3/16"
14-0-12 = 14' 3/4"
Can anybody think of a formula to convert this?
Paul
A bit cumbersome, but with your text string in A1 (prefix it with an apostrophe to stop Excel seeing it as a date):
=CONVERT((LEFT(A1,FIND("-",A1)-1)*12)+SUBSTITUTE(MID(A1,FIND("-",A1)+1,2),"-","")+(SUBSTITUTE(RIGHT(A1,2),"-","")/16)*100,"in","cm")
Or, just for 'decimal' inches:
=(LEFT(A1,FIND("-",A1)-1)*12)+SUBSTITUTE(MID(A1,FIND("-",A1)+1,2),"-","")+(SUBSTITUTE(RIGHT(A1,2),"-","")/16)*100
Or feet:
=((LEFT(A1,FIND("-",A1)-1)*12)+SUBSTITUTE(MID(A1,FIND("-",A1)+1,2),"-","")+(SUBSTITUTE(RIGHT(A1,2),"-","")/16)*100)/12
Last edited by AliGW; 10-29-2019 at 12:33 PM.
Ali
Enthusiastic self-taught user of MS Excel who's always learning!
Don't forget to say "thank you" in your thread to anyone who has offered you help.
You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.
Forum Rules (updated August 2023): please read them here.
I haven't been able to put it into one formula but here is how I would approach it, I'd take the values (I'm assuming) in one cell each, use the text to columns function and with delimited selected, go next and click other then put - in the box and hit finish.
Then I'd try to recombine them with something like this...
=A1&"' "&IF(B1=0,"",B1)&" "&C1&"/"&16&"''"
The problem would be that it will return 12/16 of an inch rather than 3/4 of an inch.
Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
Sam Capricci
this looks like it gets you there (mostly, again it doesn't treat the 12/16 as 3/4) but it is close...
=LEFT(A1,SEARCH("-",A1)-1)&"' "&IF(SUBSTITUTE(MID(A1,SEARCH("-",A1)*1,3),"-","")*1=0,"",SUBSTITUTE(MID(A1,SEARCH("-",A1)*1,3),"-",""))&" "&RIGHT(A1,LEN(A1)-SEARCH("-",A1,1)-2)&"/"&16&"''"
If you want 12/16 to display as 3/4, you can use this:
Formula:Please Login or Register to view this content.
It could probably be tidied up a bit, but it works.
Regards,
Aardigspook
I recently started a new job so am a bit busy and may not reply quickly. Sorry - it's not personal - I will reply eventually.
If your problem is solved, please go to 'Thread Tools' above your first post and 'Mark this Thread as Solved'.
If you use commas as your decimal separator (1,23 instead of 1.23) then please replace commas with semi-colons in your formulae.
You don't need to give me rep if I helped, but a thank-you is nice.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks