Conversion Rounding issue with CM to In to (Ft and Inches).

Dmichigan05

New Member
Joined
Aug 8, 2023
Messages
15
Office Version
  1. 365
I have an attachment for anyone whom can help me. I am looking to make the rounding method in the end of my function round these up instead of saying 1ft 12in. It will only happen right now when I use very specific centimeters meters or millimeters because the formula is recognizing the inches as a decimal of 11.8 and thus rounding to 12. Problem is the formula doesn't recognize when it's 12 inches that it needs to then say 2FT 0In. instead.
CMWeight KgsINCHESFEET & INWeight LBS
LengthWidthHeightLengthWidthHeightLengthWidthHeight
3000012000' 11.8"0' 0"0' 0"0
6000024001' 11.6"0' 0"0' 0"0
9100036002' 11.8"0' 0"0' 0"0
12100048003' 11.6"0' 0"0' 0"0
15200060004' 11.8"0' 0"0' 0"0
18200072005' 11.7"0' 0"0' 0"0
21300084006' 11.9"0' 0"0' 0"0

=INT(I4/12)&"' "&ROUND(MOD(I4,12),1)&"""" = the current formula in the feet and inches area.
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
No, you have still not answered my question.
If you cannot be bothered to answer a very simple question, then I'm out.
 
Upvote 0
what happened when you tested this formula?

=INT((B2+0.9)/12)&"' "&INT(MOD(B2+0.9,12))&""""
 
Upvote 0
Solution
Hello Rick,
Yes the formula I have works for all of them for centimeters except when the decimal place makes it round to example being 1ft 12in. like the 60cm one. If i change the centimeter up or down it isn't an issue because the decimal place moves. I will work on these solutions you have all given and see if that fixes it for me. Thank you.
But did you actually TRY the formula I posted in my message (Message #20)??? What you wrote gives me the impression that you didn't.
 
Upvote 0
But did you actually TRY the formula I posted in my message (Message #20)??? What you wrote gives me the impression that you didn't.
Hello Rick. Just was trying your formula and for 60CM it works but when you put 61 or 62 it then changes the Inches portion to a decimal point. Thank you for the help on this.
 
Upvote 0
I am working on this one now I think it is the solution to my problem Let me test it with the other numbers and see what happens real quick.
Do you know if If this same formula will work for M to in and MM to In. Or will I have to change anything for those calculations too?
 
Upvote 0
Hello Rick. Just was trying your formula and for 60CM it works but when you put 61 or 62 it then changes the Inches portion to a decimal point. Thank you for the help on this.
It does not do that for me. 61 and 62 both become 2' 0". I do not see how my formula could possibly return a decimal point unless perhaps their is some kind of locale setting issue I am not aware of. Where are you located at?
 
Upvote 0
It does not do that for me. 61 and 62 both become 2' 0". I do not see how my formula could possibly return a decimal point unless perhaps their is some kind of locale setting issue I am not aware of. Where are you located at?
I am in the U.S.A. as well Rick. It does work now Rick this is also a good solution. I had to fix where your A1 was on my end I clicked the inches one instead of centimeters on my end. Your solution is a good solution as well. Do you know if your solution will work for meters and Millimeters as well? Or will it be a different formula? Thanks
 
Upvote 0

Forum statistics

Threads
1,215,102
Messages
6,123,097
Members
449,096
Latest member
provoking

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top