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].
Hi Matt Weston,
Thank you for your reply. Unfortunately, The formula below didn't work.
IF([To Date]>[From Date],"Date Greater Than","Date Less Than")
Here is the error message:
Matt Weston Never mind, I put the formula in the validation settings under list settings and it worked.
Thank you so much! Cheers!
- Rafael BenicioNov 06, 2018Brass Contributor
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!