Hi,
thanks for your question, and sorry for the trouble.
Please try the uppercase version:
=A1+B1+C1
Regards,
Tobias
Thank you, that worked.
However I do have one more question.
I’m using a shortcoder plugin to execute any HTML or JS placed in it. Here is an example:
<span class="btc_eur"></span>
<script>
(function($){
var cmc_ajax = $.getJSON('https://api.coinmarketcap.com/v1/ticker/bitcoin/?convert=EUR');
cmc_ajax.done(function(data){
$('.btc_eur').text(data[0]['price_eur']);
});
})(jQuery);
</script>
Placing this shortcode in the cell works well. However, when doing a formula (ex plus the value of the shortcode content with another cell) it gives me the “not contain a number or expression” error. I’m guessing it thinks the output from the shortcode is a string? Any workaround of this?
Hi,
indeed, that’s what the formula thinks. The reason simply is that this is a string (HTML plus JavaScript code). Strings can not be used in formulas like that.
In addition, your JS code is only evaluated in the frontend, but all formulas have already been evaluated by that point.
Regards,
Tobias
Thank you for your fast reply.
I see. Do you think there is an alternative way of doing the above example? Like converting the string to a float, or use something else than shortcode to display the numbers? I don’t know if you could point me in the right direction of a possible solution.
Thank you.
Hi,
no, sorry, there is no direct way, simply as you are only retrieving the value via AJAX when the page is loaded.
Regards,
Tobias