Створити таблицю в гугл таблицях
11 USDМаємо таблицю зі стовпцями: Назва пива, Статус, Отримали, Днів на складі, Підключена, Днів підключено, Закінчилась, Закінчилась за.
В колонці Статус може бути три випадаючих варіанта: "Повна", "Підключена", "Закінчилось".
В стовчику Отримали, Підключена і Закінчилась буде дата.
Потрібно налаштувати сортування рядків по такому принципу:
- Сортуємо все по стовпчику Статус, спочатку всі рядки в який "Закінчилось", далі "Підключено" і "Повне".
- Далі всі рядки зі стусом "Закінчилось" додатково сортуємо по даті в стовпці Закінчилось
- Всі рядки зі статусом "Підключено" сортуємо за датою в полі в стовбці Підключена
- Всі рядки зі статусом "Повне" сортуємо по даті в колонці "Отримали"
Сортування має спрацювувати при редагуванні кожного стовпця "Статус", "Закінчилось", "Підключена", "Отримали". Потрібно буде написати максимально простий код для Apps Script, який буде зрозумілим всім з детальними коментарями.
Також має автоматично рахувати кількість днів в стовпцях "Днів на складі", "Днів підключено ", "Закінчилась за". В ідеаліщоб там було пусто поки немає потрібних дданих, а не так як на скріні.
Також створити і налаштувати саму таблицю, полям надати правильно тип данних і т.п. Сам ради дати не можу)
Вигляд таблиці додаю.
Applications 1
-
419 13 0 Welcome to!
I work with Excel and Google tables.
Ready to help with a formula or macro (scripts).
I will be happy to cooperate.
-
2578 57 1 1 I will do this tonight. I work as a financial analyst in a large international company. There is a great experience (see reviews).
-
Є код який майже працює так як треба:
function onEdit(e) {
// Отримати активний аркуш та діапазон даних (від рядка 2 до останнього рядка у всіх стовпцях)
var activeSheet = e.source.getActiveSheet();
var range = activeSheet.getRange("A2:I" + activeSheet.getLastRow());
// Отримати номер редагованого стовпця та значення
var editedColumn = e.range.getColumn();
var editedValue = e.range.getValue();
// Сортування за стовпцем "Статус"
if (editedColumn === 2) {
// Сортувати за стовпцем "Статус", потім за відповідним стовпцем залежно від значення "Статус"
if (editedValue === "Закінчилось") {
range.sort([{column: 2, ascending: true}, {column: 7, ascending: true}]);
} else if (editedValue === "Підключена") {
range.sort([{column: 2, ascending: true}, {column: 5, ascending: true}]);
} else if (editedValue === "Повне") {
range.sort([{column: 2, ascending: true}, {column: 3, ascending: true}]);
}
}
// Сортування за стовпцем "Закінчилось"
if (editedColumn === 7 && editedValue === "Закінчилось") {
range.sort([{column: 2, ascending: true}, {column: 7, ascending: true}]);
}
// Сортування за стовпцем "Підключена"
if (editedColumn === 5 && editedValue === "Підключено") {
range.sort([{column: 2, ascending: true}, {column: 5, ascending: true}]);
}
// Сортування за стовпцем "Отримали"
if (editedColumn === 3 && editedValue === "Повна") {
range.sort([{column: 2, ascending: true}, {column: 3, ascending: true}]);
}
}
Але треба довести це все до пуття. -
Current freelance projects in the category Databases & SQL
It is necessary to check the scripts and update the data in the Postgres database.It is necessary to correct the SQL scripts for the Postgres database. It is required to check the scripts and update data from external Excel tables and between two Postgres databases (different servers). Scripts will be run through AnyDesk using Navicat. List of data for… Databases & SQL ∙ 3 days 1 hour back ∙ 18 proposals |
Need an Airtable architect to build a relational schema and a new clean Airtable base.Need help rethinking and building a clean relational schema for an internal operational system on Airtable. The current database is already in use by the team, but it has grown organically: the structure is partially flat, some tables/views are actively used, while others are… Databases & SQL, Desktop Apps ∙ 3 days 18 hours back ∙ 10 proposals |
Basketball Coaching Education Platform + Custom CMSBasketball Coaching Education Platform + Custom CMSProject Overview We are looking for an experienced web development team or full-stack developer to build a modern basketball coaching education platform. The website will provide basketball coaches with access to educational… Databases & SQL, Web Programming ∙ 4 days 12 hours back ∙ 91 proposals |
Integration of Viber in 8.3
223 USD
Need Viber integration into own CRM (1C 8.3)About the Company The company "Domofon System" is engaged in the installation and maintenance of intercom systems. Base of over 40,000 subscribers. We work on our own customized system based on 1C 8.3. We are looking for a specialist… Databases & SQL, Bot Development ∙ 4 days 15 hours back ∙ 18 proposals |
Refinement of 1C UT 11 for Zebra TSD (RDP): different sound signals when scanning
22 USD
Configuration: 1C UT 11 Address warehouse Zebra TC26 TSD Work via RDP Product scanning is performed in receiving, placement, picking documents, and other warehouse operations. Current problem: Warehouse workers operate through the Zebra TSD. When scanning, they do not always… C#, Databases & SQL ∙ 6 days 13 hours back ∙ 6 proposals |