Find Jobs
Hire Freelancers

google script with the CRUD functions needed

$10-30 USD

Geschlossen
Veröffentlicht vor fast 2 Jahren

$10-30 USD

Bezahlt bei Lieferung
I have a system with customer files and a master file. I need just one function in the master file that will write/update/delete new entries when any edit is done in the customer files. Here is the technical task; Create a Google script onEdit function that will 1. add any new entries in the columns (A2:D) of the customer spreadsheets ('Customer1', 'Sheet1'; 'Customer2', Sheet1...), to the 'Master spreadsheet', 'Sheet1' , (B2:E) 2. check and update any existing entries based on the columns A and B, and if the entry already exists in both and A and B, just update the values in the columns C, D, E, if not update the whole row. 3. if the entry in the customer spreadsheets ('Customer1', 'Customer2', ...), columns B, C or D is deleted, remove the row in the 'Master spreadsheet' accordingly 4. Please note, the spreadsheets need to be declared by ID's and not names. For your reference, here is a code that worked for me but -this is created for two different sheets of the same spreadsheet while I need several source spreadsheets and one target spreadsheet. -The column that is checked against in order to update the whole row is "A" while I need to change this to check both "A" and "B" - The functionality for deleting a row if the entry is deleted in the columns B, C or D, is missing in the code. function onEdit(onEdit) { // 1. Retrieve values from the source and target sheets. var ss = [login to view URL](); var [srcSheet, targetSheet] = ['Source Sheet', 'Target Sheet'].map(s => [login to view URL](s)); var [srcValues, targetValues] = [[srcSheet, "A2:K"], [targetSheet, "A2:K"]].map(s => s[0].getLastRow() == 1 ? [] : s[0].getRange(s[1] + s[0].getLastRow()).getValues()); // 2. Create objects for searching values of the column "A". var [srcObj, targetObj] = [srcValues, targetValues].map(e => [login to view URL]((o, [a, ...b]) => (o[a] = b, o), {})); // 3. Check update values at the target sheet. var updatedValues = [login to view URL](([a, ...b]) => [a, ...(srcObj[a] || b)]); // 4. Check append values. var appendValues = [login to view URL]((ar, [a, ...b]) => { if (!targetObj[a]) [login to view URL]([a, ...b]); return ar; }, []); // 5. Update the target sheet. var values = [...updatedValues, ...appendValues]; [login to view URL](2, 1, [login to view URL], values[0].length).setValues(values); }
Projekt-ID: 34359278

Über das Projekt

8 Vorschläge
Remote Projekt
Aktiv vor 2 Jahren

Möchten Sie etwas Geld verdienen?

Vorteile einer Ausschreibung auf Freelancer

Legen Sie Ihr Budget und Ihren Zeitrahmen fest
Für Ihre Arbeit bezahlt werden
Skizzieren Sie Ihren Vorschlag
Sie können sich kostenlos anmelden und auf Aufträge bieten
8 Freelancer bieten im Durchschnitt $24 USD für diesen Auftrag
Avatar des Nutzers
Dear sir, I am 5+ years of experienced full-stack Django developer. Very high-level experience in Django ORM and its related features. also good at celery, wagtail, drf, sqlalchemey and lots more different features. I have developed a few big and busy application that has user base of more than 10K+, My technical expertise are: Django, DRF, ReactJS, nodejs, nextjs, celery, aws, docker, elasticsearch, ci/cd, and lots of different technology. Looking forward to talk to you regarding this. Thanks - Anamul
$20 USD in 7 Tagen
4,9 (8 Bewertungen)
5,1
5,1
Avatar des Nutzers
I’m a professional Engineer who has spent the past 7 years building, developing, and perfecting systems (from the ground up) through Google Sheets. With over 30 years of experience in the industry, I’ve not only learned how to develop, but how to work with clients, and I pride myself on bringing my clients high-end solutions and lifetime support. I’m incredibly well-versed in Google software, including: ● Google Sheets ● Google Apps Script ● Google Forms ● Google Data Studio Through this expertise, I’ve created some strong assets that I’m happy to share with you if you’re interested in perusing my professional portfolio. If you’re looking for an Engineer who can develop through Google software fast, efficiently, and with great results, I’m the person for you. So please, reach out with your questions and project needs, and we can get started.
$50 USD in 7 Tagen
4,9 (20 Bewertungen)
4,4
4,4
Avatar des Nutzers
Dear employer, My name is Kenneth from Kenya and I would like to apply for your recently posted job. I am delighted to tell you that my qualifications are well matched with your needs and I consider myself worthy enough to get the job. I have a degree in Computer Science and I'm currently doing my master's degree in computer forensics. I have also completed several courses in Motion Graphics & Graphics Designing. I have sound knowledge in Python, HTML, CSS, SQL, PHP, Java & javascript. I'm currently working as a Web Developer with over six years of experience and have worked on over a hundred websites from e-commerce websites to blogs and business websites. I have the skills to execute visual graphic designs and with my extensive skills in web designing, web content development, client/server-side scripting, web server and network security configuration I will complete your posted job in good time making me the best match for your posted job. I am open to discussing your project further and I'm available to chat 24hrs a day and hope that you consider me the man for the job. Yours faithfully Kenneth
$20 USD in 3 Tagen
4,7 (3 Bewertungen)
0,7
0,7
Avatar des Nutzers
I can gurantree for good product. Hey I'm interested in your project, I have read out your requirements. We have 5+ year experience. We have worked on similar projects to What You are looking for. We Have A Variety of IT Services. Custom Software Development, Qualified Staff to Develop and Customize Your Software. Give us a Call or WhatsApp +91 9430764087
$10 USD in 7 Tagen
0,0 (0 Bewertungen)
0,0
0,0
Avatar des Nutzers
EXCEL PROGRAMINI İYİ BİR ŞEKİLDE KULLANIP GÜN İÇERİSİNDE TAKİP SAĞLAYABİLİRİM. İYİ BİR ANALİZ YAPABİLİRİM
$10 USD in 7 Tagen
0,0 (0 Bewertungen)
0,0
0,0

Über den Kunden

Flagge von ARMENIA
Yerevan, Armenia
0,0
0
Zahlungsmethode verifiziert
Mitglied seit Sept. 7, 2020

Kundenüberprüfung

Danke! Wir haben Ihnen per E-Mail einen Link geschickt, über den Sie Ihr kostenloses Guthaben anfordern können.
Beim Senden Ihrer E-Mail ist ein Fehler aufgetreten. Bitte versuchen Sie es erneut.
Registrierte Benutzer Veröffentlichte Jobs
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Vorschau wird geladen
Erlaubnis zur Geolokalisierung erteilt.
Ihre Anmeldesitzung ist abgelaufen und Sie wurden abgemeldet. Bitte melden Sie sich erneut an.