A
A
Alina Shah2020-04-16 22:04:29
Google Sheets
Alina Shah, 2020-04-16 22:04:29

How to calculate the crosssum in the table?

The task is to calculate the quessum like here , only in Google tables.
For example, they wrote MARIA in one cell, the sum 22 was displayed in the other.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Ivanov, 2020-04-17
@Shah_Alina

For an "incomplete" or "unfolded" sum, the following is true:

=SUMPRODUCT(--MID(Цифровое_представление;ROW(INDIRECT("1:"&LEN(Цифровое_представление)));1))

Цифровое_представлениеis a cell in which the text is represented as a sequence of numbers.
For the full sum, like this formula:
=IFERROR(
  MOD(SUMPRODUCT(--MID(Цифровое_представление;ROW(INDIRECT("1:"&LEN(Цифровое_представление)));1));9)
    +(MOD(SUMPRODUCT(--MID(Цифровое_представление;ROW(INDIRECT("1:"&LEN(Цифровое_представление)));1));9)=0)*9;
  -1
)

It is cyclical, counts SUMPRODUCTand adds up all the numbers.
5e995b76a3305815289730.png
Wrote a small application on Spreadsheets that repeats the functionality of the site Spreadsheet
5e995b90901c6146199371.gif
itself https://docs.google.com/spreadsheets/d/19bQjuZpRaE...
Example of use
5e9d369245b05028069931.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question