Skip to main content

Hi there!

We are looking to have a "launch date" formula field based on the merge field ( CloseDate ). If the ( CloseDate ) is the 1st-15th of the month then the launch date would be the third Wednesday of that month but if the ( CloseDate ) is the 16th-31st of the month then the launch date would be the second Wednesday of the following month. I am struggling with how I would accomplish that and would appreciate advice! 

 

#Formulas

10 Antworten
  1. 15. Feb. 2024, 17:02

    So basically something like this?

    IF(

    DAY( CloseDate ) <= 15,

    DATE(YEAR(CloseDate),MONTH(CloseDate), 01) +

    CASE(WEEKDAY(DATE(YEAR(CloseDate),MONTH(CloseDate), 01)),

    1, 17,

    2, 16,

    3, 15,

    4, 14,

    5, 20,

    6, 19,

    7, 18,

    0 ),

    ADDMONTHS(DATE(YEAR(CloseDate),MONTH(CloseDate), 01), 1) +

    CASE(WEEKDAY(ADDMONTHS(DATE(YEAR(CloseDate),MONTH(CloseDate), 01), 1)),

    1, 10,

    2, 9,

    3, 8,

    4, 7,

    5, 13,

    6, 12,

    7, 11,

    0 )

    )

0/9000