Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have two date 20180130 - 20180228 and i need to calculate the number of months between two date in straight table (CHART)
so in my example i have to find 1 MONTH
(Year(Date#(20180228,'YYYYMMDD'))*12+Month(Date#(20180228,'YYYYMMDD')))
-
(Year(Date#(20180130,'YYYYMMDD'))*12+Month(Date#(20180130,'YYYYMMDD')))
First convert the dates using date# with proper format like: Date#( Date1, 'YYYYMMDD') and then follow one method like shown here:
Interval(Date#('20180228','YYYYMMDD')-Date#('20180130','YYYYMMDD'),'d')
(Year(Date#(20180228,'YYYYMMDD'))*12+Month(Date#(20180228,'YYYYMMDD')))
-
(Year(Date#(20180130,'YYYYMMDD'))*12+Month(Date#(20180130,'YYYYMMDD')))