Forum Discussion

shivom400's avatar
shivom400
Copper Contributor
Jun 03, 2022

mysterious bug w/ date formula that is not working

I am trying to recall the end of the month based off a day in a month, however the same formula (and format) is only working in some rows and not in others.  Looking for an expert that can help take a look and rectify.  Thank you

    • shivom400's avatar
      shivom400
      Copper Contributor
      =IFERROR(EOMONTH(DATE(YEAR(K10),DAY(K10),MONTH(K10)),0),"--")

      for this formula the value in k10 is 01/03/2022, where the format is DD/MM/YYYY
      • shivom400's avatar
        shivom400
        Copper Contributor
        I'm also using Month() to get the month of 04/03/2022 but it is showing month as 4 despite the date being formatted as DD/MM/2022 and so it should be showing 3

Resources