increment counter when list item status field changes to active using OOTB list formula

sweetu ve 286 Reputation points
2022-12-20T19:00:50.72+00:00

I need to increment the counter of Noofassignments column based on the status value Active, whenever status is getting changed as active then i need to increment 1 to the Noofassignments field with simple list formula

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
11,229 questions
0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. Xyza Xue_MSFT 30,176 Reputation points Microsoft External Staff
    2022-12-21T02:57:38.837+00:00

    Hi @sweetu ve ,
    You should have many status columns, increment 1 to the Noofassignments field(calculated column) every time one of the status columnsis "Active", right?
    Please use the following formula: =IF(status1="Active",1,0)+IF(status2="Active",1,0)
    The running effect is as follows (the value of Noofassignments shows how many ”active“):
    272721-image.png


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  2. sweetu ve 286 Reputation points
    2022-12-21T06:58:53.863+00:00

    Thanks for your inputs

    I am not having 2 status fields ,pls refer below list schema where status is active and whenever status is modified to active then we are getting modified status active count and increment to the Noofassignments column

    I got Noofreplacements columns where we need to increment the counter of that field whenever Noofassignments counter getting incremented.

    272872-image.png

    0 comments No comments

  3. Xyza Xue_MSFT 30,176 Reputation points Microsoft External Staff
    2022-12-21T08:16:00.843+00:00

    Hi @sweetu ve
    Unfortunately, after my attempts, there is no way to use the OOTB list formula to realize the function of the counter. We cannot record the result of the last counter, so the life of the counter is only once.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  4. Xyza Xue_MSFT 30,176 Reputation points Microsoft External Staff
    2023-01-04T01:50:21.97+00:00

    Hi @sweetu ve ,
    After my search and research, we can count static counters, such as the total number of items in a list. But as you describe, continue to calculate the next count based on the previous count, which we currently cannot achieve.
    Thank you for your understanding and support.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.