I read Google Script: Conditionally copy rows from one spreadsheet to another and could not make it work for me.
I need a script that will allow me to do the quoted text below. Please feel free to edit my spreadsheet to make a complete working script. I will keep the spreadsheet publicly available for anyone to copy the script for their own use. I really know nothing about script writing so I need it all spelled out. Sorry, I’m such a noob with all this, but this will help me learn.
https://docs.google.com/spreadsheet/ccc?key=0AoJdwy8V1ldHdFA5M1M1Wlp1NHZhcmxJOUZKVEU4X3c&usp=sharing
If Column B on sheet “All_Mileage” says “John” then I want that row to
be copy and pasted into Sheet “John” starting on row 3 and following.If Column B on sheet “All_Mileage” says “Adam” then I want that row to
be copy and pasted into Sheet “Adam” starting on row 3 and following.If Column B on sheet “All_Mileage” says “Mike” then I want that row to
be copy and pasted into Sheet “Mike” starting on row 3 and following.
I saw other scripts on here, but I couldn’t get them to work. Like I said I’m greener than a sapling when it come to code.
Thanks a ton!
C.Lang is right, this is not a place to get readymade scripts … but since this question is so common and has been aswered so often it took me a few minutes to write and test… so there it is :
EDIT : since I used the name value in MasterSheet to find destination sheet I thought it might be usefull to handle the case where the destination sheet doen’t exist by creating it using the same rule, ie.
name = sheetName…The other issue was that there was no way to know which rows had been already copied… so I made a version that handles all that, copying only the rows that are manually selected (even in only a single column) and change the background color to tell that these rows have been processed. I also added a menu for a minimal comfort 😉
(how to keep busy on a cold sunday afternoon 😉
Illustration below :