# Different calculation for each cells

Hi everyone!
I was wondering if it was possible to have a different formula in each cells from the same column?

thanks
deb

Whatâ€™s your specific use case for this?

Iâ€™m building an app for a 14 days nutrition program.
In my recipes, Iâ€™m showing the ingredients quantity based on the users daily energy intake (kcal)
For some recipes, I need to adapt the quantity for specific ingredients.
So I wanted to be able to have different formula in each ingredient row as itâ€™s not always the same formula to be applied

Do you have specific examples of formulas and what would be different between rows? The short answer is no you canâ€™t have different formulasâ€¦but the long answer is that almost anything is possible with some creativity.

1 Like

Ok so whatâ€™ I am trying to do is the following:

In the nutrition plan, my ingredients are divided in different tabs per meal and per macros.
F.i: 1 tab â€śIngredients Proteins Lunchâ€ť â€śIngredients Carbs Lunchâ€ť "Ingredients â€śFat Lunchâ€ť

The quantity of the ingredients from these tabs are calculated based on total Kcal a user can intake per day. That info is in the â€śUserâ€ť tab. So for the Quantity columns in these tabs, I simply used a math column and applied the same formula to all the rows.

But the quantities of some other ingredients are not calculated following the same formula.
Let take a real example.

The recipe is â€śPancake with Avocadoâ€ť

• â€śBuckwheat flourâ€ť is in the â€śIngredients Carbs Lunchâ€ť, and follow the normal formula: (100 User Quantity of Carb Lunch) / Carbs quantity for 100g of ingredient.*
• â€śEgg whiteâ€ť is in the â€śIngredients Proteins Lunchâ€ť and follow the normal formula: (100 User Quantity of Protein Lunch) / Protein quantity for 100g of ingredient.*

But for the macros fat. I have 2 ingredients: Avocado and Coconut oil.
So I put a row for avocado and one for coconut oil in the â€śIngredients Fat Lunchâ€ť but in the math column to calculate the quantity, for this recipe, I can"'t follow the same formula as the other recipes as I would like to divide the quantity of fat a user can intake for lunch by 2 and then calculate the quantity of each ingredients accordingly.

Please let me know if itâ€™s not clear

Iâ€™m a visual person, so Iâ€™m trying my best to understand. But Iâ€™m guessing you could have some type of rollup column that counts the number of fats If you have one fat, then the rollup should return 1. If you have two fats, then the rollup should return 2. Add a division to your math column formula that will divide by the rollup value.

1 Like

Totally new here and believe i have a similar question. I am wanting to create an app that firefighters can use for hydraulics calculations to determine friction, etc. Following the instructions by adding a math column seems very counter intuitive after using excel for so many years. I must admit im at a complete loss as to how to get the cells to actually make the computations. For example, image included.

I would prefer the layout if it is possible, however, i would like the result to be as shown in the following image. Target Elevation - Pump Elevation and the result is displayed in the Head in Feet cell on the output side column though. I cant seem to figure out how to make this happen?

What documentation am i missing or mis reading folks?

Please donâ€™t create duplicate posts.

Closing this one.

2 Likes