I am new in Apps Script, but I do love the possibilities it offers!
I have a question about how to fill the cells in a specific array with a value set in another sheet. I have two sheets: 1. Billing: lists the projects (column A) with the date on which the invoice is sent (column B) 2. Invoice: is the sheet that is sent as a pdf (I have the script for that). It only displays the list of the projects whose invoice has not yet been sent (basic FILTER function).
I want to set on the sheet "Billing", column B, the date that appears in the sheet "Invoice". My "problem" is that I don't want to fill the whole column, but only the cells that match this criteria: there is a project in column A, and there is no date in column B.
This is a sheet to understand what I'm looking for:
This is certainly easy to do, but since I'm starting with Apps Scripts, I don't know how to do it. Your help will be greatly appreciated.
So far, I've done this very little code to get the date:
function getDate() {
var ss = SpreadsheetApp.getActiveSpreadsheet();
var date = ss.getSheetByName('Invoice').getRange('D7').getValue();
}