Forum Discussion
Sharepoint calculated column if date greater than another column
- Nov 06, 2018
Hey Matt Weston,
I thought it was working but it's not! Just noticed, the validation is not working properly.
The formula that works is this one =[To Date]>=[From Date].
Matt Weston Never mind, I put the formula in the validation settings under list settings and it worked.
Thank you so much! Cheers!
Hey Matt Weston,
I thought it was working but it's not! Just noticed, the validation is not working properly.
The formula that works is this one =[To Date]>=[From Date].
- Matt WestonNov 07, 2018Iron Contributor
Hi Rafael Benicio, yes that is how the formula would be for list validation. Apologies, the original formula I gave you was for a calculated column.
- CharlesDKMay 27, 2020Copper Contributor
Hi Matt Weston
I am getting an error message for the same formula (different column names)
=[End Date of Action]>=[Start Date of Action]
Error:
Sorry, something went wrong
The formula cannot refer to another column. Check the formula for spelling mistakes or update the formula to reference only this column.Do you have a suggestion as to what the solution is?
Many thanks!
- CharlesDKMay 27, 2020Copper ContributorFixed my error - this has to be a list validation, not a column validation!
https://social.msdn.microsoft.com/Forums/sharepoint/en-US/4e4659a7-fced-47e3-8005-2943d390099e/sharepoint-2013-the-formula-cannot-refer-to-another-column?forum=sharepointdevelopment