Inches to be rounded up to next foot

craigwojo

Board Regular
Joined
Jan 7, 2005
Messages
245
Office Version
  1. 365
Platform
  1. Windows
I need a way to have the number input be automatically updated to the next foot increment.
ex. If 2 was inputted, it would have a value of 12. If 26 was the input, it would have a value of 36 (being that 2' 2" (26")) would go to 3', and so on. This is based on English foot and inches.

Thank you,
Craig
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
If your number was is Cell A1, does this formula placed in another cell work for you:

=IF(MOD(A1,12)=0,A1,FLOOR(A1/12,1)*12+12)
 
Upvote 0
If I misread your needs and you wanted the number in feet you could use:

=IF(MOD(A1,12)=0,A1,FLOOR(A1/12,1)*12+12)/12
 
Upvote 0
... You'll not return the correct answer for even multiples of 12.
???
Capture.JPG
 
Upvote 0
On my sheet your formula changed 12 to 24, 24 to 36 etc...
 
Upvote 0
The formulas from Post # 5 have been tested to return the expected results on:
- Excel 2010 / Win 7
- Excel 2011 / OS X 10.9.5
- Excel 365 / Win 10
 
Upvote 0

Forum statistics

Threads
1,214,979
Messages
6,122,550
Members
449,088
Latest member
davidcom

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