Expression easy for us HELP please

Hello,

I 've got a problem with an expressionโ€ฆI think itโ€™s easy for us but iโ€™m not a pro of appsheetโ€ฆ

Problem:

The expression (in โ€œResultsโ€) for the first row IN appsheet (โ€œappformulaโ€):
[Pears] + [Oranges] / [Markets]

For the next rows, I ALWAYS want to USE the value from cell A2 (cellโ€™s green) but when I use the formula I wrote you above, it automatically selects A3, A4, A5 โ€ฆ

I would like to put:
[Pears] + [Oranges] / A2
but appsheet doesnโ€™t work like that โ€ฆ
I donโ€™t know what to put to select cell A2 โ€ฆ

(I specify that it is useless that I put the formula [Pears] + [Oranges] / โ€œ7โ€ because over time I will change the value of A2)

Thanks you for help.

0 6 268
6 REPLIES 6

Steve
Platinum 4
Platinum 4

Start here:

Iโ€™ve already watched the documentation, and I havenโ€™t found it. Also, donโ€™t speak very good English. Please help me.

Just put the following formula in the D2 Cell and the results will be calculated automatically
=ARRAYFORMULA(IF(B$2:B>0;((B$2:B+C$2:C)/A2); ""))
Then, regenerate the structure in your appsheet table

You can use Google Translate or we can speak spanish if you want. Im from Honduras.

If you have a table called โ€œmarketsโ€, you can count the number of markets present in that table and use it in your formula as follows:
([Pears] + [Oranges]) / COUNT(LIST(Markets[key]))

I recomend you to enclose pears and oranges with โ€œ( )โ€ if you plan to divide the sum of them with the value of markets, otherwise, mathematically the formula will divide oranges and markets first and then will add the value of pears. example:
pears oranges / markets
5 + 100 / 10 = 15
( 5 + 100 ) / 10 = 10.5

Gracias pero me fallait una cosita, dondรฉ puedo encontrar la llave ?

Bueno, yo escribรญ Markets[key] como ejemplo.
el campo llave es un identificador รบnico que debes tener en tu tabla Markets, bรกsicamente la columna con que identificas cada mercado, si tenรฉs una tabla con 10 mercados por ejemplo y el campo llave o el campo principal con el que appsheet identifica los valores unicos es la columna titulada โ€œMercadoโ€ entonces tendรญas que poner Markets[Mercado].

De esta forma estarรญas indicandole a appsheet que cuente los elementos en la columna Mercado de la tabla Markets. Puedo ayudarte con tu hoja de google tambien.

En Appsheet la columna principal o โ€œKeyโ€ estรก marcada de esta forma, solo debes navegar al apartado Data>Columns y seleccionar la tabla que desees.
3X_5_7_5711adc0a00d5ea399b17653d0c46943458accb7.png

Este es un ejemplo de mi tabla Rubros que tiene una columna llamada key pero podria tambien llamarse โ€œllaveโ€. Sin embargo, nombrar bien las columnas en ingles como (key, latlong, image, name, signature, email, phone) es beneficioso porque asรญ appsheet las identifica y las marca con su tipo de dato para que no tengas que hacer mas trabajo.

Top Labels in this Space