Sample Data
A simple list of student names and their scores.
| Cell | Value |
|---|---|
| A1 | Name |
| B1 | Score |
| A2 | Alice |
| B2 | 85 |
| A3 | Bob |
| B3 | 90 |
| A4 | Charlie |
| B4 | 78 |
A simple list of student names and their scores.
| Cell | Value |
|---|---|
| A1 | Name |
| B1 | Score |
| A2 | Alice |
| B2 | 85 |
| A3 | Bob |
| B3 | 90 |
| A4 | Charlie |
| B4 | 78 |
function onOpen() {
var ui = SpreadsheetApp.getUi();
ui.createMenu('Custom Menu')
.addItem('Show Alert', 'showAlert')
.addToUi();
}
function showAlert() {
SpreadsheetApp.getUi().alert('Hello! This is a custom menu alert.');
}A B 1 Name Score 2 Alice 85 3 Bob 90 4 Charlie 78 No cell references are used in the script; it interacts with the UI only.