Script to update and append records

175 views
Skip to first unread message

Bobby D.

unread,
Feb 28, 2021, 10:34:26 PM2/28/21
to Google Apps Script Community

Looking for a Google script solution to compare between Master List sheet and Update List sheet. Sheets are identical. Attempting to update the Master List with revised dates and or destinations from the Update sheet and if the ID Number isn't present, to append the record to the Master List.

The 4 Columns are ID Number, Name, Travel Date, Destination for both Lists

Goal#1: When revised Travel Dates appear on Update List any dates that changed should be updated on Master List if it has the same ID Number.

Goal#2: If the Update List has an ID Number which is not in the Master List, append the new record to Master List.

I had been using conditional formatting to highlight changed dates and then pasting them in manually. I would think this is something that can be automated but I can't find anything in the YouTube GS tutorials or the web that addresses these functions directly. 

Appreciate any help you can provide!



Darren D'Mello

unread,
Mar 1, 2021, 8:22:17 AM3/1/21
to google-apps-sc...@googlegroups.com
You can share the readonly copy of sheets, this would help to better understand your situation.



--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/0cd7255c-44b5-428a-b391-d787bcb55b7dn%40googlegroups.com.


--
Best,
Darren

Bobby D.

unread,
Mar 2, 2021, 12:17:28 AM3/2/21
to Google Apps Script Community
Hi Darren,

Okay here's a link to a GS with tabs for the Update list, Master list and Master list after updating and appending new records. Hope it's clear what I'm after!


Thanks for your help!

Darren D'Mello

unread,
Mar 2, 2021, 7:53:21 AM3/2/21
to google-apps-sc...@googlegroups.com

Bobby D.

unread,
Mar 2, 2021, 10:31:22 AM3/2/21
to Google Apps Script Community
So sorry about that. I can hit this link from a friend's computer so it should work!

Darren D'Mello

unread,
Mar 2, 2021, 11:37:18 PM3/2/21
to google-apps-sc...@googlegroups.com
If there was some code attempt we would have suggested the right way to fix. Since you need a script to do the task, you may consider to hire someone from the consultants listed here
I am one among them. You can drop me an personal email if you are interested, as we need to dedicate the time for building it.

Thank you,
Darren
Reply all
Reply to author
Forward
0 new messages