0% found this document useful (0 votes)
2 views4 pages

Test 2

The document outlines a step-by-step guide to create a fully automatic online school result system using Google Sheets and Apps Script. It includes designing a master sheet for student data, adding a result search interface using Google Forms or a web app, and optional automation features like email notifications. The system is cost-effective, customizable, and ensures that students can only access their own results securely.

Uploaded by

omanitous
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views4 pages

Test 2

The document outlines a step-by-step guide to create a fully automatic online school result system using Google Sheets and Apps Script. It includes designing a master sheet for student data, adding a result search interface using Google Forms or a web app, and optional automation features like email notifications. The system is cost-effective, customizable, and ensures that students can only access their own results securely.

Uploaded by

omanitous
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Creating a fully automatic online school result system using Google Sheets and Apps

Script is a powerful and cost-effective solution. You can make a complete system where:

 Teachers/admins input or upload marks.


 Students can view their individual results via a secure link or search.
 The sheet calculates grades, percentages, ranks, etc.
 Access is controlled (student sees only their result).

Here’s a step-by-step guide to set this up:

PART 1: Google Sheet Design

1. Create a Master Sheet with Student Data

Example columns:

oStudent ID
oName
oDOB
oClass
oSubject 1 Marks
oSubject 2 Marks
o…
oTotal
oPercentage
oGrade
oResult Status (Pass/Fail)
2. Use Formulas (in additional columns):
o Total: =SUM(E2:H2)
o Percentage: =I2/400*100 (assuming 400 is the total marks)
o Grade: Use nested IF:

=IF(J2>=90,"A+",IF(J2>=80,"A",IF(J2>=70,"B",IF(J2>=60,"C","Fail"))))

2.
o
o Result: =IF(J2>=40,"Pass","Fail")

PART 2: Add Student Result Search Interface

You have two options:


OPTION A:

Google Forms + App Script (Student Enters ID/DOB)

1. Create a Google Form:


o Ask for: Student ID and DOB
2. In the linked Google Sheet, write a Google Apps Script to:
o Match the submitted ID and DOB
o Fetch the corresponding row
o Email or display the result via a Google Docs template or HTML page

OPTION B:

Create a Web App using Google Apps Script

1. In the same Google Sheet, go to:


o Extensions > Apps Script
2. Paste this sample script:

function doGet(e) {
return HtmlService.createHtmlOutputFromFile('index');
}

function getStudentResult(studentId, dob) {


const sheet =
SpreadsheetApp.getActiveSpreadsheet().getSheetByName("Sheet1");
const data = sheet.getDataRange().getValues();

for (let i = 1; i < data.length; i++) {


if (data[i][0] == studentId && data[i][2] == dob) {
return {
name: data[i][1],
total: data[i][7],
percentage: data[i][8],
grade: data[i][9],
status: data[i][10]
};
}
}
return { error: "No matching record found. Check your ID and DOB." };
}

3. Create an index.html file:

<!DOCTYPE html>
<html>
<head>
<base target="_top">
</head>
<body>
<h2>Check Your Result</h2>
<form id="resultForm">
Student ID: <input type="text" name="studentId"><br><br>
DOB (dd/mm/yyyy): <input type="text" name="dob"><br><br>
<input type="submit" value="Get Result">
</form>

<div id="resultBox"></div>

<script>
document.getElementById('resultForm').addEventListener('submit',
function(e) {
e.preventDefault();
const studentId = e.target.studentId.value;
const dob = e.target.dob.value;

google.script.run.withSuccessHandler(function(result) {
if (result.error) {
document.getElementById('resultBox').innerText = result.error;
} else {
document.getElementById('resultBox').innerHTML = `
Name: ${result.name} <br>
Total: ${result.total} <br>
Percentage: ${result.percentage}% <br>
Grade: ${result.grade} <br>
Status: ${result.status}
`;
}
}).getStudentResult(studentId, dob);
});
</script>
</body>
</html>

4. Deploy as a Web App:


o Click Deploy > Manage deployments
o Set it to “Anyone” (or “Anyone with link”)
o Share the web app URL with students

PART 3: Automation and Notifications (Optional)

1. Auto-send results via email:


o Use MailApp.sendEmail() in a script to email students automatically.
2. Trigger scripts:
o Go to Triggers in Apps Script to run functions on:
 Form submit
 On edit
 Daily/weekly basis

Advantages of this System

 No need for external hosting.


 Fully automatic grading and result generation.
 Customizable for any number of subjects/classes.
 Students only see their own data (if secure search used).
 Cost-free and scalable.

Would you like me to generate the actual Google Sheet template and script files for
download, or walk you through deploying a live web version from scratch?

You might also like