How to Create a Dynamic Student Registration Form in Excel Without Coding
Step 1: Create the Form Fields
Start by creating the following fields in your Excel sheet:
- Student ID
- Student Name
- Father's Name
- Gender
- Date of Birth
- Phone
- Course
- College
Leave some blank cells between the labels and the input fields so that the form has enough space for data entry.
Step 2: Create Gender Option Buttons
For the Gender field, instead of typing Male or Female manually, use Option Buttons.
- Go to the Developer tab.
- Click Insert.
- Under Form Controls, select Option Button.
- Draw an Option Button near the Gender field.
- Click the default option text and rename it to Male.
- Hold Ctrl and select the button.
- Duplicate it and rename the second option to Female.
Step 3: Align the Male and Female Buttons
- Hold Ctrl and select both Male and Female option buttons.
- Go to the formatting/alignment options.
- Choose Align.
- Select Top or Bottom alignment.
- Adjust their position so both buttons are properly aligned.
Step 4: Add a Group Box for Gender
To keep the Male and Female options together:
- Go to Developer → Insert.
- Under Form Controls, select Group Box.
- Draw the Group Box around the Male and Female buttons.
- Click the default Group Box title.
- Delete the existing text.
- Rename it to Gender.
- Move the Group Box into the correct position.
Step 5: Add the Remaining Fields
Below the Gender field, add:
- Date of Birth
- Phone
- Course
- College
You can use spaces or underscores in field names depending on your preference.
Step 6: Format the Form
- Select all the cells containing the field names.
- Go to the Home tab.
- Increase the font size if required.
- Apply a suitable Fill Color to the headings.
- Use Bold formatting.
- Keep the input areas clean and properly aligned.
- Apply borders only where required.
Step 7: Create Input Boxes
For each field where the user will enter information:
- Select the cell below or beside the field name.
- Apply an Outside Border.
- Copy the formatted input cell.
- Paste it into the other input areas.
- Make sure all input boxes have a consistent size and format.
Step 8: Create the Form Header
- Select the top area of the form.
- Use Merge & Center.
- Type:
Student Registration Form
- Make the heading Bold.
- Increase the font size.
- Apply a background color.
- Change the text color according to your preference.
- Center the heading properly.
Step 9: Create Save and Reset Buttons
Create two buttons at the bottom of the form.
- Go to Insert → Shapes.
- Select a Rounded Rectangle or any other suitable shape.
- Draw the first button.
- Type Save Data inside it.
- Center-align the text.
- Apply a suitable background and text color.
Then:
- Duplicate the button using Ctrl + D.
- Place the duplicate next to the first button.
- Change its text to Reset Form.
Step 10: Add a Details Section
Create a separate area where the entered information can be displayed.
Add the following headings:
- Student ID
- Student Name
- Father Name
- Gender
- Date of Birth
- Phone
- Course
- College
Format these headings using Bold and borders if required.
Step 11: Link the Form Fields
Use cell references to display the entered information in the Details section.
For example:
- Select the output cell next to Student ID.
- Type
= - Click the Student ID input cell.
- Press Enter.
Repeat the same process for:
- Student Name
- Father's Name
- Date of Birth
- Phone
- Course
- College
The Gender field will be handled separately.
Step 12: Link the Gender Option Buttons
- Right-click the Male option button.
- Select Format Control.
- Go to the Control tab.
- Find Cell Link.
- Select the cell next to the Gender field.
- Click OK.
Now:
- Selecting Male will return 1.
- Selecting Female will return 2.
Step 13: Convert 1 and 2 into Male and Female
In the Gender output cell, use an IF formula.
Example:
=IF(CellLink=1,"Male","Female")
Now:
- If Male is selected, the result will be Male.
- If Female is selected, the result will be Female.
Step 14: Create the Data Records Sheet
- Select the form headings.
- Copy them using Ctrl + C.
- Insert a new worksheet.
- Right-click the destination cell.
- Go to Paste Special → Transpose.
- This will convert the horizontal headings into vertical headings.
- Use AutoFit Column Width to adjust the columns.
- Adjust the width of Phone, Course, College, Gender, and other columns as required.
Rename this worksheet:
Data Entry Records
Step 15: Rename the Form Sheet
Rename the original worksheet to:
Data Entry Form
Your workbook should now have at least two sheets:
- Data Entry Form
- Data Entry Records
Step 16: Remove Gridlines
To make the form look more professional:
- Go to the View tab.
- Turn off Gridlines.
- Adjust the column widths and spacing.
- Make the form clean and visually appealing.
Step 17: Prepare a Sample Entry
Before recording the macro, enter a sample record into the form.
For example:
- Student ID: 1001
- Student Name: Student One
- Father's Name: A. K. Verma
- Gender: Male
- Date of Birth: June 1999
- Phone: Enter a sample phone number
- Course: Enter a course
- College: Delhi University
Make sure all the form details are correctly displayed in the output section.
Format the Date of Birth as Short Date if it appears as a number.
Step 18: Record the Save Data Macro
Now we will record the macro that will save the form data.
- Go to the Developer tab.
- Click Record Macro.
- Give the macro a name such as:
Save_Data
- Choose where you want to store the macro.
- Click OK.
The macro recording will now start.
Step 19: Copy the Form Data
While the macro is recording:
- Select the complete data/output area.
- Press Ctrl + C.
- Go to the location where the record should be stored.
- Use Paste Special.
- Select Values.
- Select Transpose if required.
- Click OK.
This will insert the form data into the required record format.
Step 20: Add the Record to the Data Entry Records Sheet
- Copy the prepared data.
- Go to the Data Entry Records sheet.
- Select the next empty row.
- Use the appropriate Paste Special option.
- Insert the record into the next available row.
Your student information will now be stored as a record.
Step 21: Stop the Save Macro
After completing all the required actions:
- Go back to Developer.
- Click Stop Recording.
The Save Data macro is now ready.
Step 22: Assign the Save Macro to the Save Button
- Right-click the Save Data button.
- Select Assign Macro.
- Select the
Save_Datamacro. - Click OK.
Now the Save Data button is connected to the macro.
Step 23: Test the Save Button
- Clear the previous test entry.
- Enter a new student record.
- Fill in all required fields.
- Click Save Data.
The information should automatically be added to the Data Entry Records sheet.
Step 24: Create the Reset Macro
Now create a macro to clear the form.
- First, enter some sample information into the form.
- Go to Developer → Record Macro.
- Give the macro a name such as:
Reset_Data
- Click OK.
Step 25: Record the Reset Process
While the macro is recording:
- Select all the input cells.
- Delete the existing entries one by one or clear the required cells.
- Make sure the form becomes completely blank.
- Do not delete the labels, formatting, or option buttons.
Step 26: Stop the Reset Macro
- Go back to the Developer tab.
- Click Stop Recording.
The Reset Data macro is now ready.
Step 27: Assign the Reset Macro to the Reset Button
- Right-click the Reset Form button.
- Select Assign Macro.
- Select the
Reset_Datamacro. - Click OK.
Step 28: Test the Reset Button
- Enter some information into the form.
- Click Reset Form.
- The input fields should automatically become blank.
- Your form structure, labels, formatting, and buttons should remain unchanged.
Step 29: Final Result
Your Dynamic Student Registration Form is now ready.
The form can now:
- Accept student information.
- Select Male/Female using option buttons.
- Automatically display the selected gender.
- Save student information into the Data Entry Records sheet.
- Add each new registration as a separate record.
- Reset the form with one click.
- Work without manually entering records into the database.