Question

I have calulated column which display's the value based on the difference between today and requested date field.

=Today-[Requested Date]

This is working fine in Sharepoint Standard View. But the same is not working with the datasheet view . The calculated column is showing as below

=#NAME?-[Requested Date].

Due to this i am not able to save the data. Can anyone please let me know how to solve this ?

Était-ce utile?

La solution

Which SharePoint version are you using?

I tried the same scenario using SharePoint 2013 and was able to add the values in both standard and datasheet views. I am assuming you might have used the same steps.

  • Create 2 new columns named RequestedDate(DateTime) and Today(Single line of text).
  • Add a new column of type calculated field with formula =Today-[Requested Date].
  • Now delete the Today column.
  • Try entering the data in both the views.

Autres conseils

First I have used today() function to calculate difference between 2 days except working days. The list is not automatically updating. If we change the Start_Date, then it calculates and gives the value. Can you suggest me why this happens?

You have mentioned in your post that there is some tricks in using today() function. I have created separate Today_Date column in my list. And Used the same column name in finding difference between 2 days. Here also the same problem exists.

The formula I used is,

=IF(AND((WEEKDAY([Today Date],2))<(WEEKDAY([Release Date],2)),((WEEKDAY([Release Date],2))-(WEEKDAY([Today Date],2)))>1),(((DATEDIF([Release Date],[Today Date],"D")+1))-(FLOOR((DATEDIF([Release Date],[Today Date],"D")+1)/7,1)*2)-2),(((DATEDIF([Release Date],[Today Date],"D")+1))-(FLOOR((DATEDIF([Release Date],[Today Date],"D")+1)/7,1)*2)))

Please tell me how to make the difference between 2 date values update automatically every time I open the list.

Then I tried the trick which you have mentioned above. But it works while I enter the data. When I open the list for the next day or some other day's after the Calculated column is not taking the current day's value, do the data remains same. what should I need to do in case it needs to take current date's value and calculate the formula?

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top