Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 08-14-2014, 05:04 AM
Barni Barni is offline Count the common time period (month) between two date period of time Windows 7 64bit Count the common time period (month) between two date period of time Office 2010 64bit
Novice
Count the common time period (month) between two date period of time
 
Join Date: Aug 2014
Posts: 4
Barni is on a distinguished road
Default Count the common time period (month) between two date period of time

Can someone to help me with a formula to count the common time period (month) between two date period of time in excel.



For exemple:
1. Start date: 01-nov-2014
2 End date:31-dec-2018

1. From: 01-iul-2014
2. To: 30-iun-2015

Result in this case = 8 month

Thank you so much in advance !!!

Barni
Reply With Quote
  #2  
Old 08-14-2014, 05:10 PM
macropod's Avatar
macropod macropod is offline Count the common time period (month) between two date period of time Windows 7 32bit Count the common time period (month) between two date period of time Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,956
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

You could use:
=DATEDIF(A1,A2,"M")

Neither pair of dates in your examples has an 8-month difference, however.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 08-14-2014, 11:46 PM
Barni Barni is offline Count the common time period (month) between two date period of time Windows 7 64bit Count the common time period (month) between two date period of time Office 2010 64bit
Novice
Count the common time period (month) between two date period of time
 
Join Date: Aug 2014
Posts: 4
Barni is on a distinguished road
Default

HI,

The common month period is between 01-nov-2014 - 30-06-2015 = 8 month.

I have this formula and it's counting the days. I am trying to have a similar to calculate the months.

d1: Startt 1
e1: End 1

g1: Start2
h1: End2

=IF(MAX(D1,G1)>MIN(E1,H1),0,(MIN(E1,H1)-MAX(D1,G1)))

Regards,
Barni
Reply With Quote
  #4  
Old 08-15-2014, 12:06 AM
macropod's Avatar
macropod macropod is offline Count the common time period (month) between two date period of time Windows 7 32bit Count the common time period (month) between two date period of time Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,956
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Try:
=IF(MAX(D1,G1)>MIN(E1,H1),0,DATEDIF(MAX(D1,G1),MIN (E1,H1)+1,"M"))
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #5  
Old 08-15-2014, 06:55 AM
Barni Barni is offline Count the common time period (month) between two date period of time Windows 7 64bit Count the common time period (month) between two date period of time Office 2010 64bit
Novice
Count the common time period (month) between two date period of time
 
Join Date: Aug 2014
Posts: 4
Barni is on a distinguished road
Default

Thank you very much your answer but unfortunately doesn't work.
/Barni
Reply With Quote
  #6  
Old 08-15-2014, 07:34 AM
macropod's Avatar
macropod macropod is offline Count the common time period (month) between two date period of time Windows 7 32bit Count the common time period (month) between two date period of time Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,956
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by Barni View Post
doesn't work.
That's hardly a meaningful description.

It works in my testing. Of course, I had to guess which cells the various dates were in as you haven't shared that information...
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #7  
Old 08-15-2014, 07:52 AM
Barni Barni is offline Count the common time period (month) between two date period of time Windows 7 64bit Count the common time period (month) between two date period of time Office 2010 64bit
Novice
Count the common time period (month) between two date period of time
 
Join Date: Aug 2014
Posts: 4
Barni is on a distinguished road
Default

Yes. It's working!!!

I write something wrong and yes, the description was not quite enough.

Thank you so much! I learned something from you

Have a nice weekend!
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Count the common time period (month) between two date period of time Units worked per time period carmang Excel 4 07-24-2014 08:24 AM
Count the common time period (month) between two date period of time How do I calculate planned work for a given time period bumpui Project 1 06-04-2014 06:37 AM
Allocation of task in certain period of time mati2 Project 1 02-25-2012 07:59 AM
Can't change period when adjusting actual time in Web Access chip_saffire Project 0 10-04-2011 12:05 AM
Count the common time period (month) between two date period of time Add a period of time to a referenced "Time" cell? derelyth Excel 4 03-27-2011 04:31 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:05 AM.


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