A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data
Thank you for taking the time to share what you’ve observed. I really appreciate the level of detail, and I hope the explanation below helps make things a bit clearer.
This isn’t actually a malformed formula. The root of the issue is that the ENCODEURL function isn’t supported in Excel for the web or the mobile/iOS clients (since they rely on the same web-based calculation engine). Because of that limitation, those platforms can intermittently return a #VALUE! error in your HYPERLINK column, while Excel Desktop continues to handle it just fine.
When you press F2 and then Enter on Desktop, Excel recalculates that cell and saves the result as a cached value in the file. Excel for the web or Teams often just displays this cached value and only recalculates cells it considers “dirty.” In your case, row 154 gets recalculated in the web environment, so ENCODEURL runs again and fails, resulting in the error. Meanwhile, row 153 still holds the cached value from Desktop, which is why it appears to work correctly. This is also the reason you find yourself repeatedly pressing F2 and Enter, you’re essentially temporarily freezing a valid result, rather than addressing the underlying compatibility issue.
A more stable approach would be to adjust the formula to avoid using ENCODEURL altogether. For example:
=HYPERLINK("https://jira.xxx.com/issues/?jql=key in(" & TRIM(SUBSTITUTE(SUBSTITUTE([@[ESPS-Key]],CHAR(13)," "),CHAR(10)," "))& ")","Jira Link")
In this version, TRIM and SUBSTITUTE are fully supported across Excel Desktop, Teams (Excel for the web), and mobile, so you won’t run into the same compatibility issue.
Hopefully this gives you a clearer picture of what’s happening behind the scenes and saves you from having to “spam F2” going forward!!
If the adjusted formula doesn’t quite match your data or you notice anything else unusual, please leave a comment under this post. This is the best way for me to receive notifications and follow up with you promptly.
Appreciate you sharing findings, and thanks again for your patience with this one!
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.