Forum Discussion

jdilks's avatar
jdilks
Copper Contributor
Feb 04, 2021
Solved

Date Formula

How do I get the date to = the last Friday of the month?

  • jdilks 

    1) If you want the last Friday in the month of the date that is in cell B2:

     

    =EOMONTH(B2,0)+1-WEEKDAY(EOMONTH(B2,0)-5)

     

    2) If you want the last Friday in the current month:

     

    =EOMONTH(TODAY(),0)+1-WEEKDAY(EOMONTH(TODAY(),0)-5)

     

6 Replies

  • jdilks 

    1) If you want the last Friday in the month of the date that is in cell B2:

     

    =EOMONTH(B2,0)+1-WEEKDAY(EOMONTH(B2,0)-5)

     

    2) If you want the last Friday in the current month:

     

    =EOMONTH(TODAY(),0)+1-WEEKDAY(EOMONTH(TODAY(),0)-5)

     

    • jdilks's avatar
      jdilks
      Copper Contributor

      HansVogelaar 

      Hi Hans,

       

      Thank you for your help.

       

      Can you help me with the formula for the first Friday of the month?

       

      Thank you,

      Jim

      • bovasclion's avatar
        bovasclion
        Brass Contributor

        use =CEILING(EOMONTH(TODAY(),-1)-5,7)+6 t o get the first Friday of current month you can replace today() to refer cell to get first Friday of that month.

         

  • SergeiBaklan's avatar
    SergeiBaklan
    Diamond Contributor

    jdilks 

    That could be

    =EOMONTH(A1,0)-WEEKDAY(EOMONTH(A1,0),15)+1

    if in A1 any date within given month. Or something like this, depends on how do you define year and month.

Resources