Forum Discussion
SharePoint Calculated Column and ISBLANK
- Mar 12, 2024
You can try returning the 0 as result of calculation in formula of 2nd and 3rd column as well if none of the conditions met instead of returning blank string ("").
Can you try this once?
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
Rickytruco Use formula like:
=[1stCalculatedColumn]-IF(ISBLANK([2ndCalculatedColumn]),0,[2ndCalculatedColumn])-IF(ISBLANK([3rdCalculatedColumn]),0,[3rdCalculatedColumn])
Note:
- Sometimes comma( , ) does not work in formula (it is based on language or regional settings of your SharePoint site). So in that case use semicolon( ; ) instead of comma( , ).
- Use correct display name of your SharePoint columns in above formula.
- Wrap column names inside [] if your column name has space in it. For example: [My Column Name].
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
- ganeshsanapMar 12, 2024MVP
What are the column/data types of 2nd and 3rd column? Can you share screenshot of column settings page?
Also, share the screenshot of page where you are adding the formula with the updated formula you are using and screenshot of list view output where you see the error.
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
- RickytrucoMar 12, 2024Brass Contributor
ganeshsanap hey again 🙂 So, they are all calculated columns that calculate the days between days. The 2nd and 3rd do it this way, as I needed for weeekends not to count (also holidays... but gave up on that as I had no idea how)
This creates a number type of data. So, I'm just tryng to subtract the difference betwen different dates.
- ganeshsanapMar 12, 2024MVP
You can try returning the 0 as result of calculation in formula of 2nd and 3rd column as well if none of the conditions met instead of returning blank string ("").
Can you try this once?
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.