A
A
Alina Shah2020-04-17 15:05:44
Google Sheets
Alina Shah, 2020-04-17 15:05:44

How to sort a set of numbers into different cells?

I would very much like to make life easier by solving the following problem:
there is a set of numbers and you need to spread all this long code into the appropriate cells as shown in the picture:
5e999abf06648904734083.png
all ones, and there are four of them in one cell, deuces in another. If there are no numbers in the code, for example, there are no sixes and eights, then a dash. Zeros are taken out to another cell, not to this matrix.
Is it real?

Answer the question

In order to leave comments, you need to log in

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

You need to either create a range with numbers, or manually fill them into a formula.

=ARRAYFORMULA(REGEXREPLACE("190919754153912"; "[^"&{1\4\7;2\5\8;3\6\9}&"]";""))

5e99a4c0baf62310772297.png
I preferred the second.
Let there be a range of numbers Сетка_чисел
5e99a2a035e5f988302929.png
and a cell Цифровое_представление.
5e99a3082461b539823836.png
Then it's fair
=ARRAYFORMULA(REGEXREPLACE(Цифровое_представление; "[^"&Сетка_чисел&"]";""))

5e99a31fc0976747925730.png
Example in Spreadsheet https://docs.google.com/spreadsheets/d/19bQjuZpRaE...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question