Format decimal as number of months

Barren_Wuffett

New Member
Joined
Aug 6, 2019
Messages
18
Hey everyone, I want to format a decimal/fraction as a number of months. For example, I'd like to enter "=1/12" into a cell and have it show "1 month," or enter "=1.5/12" and have it show "1.5 months."

Is this possible?

Thanks!
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
So basically I want to be able to type =1/12, and then format the cell as 12x&" months" whatever the decimal solution is.

I.e. .083 would show up as "1 month"
 
Upvote 0
This is doable -- to some extent. You would get integer numbers only -- no 1.5 months.

Format the cell as ?" month(s)"/12 -- you should see 1 month(s)/12 in the cell. Enable Wrap Text in the cell.

Return to the custom formatting, put the cursor between the
" and /; hold Ctrl and press j; click OK. You should see now 1 month(s) in the cell.
 
Upvote 0
This is doable -- to some extent. You would get integer numbers only -- no 1.5 months.

Format the cell as ?" month(s)"/12 -- you should see 1 month(s)/12 in the cell. Enable Wrap Text in the cell.

Return to the custom formatting, put the cursor between the
" and /; hold Ctrl and press j; click OK. You should see now 1 month(s) in the cell.

You're a wizard
 
Upvote 0

Forum statistics

Threads
1,224,739
Messages
6,180,676
Members
452,993
Latest member
FDARYABEE

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