所以我有一個包含多個 Gollum 的電子表格,當任何 collum 更新時我需要它來更新第 5 列上的時間戳,這是我們的時間戳列 https://docs.google.com/spreadsheets/d/1zOKwPL0LMtWpcbhji6XDi-8Sx3-WfxRXnboZ_Le0wZo/edit? usp=共享
但我終生無法弄清楚為什么它不起作用
uj5u.com熱心網友回復:
從stackexchange試試這個答案
function onEdit() {
var s = SpreadsheetApp.getActiveSheet();
if( s.getName() == "Sheet1" ) { //checks that we're on the correct sheet
var r = s.getActiveCell();
if( r.getColumn() == 13 ) { //checks the column
var nextCell = r.offset(0, 1);
if( nextCell.getValue() === '' ) //is empty?
var time = new Date();
time = Utilities.formatDate(time, "GMT", "HH:mm:ss");
nextCell.setValue(time);
};
};
}
您可以嘗試添加 Google Apps 腳本來捕獲編輯單元格的時間并將時間戳添加到不同的單元格
uj5u.com熱心網友回復:
請按照此您將獲得解決此問題的多種方法 如何在 Google 電子表格中插入時間戳
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/403415.html
標籤:
