Date Difference with year and month (Formulae)

Ombir

Active Member
Joined
Oct 1, 2015
Messages
433
Hi Friends,

I need the output as shown in column D(Expected Diff) with basic If calculation. Logic should be simple not much complicated as I will use the logic in some other tool for performance consideration. (Left, Right and Mid should be avoided if possible).

Any thoughts ?

TodayPartitionCurrent Diff(A-B)
Expcted Diff (A-B)
20180920180900
20180920180811
20180920180722
20180920180633
20180920180544
20180920180455
20180920180366
20180920180277
20180920180188
201809201712979
2018092017119810
2018092017109911
20180920170910012
20180920170810113
20180920170710214
20180920170610315
20180920170510416
20180920170410517
20180920170310618
20180920170210719
20180920170110820
20180920161219721
20180920161119822
20180920161019923
20180920160920024

<colgroup><col span="2"><col><col></colgroup><tbody>
</tbody>
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Why are you trying to avoid certain functions?? Anyway try:

=MOD(A2-B2,88)
 
Upvote 0
Just be aware this works until the difference is greater than 87 months when it will go wrong. If you are likely to have more ill have another look.
 
Upvote 0

Forum statistics

Threads
1,215,844
Messages
6,127,255
Members
449,372
Latest member
charlottedv

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