Forum Discussion

magnusjonasson's avatar
magnusjonasson
Copper Contributor
Mar 17, 2023

Filling a predefined value in a cell based on background color of another cell?

I have a SharePoint list with conditional formatting set up for a specific column which changes the cell background between red and green based on date conditions (see json below).   Next, I would ...
  • ganeshsanap's avatar
    ganeshsanap
    Mar 20, 2023

    magnusjonasson You have to use the calculated column formula in this format: 

     

    =IF([Justnupadatum] <= TODAY()-[Malantalbankdagar], "Not OK", IF([Justnupadatum] >= TODAY()-[Malantalbankdagar], "OK", ""))

     

    Here you have to use the display names of columns instead of internal names. Also, if TODAY() does not work, try using NOW().


    Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.

    For SharePoint/Power Platform blogs, visit: Ganesh Sanap Blogs

Resources