Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 09-02-2011, 01:24 AM
Catalin.B Catalin.B is offline convert 3months and 15 days into 3.5 Windows Vista convert 3months and 15 days into 3.5 Office 2007
Expert
 
Join Date: May 2011
Location: Iaşi, Romānia
Posts: 386
Catalin.B is on a distinguished road
Default

Here is an idea to play with:

=IF(DATEDIF(I8;G8;"m")=0;"";DATEDIF(I8;G8;"m"))+IF(DATEDIF(I8;G8;"md")<15;0;1)&" months"

It will add 0 months to the initial month calculation if the days number are <15, and add 1 month if days are>=15
instead of the above formula, you can use:
=IF(DATEDIF(I8;G8;"m")=0;"";DATEDIF(I8;G8;"m"))+CE ILING(DATEDIF(I8;G8;"md")/30;0,5)&" months"
to get decimal results...and so on

Change ; with , to match your local settings
Reply With Quote
  #2  
Old 09-02-2011, 09:17 AM
caz46 caz46 is offline convert 3months and 15 days into 3.5 Windows 7 32bit convert 3months and 15 days into 3.5 Office 2007
Advanced Beginner
convert 3months and 15 days into 3.5
 
Join Date: Feb 2011
Posts: 73
caz46 is on a distinguished road
Smile

That's great and works perfectly. Thanks very much.
Reply With Quote
  #3  
Old 09-05-2011, 02:45 AM
Catalin.B Catalin.B is offline convert 3months and 15 days into 3.5 Windows Vista convert 3months and 15 days into 3.5 Office 2007
Expert
 
Join Date: May 2011
Location: Iaşi, Romānia
Posts: 386
Catalin.B is on a distinguished road
Default

Great... Than you can mark your thread as solved, for users with same problems...
Reply With Quote
  #4  
Old 09-05-2011, 03:23 AM
caz46 caz46 is offline convert 3months and 15 days into 3.5 Windows 7 32bit convert 3months and 15 days into 3.5 Office 2007
Advanced Beginner
convert 3months and 15 days into 3.5
 
Join Date: Feb 2011
Posts: 73
caz46 is on a distinguished road
Default

Quote:
Originally Posted by Catalin.B View Post
Great... Than you can mark your thread as solved, for users with same problems...
I can't see where I can do that?
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Master Projects with different Working Days Philip.Skeet Project 2 08-19-2011 09:45 AM
convert 3months and 15 days into 3.5 Dynamic Filter 15 days lookout. stct Project 5 05-20-2011 03:30 AM
convert 3months and 15 days into 3.5 Non-Working Days on Gantt JayTT Project 1 01-28-2011 05:42 AM
Conditional formatting of Today +21 days? SHERMAN Excel 3 12-20-2010 08:08 AM
Creating an Auto-Calc'd Date? Today+7 Days? SoCalTelephone Word 0 10-06-2010 10:27 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:50 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2026 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft