So I have 5.8 ft in one column (a1) and in b1 I want the height converted to show 5' 9.6"
I think it's an indirect function?
Thanks!![]()
So I have 5.8 ft in one column (a1) and in b1 I want the height converted to show 5' 9.6"
I think it's an indirect function?
Thanks!![]()
I don't know why you think it is an INDIRECT function - that is used for a totally different purpose.
Assuming you have 5.8 ft in cell A5, you can use this in B5:
=INT(LEFT(A5,FIND(" ",A5)-1))&"' "&TEXT(MOD(LEFT(A5,FIND(" ",A5)-1),1)*12,"0.0")&CHAR(34)
Hope this helps.
Pete
I always get the offset, indirect and other text functions mixed up!
The data will have only 5.8 as the number with no units. The function you provided only works if you have a space after the units and then units.
Well, that is what you put in your first post. Are you saying that you just have the number 5.8 in the cell ?
Pete
I see that you are saying that. Use this simpler formula in B5 instead:
=INT(A5)&"' "&TEXT(MOD(A5,1)*12,"0.0")&CHAR(34)
Hope this helps.
Pete
Another option, if you would like exact inches to display without decimals (for example 5.5 to be 5' 6"):
Formula:
Please Login or Register to view this content.
If you always want the first decimal (so 5' 6.0" for 5.5), ignore me and use Pete's formula.
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.
That works sir...THANKS!
You're welcome - glad to help.
You can also show your appreciation by clicking on the "star" icon on the left hand side below any post that has helped you.
Pete
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks