How to Make Automatic Marksheet in Excel (with Easy Steps)

Sheet1 contains the personal details, numbers, and grading of each student.

Sheet2 contains the mark sheet template. We inserted a bold outside border.


Step 1 – Insert Personal Details

  • Insert a roll number in Cell E8. We inserted 1.
  • Insert the following formula in Cell E9 to get the corresponding student name:
=VLOOKUP(E8,Sheet1!B2:L10,2)
  • Hit the Enter button for the output.

How to Make Automatic Marksheet in Excel

  • Apply a similar formula using the VLOOKUP function again in Cell G8 and G9 to return the date of birth and father’s name.

How to Make Automatic Marksheet in Excel

Read More: How to Calculate Letter Grades in Excel


Step 2 – Insert the Obtained Marks

  • In Cell F12, use the following formula to get the obtained marks in English:
=VLOOKUP($E$8,Sheet1!$B$2:$L$10,6)
  • Hit Enter.

How to Make Automatic Marksheet in Excel

  • Repeat and modify the VLOOKUP formula to get the numbers in the other subjects. Change the column index number according to the subject name in the array of Sheet1.

Read More: How to Make a Grade Calculator in Excel


Step 3 – Apply Conditional Formatting

  • Select the cells and go to Conditional Formatting, choose Highlight Cells Rules, then select Less Than.

How to Make Automatic Marksheet in Excel

  • Insert the minimum passing number in the first box and select your desired highlight color from the second dropdown box.
  • Press OK.

How to Make Automatic Marksheet in Excel

  • The numbers are highlighted with our selected color.

Read More: How to Apply Percentage Formula in Excel for Marksheet


Step 4 – Insert Grades

  • Apply the following formula in Cell G12:
=IF(F12>80,"A",IF(F12>60,"B",IF(F12>50,"C",IF(F12>35,"D","F"))))
  • Hit the Enter button.

How to Make Automatic Marksheet in Excel

  • Use the Fill Handle tool to copy the formula for the other cells.

  • You will get all the grades for roll number 1.

Read More: How to Calculate Grade Percentage in Excel


Step 5 – Calculate the Total Marks

  • Insert the following formula in Cell E18
=SUM(D12:D16)
  • Hit Enter.

How to Make Automatic Marksheet in Excel

  • Find out the total passing marks and total obtained marks using the SUM formula.

How to Make Automatic Marksheet in Excel

Read More: Calculate Grade Using IF function in Excel


Step 6 – Calculate the Result

  • Insert the following formula in Cell G19:
=G18/E18
  • Hit Enter.

How to Make Automatic Marksheet in Excel

  • To determine if the student passed or failed, apply the following formula in E20.
=IF(G19>=35%,"Passed","Fail")
  • Press the Enter button.

How to Make Automatic Marksheet in Excel

=IF(G19>80%,"A",IF(G19>60%,"B",IF(G19>50%,"C",IF(G19>35%,"D","F"))))
  • Hit Enter.

  • If we insert any roll number, the sheet will show the corresponding detailed result of the student.

Read More: How to Calculate Subject Wise Pass or Fail with Formula in Excel


Download the Practice Workbook


Related Articles

Get FREE Advanced Excel Exercises with Solutions!
Md. Sourov Hossain Mithun
Md. Sourov Hossain Mithun

Md. Sourov Hossain Mithun, an Excel and VBA Content Developer at Softeko's ExcelDemy project, joined in October 2021. Holding a Naval Architecture & Marine Engineering degree from BUET, Mithun showcases expertise during his two-year tenure. With over 200 published articles on Excel topics, he earned a promotion to Team Leader, excelling in leading diverse teams. Mithun's passion extends to Advanced Excel, Excel VBA, Data Analysis, and Python programming, contributing significantly to the innovative and dynamic environment of ExcelDemy... Read Full Bio

2 Comments
  1. How to make marksheets for all roll numbers at at a click of a button in excel

    • Reply Bishawajit Chakraborty
      Bishawajit Chakraborty Apr 3, 2023 at 12:16 PM

      Thank you, SIDDHARTH, for your wonderful question.

      Here is the solution to your question. Please take a look at the below steps.

      • Create a table with columns for Roll Number, Name, and Marks in Excel.
      • Enter the Roll Number, Name, and Marks for each student in the table.
      • Create a new sheet in Excel and name it “Marksheets”.
      • In cell A1 of the “Marksheets” sheet, enter the text “Roll Number”.
      • In cell B1, enter the text “Name”.
      • In cell C1, enter the text “Marks”.
      • Select cell A2 on the “Marksheets” sheet.

      • Go to the “Data” tab in the Excel ribbon and click on “Data Validation”.
      • In the “Data Validation” window, select “List” as the validation criteria.
      • In the “Source” field, enter the range of Roll Numbers from the table you created earlier.
      • Click “OK” to close the “Data Validation” window.
      • Repeat steps for cells B2 and C2, but select the range of Names and Marks respectively.
      • Now, select the Roll Number, Name, and Marks here.

      Here is our  VBA code. Therefore, you can apply this code to solve your problem.

      Sub Generate_Marksheet()
      Dim roll_number As String
      Dim name As String
      Dim marks As Integer
      Dim i As Integer
      i = 2 'Starting at row 2 of the Marksheets sheet
      Do While Worksheets("Marksheets").Cells(i, 1) <> "" 'Loop until the Roll Number column is empty
      roll_number = Worksheets("Marksheets").Cells(i, 1).Value
      name = Worksheets("Marksheets").Cells(i, 2).Value
      marks = Worksheets("Marksheets").Cells(i, 3).Value
      'Creating a new sheet for each Roll Number
      Worksheets.Add(After:=Worksheets(Worksheets.Count)).name = roll_number
      'Adding the Name and Marks to the sheet
      Worksheets(roll_number).Range("A1").Value = "Name"
      Worksheets(roll_number).Range("B1").Value = "Marks"
      Worksheets(roll_number).Range("A2").Value = name
      Worksheets(roll_number).Range("B2").Value = marks
      i = i + 1 'Moving to the next row
      Loop
      End Sub

      Here, you will see the final result in another sheet with names and marks.

      I hope this may solve your issue. 

      Bishawajit, on behalf of ExcelDemy

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo