Solved

SharePoint 2013 Column Calculation

Posted on 2015-01-27
2
151 Views
Last Modified: 2015-03-14
Hi,

I am trying to calculate years of experience in the calculated column.  I would have someone enter in the year they started working and then calculate it to today.   WHat is the formula for this and do I need 2 columns?
0
Comment
Question by:Jack_son_
2 Comments
 
LVL 44

Accepted Solution

by:
Rainer Jeschor earned 500 total points
ID: 40573504
Hi,
this is not possible as the TODAY function is not allowed in calculated column formulas.
And this is by design as the value of the calculated field is persisted in the content database, therefore a re-calculation is only run when the list item changes.
There are two workarounds:
If you just need the value in a list view, you might use client script to virtually calculate the difference and update an empty field in  the list view (or virtually create an additional column) OR you use the client object model and generate a table inside a DIV to display the data.
Second alternative is to create a workflow which runs e.g. once a month / once a day and which loops over all list items, calculate the difference and updates the list item.

HTH
Rainer
0
 

Author Comment

by:Jack_son_
ID: 40579309
Thanks, I got it working, although how do I get the today updating daily?
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Leon
Software Metering within our group of companies has always been an afterthought until auditing of software and licensing became a pain point. Orchestrator and SCCM metering gave us the answer and it was an exciting process.
Deploying a Microsoft Access application in a Citrix environment is not difficult but takes a few steps. However, Citrix system people are often of little help, as they typically know next to nothing about Access. The script provided here will take …
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now