Office, Karriere und IT Blog

Office, Karriere und IT Blog

Anzeige

Excel Database with Input Form and Search Function

Microsoft Access is actually predestined for databases with the Office software and was also developed for it. But a database can also be implemented in Excel. Because what is a database? Right, nothing more than a list of entries containing different parameters and variables. With a dynamic table (which is the first step) we already have a good start. Because you can filter this list and also search for entries per column.

But that’s not always enough. What we want is an input form that we can activate via a button and add new entries to our Excel database. And ideally also a function for searching within this database. That’s what this tutorial is supposed to be about.

Datenbank mit Suchfunktion in Excel

Topic Overview

Anzeige

Excel Database with Input Form and Search Function

Microsoft Access is actually predestined for databases with the Office software and was also developed for it. But a database can also be implemented in Excel. Because what is a database? Right, nothing more than a list of entries containing different parameters and variables. With a dynamic table (which is the first step) we already have a good start. Because you can filter this list and also search for entries per column.

But that’s not always enough. What we want is an input form that we can activate via a button and add new entries to our Excel database. And ideally also a function for searching within this database. That’s what this tutorial is supposed to be about.

Datenbank mit Suchfunktion in Excel

Topic Overview

Anzeige

Dynamic spreadsheet in Excel

Dynamic spreadsheet in Excel

For our Excel database with an input mask, we have created a dynamic table with a fictitious stock list containing tea varieties as an example. In addition to the article number, batch number, article description, this also includes the storage location, the quantity and the purchase price. In the end, the goal should be that we have our database in our worksheet, as well as a button to open an input mask that we can use to add new items, and a button that we can use to search the database. You can read about how to create a dynamic table in Excel here >>>

It shouldn’t all look fancy at first, it’s basically just about the pure functionality of the whole thing.

see fig. (click to enlarge)

Excel Datenbank mit Eingabemaske

In the following sections we will go through the whole thing step by step so that you can implement it yourself.

For our Excel database with an input mask, we have created a dynamic table with a fictitious stock list containing tea varieties as an example. In addition to the article number, batch number, article description, this also includes the storage location, the quantity and the purchase price. In the end, the goal should be that we have our database in our worksheet, as well as a button to open an input mask that we can use to add new items, and a button that we can use to search the database. You can read about how to create a dynamic table in Excel here >>>

It shouldn’t all look fancy at first, it’s basically just about the pure functionality of the whole thing.

see fig. (click to enlarge)

Excel Datenbank mit Eingabemaske

In the following sections we will go through the whole thing step by step so that you can implement it yourself.

Add more commands in Excel

Add more commands in Excel

As a rule, the function that we need next is not activated by default in Excel, which is why many find it difficult to create such an input mask at all. The reason why many actually useful commands and functions in Excel are not activated by default is that otherwise the user interface of Excel will become even more confusing for most people than it already is.

To activate the function we need, proceed as follows:

  • On the right side of the title bar, click the small down arrow
  • From there, select “More Commands“.
  • You are now in the Excel options that you would otherwise reach via “File” – “Options“.
  • Select the item “Customize the ribbon” and on the right next to it in the drop-down list under “Choose commands” then “All commands
  • This list is sorted alphabetically. Look for the “Mask” or “Form” command

If you have found the point and clicked on it, you will see that the “Add” button is activated between the two windows “Choose commands” and “Customize the ribbon“. However, this will not yet work or will issue an error message. Because if you want to add new commands you have to create a new “Custom Group“. To do this, proceed as follows:

  • Click on one of the “+ symbols” behind any main tab to which you want to add the new group.
  • It is recommended to choose as close as possible. That’s why we chose the main “Data” tab.
  • Then click on “New Group” and give it any name.
  • We simply chose “input mask” or “input form” here.
  • Now you can add the Mask command to your custom group and the Mask menu item will appear under the main Data tab as well.

see fig. (click to enlarge)

Excel weitere Befehle hinzufuegen Abb.1
Excel weitere Befehle hinzufuegen Abb.2
Excel Datenbank mit Eingabemaske Abb.2

As a rule, the function that we need next is not activated by default in Excel, which is why many find it difficult to create such an input mask at all. The reason why many actually useful commands and functions in Excel are not activated by default is that otherwise the user interface of Excel will become even more confusing for most people than it already is.

To activate the function we need, proceed as follows:

  • On the right side of the title bar, click the small down arrow
  • From there, select “More Commands“.
  • You are now in the Excel options that you would otherwise reach via “File” – “Options“.
  • Select the item “Customize the ribbon” and on the right next to it in the drop-down list under “Choose commands” then “All commands
  • This list is sorted alphabetically. Look for the “Mask” or “Form” command

If you have found the point and clicked on it, you will see that the “Add” button is activated between the two windows “Choose commands” and “Customize the ribbon“. However, this will not yet work or will issue an error message. Because if you want to add new commands you have to create a new “Custom Group“. To do this, proceed as follows:

  • Click on one of the “+ symbols” behind any main tab to which you want to add the new group.
  • It is recommended to choose as close as possible. That’s why we chose the main “Data” tab.
  • Then click on “New Group” and give it any name.
  • We simply chose “input mask” or “input form” here.
  • Now you can add the Mask command to your custom group and the Mask menu item will appear under the main Data tab as well.

see fig. (click to enlarge)

Excel weitere Befehle hinzufuegen Abb.1
Excel weitere Befehle hinzufuegen Abb.2
Excel Datenbank mit Eingabemaske Abb.2

Input form with button in Excel

Input form with button in Excel

Now we’ve come a long way. Because we created our dynamic table in Excel, and we implemented the required “Mask” or “Form” command in our desktop. Next, click in the cell with the first entry under the first column heading, and then select your newly created item “Mask” or “Form”. The mask then automatically adopts the column headings as input fields and opens immediately.

We could actually leave it that way and simply select the “Mask” item on the tab, and the input mask would open in Excel. But we want to assume that such a list is not only used by the creator, but that it is perhaps on a shared drive, so that the list can also be edited by several users who may not be very familiar with Excel.

So we need a solution to organize the whole thing via a button that is permanently visible and functional in the spreadsheet. To do this, we proceed as follows:

  • Click on the “Developer Tools” main tab and select “Button” under “Insert“.
  • If the developer tools are not yet activated for you, you will find the solution here with us >>>
  • Now your mouse pointer will turn into a kind of drawing tool, and you can simply hold down the left mouse button and draw a button of any size and anywhere (regardless of cell boundaries).
  • As soon as you have created the button, a window will open asking for a macro assignment.

If you have already created a macro, you can assign it here. But I assume that this is not the case, which is why you first have to create a macro in Excel. In order to find the macros function, you also need to activate the developer tools again! If you have never done this before, you will also find the solution here with us >>>

In the end it should look like the image below. By the way, the input mask automatically gets the name of the spreadsheet in your workbook. If you want to have a different name there, you can simply give the table a different name. You can find out how this works and how to work with the name manager in Excel here >>>

Eingabemaske mit Suche in Excel
Ads

Now we’ve come a long way. Because we created our dynamic table in Excel, and we implemented the required “Mask” or “Form” command in our desktop. Next, click in the cell with the first entry under the first column heading, and then select your newly created item “Mask” or “Form”. The mask then automatically adopts the column headings as input fields and opens immediately.

We could actually leave it that way and simply select the “Mask” item on the tab, and the input mask would open in Excel. But we want to assume that such a list is not only used by the creator, but that it is perhaps on a shared drive, so that the list can also be edited by several users who may not be very familiar with Excel.

So we need a solution to organize the whole thing via a button that is permanently visible and functional in the spreadsheet. To do this, we proceed as follows:

  • Click on the “Developer Tools” main tab and select “Button” under “Insert“.
  • If the developer tools are not yet activated for you, you will find the solution here with us >>>
  • Now your mouse pointer will turn into a kind of drawing tool, and you can simply hold down the left mouse button and draw a button of any size and anywhere (regardless of cell boundaries).
  • As soon as you have created the button, a window will open asking for a macro assignment.

If you have already created a macro, you can assign it here. But I assume that this is not the case, which is why you first have to create a macro in Excel. In order to find the macros function, you also need to activate the developer tools again! If you have never done this before, you will also find the solution here with us >>>

In the end it should look like the image below. By the way, the input mask automatically gets the name of the spreadsheet in your workbook. If you want to have a different name there, you can simply give the table a different name. You can find out how this works and how to work with the name manager in Excel here >>>

Eingabemaske mit Suche in Excel
Ads

Search function in Excel

Search function in Excel

After we have successfully assigned the macro to our button, we can now click on the button and the desired input mask opens with exactly the fields that also have the column headings of our dynamic table. Using this mask, entries can now be easily added to the table, but also removed. And we could also search for entries using the “Criteria” item in the search mask.

There is also the possibility to create a search form in Excel with help tables, but they all suffer from the fact that they have disadvantages when outputting the data record. Then either nothing is output if not all parameters have been entered in the search, or too much data is displayed because some parameters, such as the order date, can also be the same. And then so many data records are displayed that you could have searched for them manually.

The easiest way is to use it via the “Home” tab and then “Find and Select“, or to use the keyboard shortcut “CTRL+F“.

After we have successfully assigned the macro to our button, we can now click on the button and the desired input mask opens with exactly the fields that also have the column headings of our dynamic table. Using this mask, entries can now be easily added to the table, but also removed. And we could also search for entries using the “Criteria” item in the search mask.

There is also the possibility to create a search form in Excel with help tables, but they all suffer from the fact that they have disadvantages when outputting the data record. Then either nothing is output if not all parameters have been entered in the search, or too much data is displayed because some parameters, such as the order date, can also be the same. And then so many data records are displayed that you could have searched for them manually.

The easiest way is to use it via the “Home” tab and then “Find and Select“, or to use the keyboard shortcut “CTRL+F“.

Search for:

About the Author:

Michael W. SuhrDipl. Betriebswirt | Webdesign- und Beratung | Office Training
After 20 years in logistics, I turned my hobby, which has accompanied me since the mid-1980s, into a profession, and have been working as a freelancer in web design, web consulting and Microsoft Office since the beginning of 2015. On the side, I write articles for more digital competence in my blog as far as time allows.

Search by category:

Search for:

About the Author:

Michael W. SuhrDipl. Betriebswirt | Webdesign- und Beratung | Office Training
After 20 years in logistics, I turned my hobby, which has accompanied me since the mid-1980s, into a profession, and have been working as a freelancer in web design, web consulting and Microsoft Office since the beginning of 2015. On the side, I write articles for more digital competence in my blog as far as time allows.

Search by category:

Popular Posts:

1710, 2025

Der ultimative Effizienz-Boost: Wie Excel, Word und Outlook für Sie zusammenarbeiten

October 17th, 2025|Categories: Shorts & Tutorials, Homeoffice, Microsoft Excel, Microsoft Office, Microsoft Outlook, Microsoft PowerPoint, Microsoft Teams, Microsoft Word, Office 365, Windows 10/11/12|Tags: , , , |

Schluss mit manuellem Kopieren! Lernen Sie, wie Sie Excel-Listen, Word-Vorlagen & Outlook verbinden, um personalisierte Serien-E-Mails automatisch zu versenden. Sparen Sie Zeit, vermeiden Sie Fehler und steigern Sie Ihre Effizienz. Hier geht's zur einfachen Anleitung!

1610, 2025

Agentic AI: The next quantum leap in artificial intelligence?

October 16th, 2025|Categories: Shorts & Tutorials, Artificial intelligence, AutoGPT, ChatGPT, Homeoffice, Internet, Finance & Shopping, LLaMa, TruthGPT|Tags: |

Forget simple chatbots! Agentic AI is here: Autonomous AI that plans, learns, and solves complex tasks for you. Discover how AI agents will revolutionize the world of work and your everyday life. Are you ready for the future of artificial intelligence?

1510, 2025

Wi-Fi 7 vs. Wi-Fi 6: A quantum leap for your home network?

October 15th, 2025|Categories: Shorts & Tutorials, Hardware, Homeoffice, Internet, Finance & Shopping, Mac OS, Windows 10/11/12|Tags: |

Wi-Fi 7 is here! Learn all about its advantages over Wi-Fi 6: extreme speed, minimal latency, and MLO. We'll explain who should upgrade now and what you can do with your ISP router. Your guide to the Wi-Fi of the future.

1510, 2025

Microsoft 365 Copilot in practice: Your guide to the new everyday work routine

October 15th, 2025|Categories: Shorts & Tutorials, Artificial intelligence, LLaMa, Microsoft Excel, Microsoft Office, Microsoft Outlook, Microsoft PowerPoint, Microsoft Teams, Microsoft Word, Office 365|Tags: , , |

What can Microsoft 365 Copilot really do? 🤖 We'll show you in a practical way how the AI ​​assistant revolutionizes your daily work in Word, Excel & Teams. From a blank page to a finished presentation in minutes! The ultimate practical guide for the new workday. #Copilot #Microsoft365 #AI

1410, 2025

EU chat control: The battle between protection and privacy

October 14th, 2025|Categories: Shorts & Tutorials, Data Protection, Homeoffice|Tags: |

The EU's chat control measures aim to scan private messages on WhatsApp and similar platforms. Critics see this as mass surveillance. Following massive resistance, including from Germany, the crucial vote in the EU Council has been postponed again. The fight for digital privacy continues.

1410, 2025

Safe at Home: The Ultimate Guide to Your PC and Your Wi-Fi

October 14th, 2025|Categories: Shorts & Tutorials, Data Protection, Hardware, Homeoffice, Mac OS, Windows 10/11/12|Tags: |

Is your home Wi-Fi really secure? 🏠 From router passwords to phishing protection – our ultimate security guide will make life difficult for hackers. Secure your PC and home network now with our simple and easy-to-understand tips! #Cybersecurity #HomeNetwork

Offers 2024: Word & Excel Templates

Anzeige

Popular Posts:

1710, 2025

Der ultimative Effizienz-Boost: Wie Excel, Word und Outlook für Sie zusammenarbeiten

October 17th, 2025|Categories: Shorts & Tutorials, Homeoffice, Microsoft Excel, Microsoft Office, Microsoft Outlook, Microsoft PowerPoint, Microsoft Teams, Microsoft Word, Office 365, Windows 10/11/12|Tags: , , , |

Schluss mit manuellem Kopieren! Lernen Sie, wie Sie Excel-Listen, Word-Vorlagen & Outlook verbinden, um personalisierte Serien-E-Mails automatisch zu versenden. Sparen Sie Zeit, vermeiden Sie Fehler und steigern Sie Ihre Effizienz. Hier geht's zur einfachen Anleitung!

1610, 2025

Agentic AI: The next quantum leap in artificial intelligence?

October 16th, 2025|Categories: Shorts & Tutorials, Artificial intelligence, AutoGPT, ChatGPT, Homeoffice, Internet, Finance & Shopping, LLaMa, TruthGPT|Tags: |

Forget simple chatbots! Agentic AI is here: Autonomous AI that plans, learns, and solves complex tasks for you. Discover how AI agents will revolutionize the world of work and your everyday life. Are you ready for the future of artificial intelligence?

1510, 2025

Wi-Fi 7 vs. Wi-Fi 6: A quantum leap for your home network?

October 15th, 2025|Categories: Shorts & Tutorials, Hardware, Homeoffice, Internet, Finance & Shopping, Mac OS, Windows 10/11/12|Tags: |

Wi-Fi 7 is here! Learn all about its advantages over Wi-Fi 6: extreme speed, minimal latency, and MLO. We'll explain who should upgrade now and what you can do with your ISP router. Your guide to the Wi-Fi of the future.

1510, 2025

Microsoft 365 Copilot in practice: Your guide to the new everyday work routine

October 15th, 2025|Categories: Shorts & Tutorials, Artificial intelligence, LLaMa, Microsoft Excel, Microsoft Office, Microsoft Outlook, Microsoft PowerPoint, Microsoft Teams, Microsoft Word, Office 365|Tags: , , |

What can Microsoft 365 Copilot really do? 🤖 We'll show you in a practical way how the AI ​​assistant revolutionizes your daily work in Word, Excel & Teams. From a blank page to a finished presentation in minutes! The ultimate practical guide for the new workday. #Copilot #Microsoft365 #AI

1410, 2025

EU chat control: The battle between protection and privacy

October 14th, 2025|Categories: Shorts & Tutorials, Data Protection, Homeoffice|Tags: |

The EU's chat control measures aim to scan private messages on WhatsApp and similar platforms. Critics see this as mass surveillance. Following massive resistance, including from Germany, the crucial vote in the EU Council has been postponed again. The fight for digital privacy continues.

1410, 2025

Safe at Home: The Ultimate Guide to Your PC and Your Wi-Fi

October 14th, 2025|Categories: Shorts & Tutorials, Data Protection, Hardware, Homeoffice, Mac OS, Windows 10/11/12|Tags: |

Is your home Wi-Fi really secure? 🏠 From router passwords to phishing protection – our ultimate security guide will make life difficult for hackers. Secure your PC and home network now with our simple and easy-to-understand tips! #Cybersecurity #HomeNetwork

Offers 2024: Word & Excel Templates

Anzeige
2023-06-04T08:51:18+02:00By |Categories: Shorts & Tutorials, Microsoft Excel, Microsoft Office, Office 365|Tags: , |
Ads

Popular Posts:

Search by category:

Autumn Specials:

Anzeige
Go to Top