Forum Discussion

simon_70's avatar
simon_70
Copper Contributor
Dec 21, 2022
Solved

Freeze Excel formula when criteria met

Hello Guys

 

Might be easy but i have a headache here 

 

Preface

I want the "Days in transit" Colum to stop updating the formula when I select the Yes answer in the "Arrived at destination" Colum currently the formula on "Days in transit" is "=TODAY()-G2"

 

 

i have tried =IF(L3="yes","","=TODAY()-G2") 

 

but i don't think the formula is correct 

 

I'm out of ideas 

 

 

  • simon_70 

    Instead of No/Yes in the Arrived at destination column, I'd leave it blank initially, and enter the date of arrival when the item has arrived. You can then use

     

    =IF(L2="",TODAY(),L2)-G2

  • Karthick_A's avatar
    Karthick_A
    Copper Contributor
    If possible please update date of arrival in column and rephrase the formula as below
    IF "date of arrival" column >0 then, date arrival - G2 else TODAY()-G2
    • simon_70's avatar
      simon_70
      Copper Contributor

      OliverScheurich 

      Riny_van_Eekelen 

       

      thank you that helped

      Now I just need it to stop counting when yes is selected in "Arrived at destination" 

       

      the no logic is working correctly so its something i need to put in the middle i believe 

       

      =IF(L3="yes","__not sure  what to put here__",TODAY()-G3)

      • simon_70 

        Instead of No/Yes in the Arrived at destination column, I'd leave it blank initially, and enter the date of arrival when the item has arrived. You can then use

         

        =IF(L2="",TODAY(),L2)-G2

Resources