G
G
Goobert Crypto2021-09-08 13:58:43
Macros
Goobert Crypto, 2021-09-08 13:58:43

Macro on exel, with reading from sheet 1 to sheet 2?

There is sheet 1 in which there is a list of surnames and days of the week in which they were at work .
6138963dc13b2787938753.jpeg
From it, you need to display a line containing the days of the week in which he was at work
. Like this:
613896c891a60801105880.jpeg
Many thanks in advance. Tried to do it doesn't work. Please help me with code to optimize this routine work)))

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
Grigory Boev, 2021-09-08
@goober-crypto

For Excel:

=еслиошибка(
ПСТР(
        ЛЕВСИМВ($B$1&",  ";B2*4)&
        ЛЕВСИМВ($C$1&",  ";C2*4)&
        ЛЕВСИМВ($D$1&",  ";D2*4)&
        ЛЕВСИМВ($E$1&",  ";E2*4)&
        ЛЕВСИМВ($F$1&",  ";F2*4)&
        ЛЕВСИМВ($G$1&",  ";G2*4)&
        ЛЕВСИМВ($H$1&",  ";H2*4)
        ;1
        ;СУММ(B2:H2)*4-2
        )
)

For Google Sheets:
=еслиошибка(join(", ";filter($B$1:$H$1;B2:H2<>"")))

Demo table

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question