# Calculations inside format() function

**URL:** <https://connect.superhuman.com/t/calculations-inside-format-function/32855>\
**Category:** Ask the Community\
**Created:** [August 8, 2022, 8:14am UTC](https://connect.superhuman.com/t/calculations-inside-format-function/32855 "2022-08-08T08:14:42Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Paul\_Danyliuk](https://yyz1.discourse-cdn.com/coda1/user_avatar/connect.superhuman.com/paul_danyliuk/32/27228_2.png) [@Paul\_Danyliuk](https://connect.superhuman.com/u/Paul_Danyliuk)\
**Post date:** [August 8, 2022, 6:42pm UTC](https://connect.superhuman.com/t/calculations-inside-format-function/32855/3 "2022-08-08T18:42:40Z")

</div>

Longer answer is yes but that involves hacking the actions 🙂

> [@Solve math formula that is currently text in a cell using a button? (trying to make a calculator)](https://connect.superhuman.com/t/solve-math-formula-that-is-currently-text-in-a-cell-using-a-button-trying-to-make-a-calculator/24528/2):
>
> With some black magic, everything’s possible slight_smile It’s not obvious though, and not a recommended solution. This takes a button, extracts its code and replaces a piece of that code with the expression. Then creates an Action object out of that new adjusted code and sets it on another button. Please mind that the code uses slightly different notation than Coda formulas, e.g. you cannot reference rows and columns like you’d do in Coda formula language. For literal numbers it works thoug…

To understand what I did here take this guide 🙂

[![](https://global.discourse-cdn.com/coda1/original/3X/a/d/ad39af8021a13857fc681567ef08ea7ca5c6bdb4.jpeg "Black magic") ](https://www.youtube.com/watch?v=wexDCM9OVjE)

Welcome to the Community, @Quentin_Morel !

---

_[View the full topic](https://connect.superhuman.com/t/calculations-inside-format-function/32855)._
