NEWExcel AI Agents: use Copilot and Claude in Excel, and prove every number is right. Excel AI Agents course. See the course →

How to Create an Automated Data Entry Form in Excel

Stop typing straight into rows and columns. Build a proper form instead.

In this tutorial we create a fully automated data entry form in Excel — drop-
downs, radio buttons, a submit button, and a macro that files each entry onto a
separate data sheet and clears the form ready for the next one.

You don’t need to write code. We record the macro, so Excel writes it for you.

Watch: an automated data entry form in 19 minutes

Prefer reading? The main stages are written out below the video.

Step-by-step

The example collects new employee details, but the same method works for customers, expenses or any other records.

1. Design the form

On a new sheet (rename it Form), type a title such as Employee Information in B2. Add personal details down column B (first name in B4, last name in B6, date of birth in B8, email in B10, gender in B12) and job details down column E (job title in E4, basic salary in E6, payment method in E8, employment type in E10, location in E12).

  • Right-align and bold the labels, merge B2:G2 for the title, set it to 22 pt with a dark blue fill and white text.
  • Make row 2 about 50 pixels tall and add your logo with Insert > Pictures > Place over Cells.
  • Give each input cell a light grey fill and an outside border. Double-click the Format Painter to copy that style to every input cell.

2. Control what people can type

  • Format the salary cell as a number with a thousands separator and no decimals, and the date of birth cell as a date.
  • For employment type, go to Data > Data Validation > List and enter Full-time,Part-time,Contract as the source.

3. Add option buttons for location

If you don’t see the Developer tab, right-click the ribbon, choose Customize the Ribbon and tick Developer. Then go to Developer > Insert > Option Button (Form Control), place it next to Location and label it Office. Select it and press Ctrl+D to duplicate it, label the copy Remote, and line them up with Shape Format > Align > Align Middle.

To finish the look, turn off gridlines, put a border round the whole form, and set the spacer rows (3, 5, 7, 9, 11 and 13) to 10 pixels high.

4. Build a linked list of answers

Below the form, paste the labels as values from B20 down (B20:B29). Next to each, link to its input cell, for example =C4 in C20 for the first name.

Location needs one extra step. Right-click an option button, choose Format Control and set the cell link to D29. Excel then puts 1 in D29 for Office and 2 for Remote. Turn that number back into text in C29 with =IF(D29=2,"Remote","Office").

5. Create the data sheet

Add a sheet called Data. Copy B20:B29, click B2 on the Data sheet and use Paste Special with Values and Transpose ticked, so the labels become column headers. Format the date of birth and salary columns to match the form.

6. Record the macro

Fill in the form with sample values, then go to Developer > Record Macro and name it Collect. While it records:

  1. Go to the Data sheet, click B3 and choose Home > Insert > Insert Sheet Rows.
  2. Go back to the Form sheet and copy C20:C29.
  3. On the Data sheet, right-click B3 and use Paste Special with Values and Transpose.
  4. Return to the Form sheet, clear each input cell and click the first-name cell.

Then click Stop Recording. Each new record now lands at the top of the Data sheet.

7. Add a Submit button

Go to Developer > Insert > Button (Form Control), draw it under the form, assign the Collect macro and label it Submit. To hide the helper list below the form, set its font colour to white.

8. Save and protect

Save the file as an Excel Macro-Enabled Workbook (.xlsm) so the macro keeps working. Then select the input cells, open Format Cells > Protection, untick Locked, and protect the sheet from Review > Protect Sheet with a password. People can now type in the inputs but can’t change the rest of the form. Note that sheet protection doesn’t lock form controls such as option buttons.

Go further

My Excel Macros & VBA Programming for Beginners course takes you from recorded macros like this one to writing your own VBA, with no prior coding needed.

WATCHING ON YOUTUBE?

The full courses go further

11 step-by-step courses on Excel, Power BI, Python and AI, all on Udemy with lifetime access.