Skip to main content

I wanted to return 1 for all the records closed between Monday to Friday 

Return 0 for  any other stages ( in progress, needs analysis ...)

 

i'm using below formula , its throwing syntax error 

 

IF( StageName = "Closed Won",

"IF(

    AND(

        NOT(ISBLANK(CloseDate)),  

        TEXT( DAY(CloseDate) ) <> "1",

        TEXT( DAY(CloseDate) ) <> "7"

    ),

    1,

    0

)","0")

 

What is that I'm doing incorrect ?

1 respuesta
  1. 1 abr 2024, 5:34

    Hello@Saikamal Paradi,

    Please try,

    IF(

    AND(

    TEXT(StageName) = "Closed Won",

    NOT(ISBLANK(CloseDate)),

    TEXT( DAY(CloseDate) ) <> 1,

    TEXT( DAY(CloseDate) ) <> 7)

    ) ,1,0

    )

0/9000