Finding the Difference in Dates

bflan0524

Board Regular
Joined
Oct 7, 2016
Messages
193
Office Version
  1. 2010
hello
i have one column that list a date with a time and another column with a date. i need a formula to tell me the difference in months between the two columns. i am essentially trying to see how long the person owned the client at the time of the response date. so in this example below the answer would be 8 or i guess even argue 7 depending on how you wanted to look at it

[TABLE="width: 500"]
<tbody>[TR]
[TD]Response Date[/TD]
[TD]Owner Change Date[/TD]
[/TR]
[TR]
[TD]7/30/2019 19:28[/TD]
[TD]12/20/2018[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Hey,

Try DATEDIF:

=DATEDIF(B2,A2,"m")

Where B2 is the Owner Change Date (12/20/2018) & A2 is the Response Date (7/30/2019)

If this gives #NUM ! try swap the B2 & A2 around - the #NUM ! will occur if A2 < B2.

EDIT: =IFERROR(DATEDIF(B2,A2,"m"),DATEDIF(A2,B2,"m")) should do the trick in regards to what I wrote above.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,178
Members
453,021
Latest member
Justyna P

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