R
R
RazDvaRaz2021-02-02 01:40:36
Macros
RazDvaRaz, 2021-02-02 01:40:36

How to transfer data from one table to another so that the first table erases the entered values ​​after the transfer?

There are two tables: a table with a menu designer (hereinafter - table 1) and an order accounting table (hereinafter - table 2).
In table 1, a person must select, using the drop-down list, the items he needs in the menu for different categories, then click ready and this data should be redirected to table 2, which collects all orders.
It is necessary to make sure that after sending the data from table 1, the entered values ​​​​are deleted and the table is available to other people.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DenysDanov, 2021-05-28
@DenysDanov

Google script will help

var sprsheet = SpreadsheetApp.getActiveSpreadsheet();
  var sheet1 = sprsheet.getSheetByName('List1');
  var sheet2 = sprsheet.getSheetByName('List2');
  sheet2.getRange("Диапазон куда вставлять").setValues(
         sheet1.getRange("Диапазон откуда копировать").getValues()
)
sheet1.getRange("Диапазон откуда копировать").clear()

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question