Coversion for Months within a year

carabale

Board Regular
Joined
Apr 29, 2004
Messages
133
I need to create a conversion chart for Months within a year. Example: User type in cell A2 ".1" and cell B2 displays "1 mo, 7 days." Any suggestions?

I tried dateif but for that I need two actual dates to compare. In the example above the user enter a decimal number.

Thanks in advance.
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.

carabale

Board Regular
Joined
Apr 29, 2004
Messages
133
This almost works. The problem is the rounding particularly the months. Example: .30 should be equal to 3 mo 20 days, but because of the rounding, I get 4 mo 20 days. Any ideas?
 

carabale

Board Regular
Joined
Apr 29, 2004
Messages
133
I used ROUNDDOWN on the first portion of the formula and got what I wanted. Thanks a lot ken2step.
 

Forum statistics

Threads
1,147,675
Messages
5,742,546
Members
423,737
Latest member
tom_xls

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
Top