date formula

jeongs1

New Member
Joined
May 23, 2017
Messages
44
I need to calculate the whole number of months between below dates and current date - with one formula for all.

Current date = 1/15/2018

So in column B, I'd like to see how many months are between Dates in Column A and the Current Date above.
B2 should be 2, B3 should be 2, B4 should be 1, B5 should be 2, B6 should be 3, and B7 should be 4.

[TABLE="width: 226"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: center"]Date1[/TD]
[TD="align: left"]Month[/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD="align: right"]12/1/2017[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD="align: right"]12/26/2017[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]4[/TD]
[TD="align: right"]1/20/2018[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]5[/TD]
[TD="align: right"]2/14/2018[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]6[/TD]
[TD="align: right"]3/11/2018[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]7[/TD]
[TD="align: right"]4/5/2018[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 

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.
That won't work since I need the month difference between dates in Column A and the Current Date aka 1/15/2018.

I've tried DATEDIF and wasn't successful with it.
 
Upvote 0
I need to calculate the whole number of months between below dates and current date - with one formula for all.

Current date = 1/15/2018

So in column B, I'd like to see how many months are between Dates in Column A and the Current Date above.
B2 should be 2, B3 should be 2, B4 should be 1, B5 should be 2, B6 should be 3, and B7 should be 4.

[TABLE="width: 226"]
<tbody>[TR]
[TD][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: center"]Date1[/TD]
[TD="align: left"]Month[/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD="align: right"]12/1/2017[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD="align: right"]12/26/2017[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]4[/TD]
[TD="align: right"]1/20/2018[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]5[/TD]
[TD="align: right"]2/14/2018[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]6[/TD]
[TD="align: right"]3/11/2018[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]7[/TD]
[TD="align: right"]4/5/2018[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

ops, read it wrong.

Used datedif(start date,end date,"M")
W
 
Upvote 0

Forum statistics

Threads
1,223,157
Messages
6,170,420
Members
452,325
Latest member
BlahQz

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