Forum Discussion

denisemartincaldareri's avatar
denisemartincaldareri
Copper Contributor
Jun 20, 2020
Solved

Get Liquidation Period

Hi, everyone! I would like to obtain the liquidation period of a date given a date range. If the date given falls between 2 dates, I need excel to give back the month. I can“t make it work! I get th...
  • Riny_van_Eekelen's avatar
    Jun 20, 2020

    denisemartincaldareri Not sure I understand your date ranges. The first one says from 16-12-2020 to 15-01-2020. How would that work? The next is from 16-01-2020 to 15-02-2020. Thereafter, the start date goes back 11 months in time and the end date goes forward one month.

     

    Perhaps you just want to determine the termination month based on the termination date. If before the 15th then same month. If equal to or after the 15th then next month. If so, the formula could be:

     

    =IF(DAY(H11)<15,TEXT(EDATE(H11,0),"Mmmm"),TEXT(EDATE(H11,1),"Mmmm"))

     

     

     

    =SI(DIA(H11)<15;TEXTO(FECHA.MES(H11;0);"Mmmm");TEXTO(FECHA.MES(H11;1);"Mmmm"))

     

     

Resources