How to use excel as a database

Do you need to create and use a database? This post is going to show you how to make a database in Microsoft Excel.

Excel is the most common data tool used in businesses and personal productivity across the world.

Since Excel is so widely used and available, it tends to get used frequently to store and manage data as a makeshift database. This is especially true with small businesses since there is no budget or expertise available for more suitable tools.

This post will show you what a database is and the best practices you should follow if you’re going to try and use Excel as a database.

Get the example files used in this post with the above link and follow along below!

What is a Database?

A database is a structured set of data that is often in an electronic format and is used to organize, store. and retrieve data.

For example, a database might be used to store customer names, addresses, orders, and product information.

Databases often have key features that make them an ideal place to store your data.

Database vs Excel

An Excel spreadsheet is not a database, but it does have a lot of great and easy-to-use features for working with data.

Here are some of the key features of a database and how they compare to an Excel file.

Feature Database Excel
Create, read, update, and delete records ✔️ ✔️ Excel allows anyone to add or edit data. This can be viewed as a negative consideration.
Data types ✔️ ⚠️ Excel allows for simple data types such as text, numbers, dates, boolean, images, and error values. But lacks more complex data types such as date and timezones, files, or JSON.
Data validation ✔️ ⚠️ Excel has some data validation features, but you can only apply one rule at a time and these can easily be overridden on purpose or by accident.
Access and security ✔️ ❌ Excel doesn’t have any access or security controls. This is usually managed through your on-premise network or through SharePoint online. But anyone can access your Excel file if it’s downloaded and sent to them.
Version control ✔️ ❌ Excel has no version control. This can be managed through SharePoint.
Backups ✔️ ❌ Excel has no automated backups. These can be manually created or automated in SharePoint.
Extract and query data ✔️ ✔️ Excel allows you to extract and query data through Power Query which is easy to learn and use.
Perform calculations ✔️ ✔️ Excel has a large library of functions that can be used in calculated columns inside tables. Excel also has the DAX formula language for calculated columns in Power Pivot.
Aggregate and summarize data ✔️ ✔️ Excel can easily aggregate and summarize data with formulas, pivot tables, or power pivots.
Relationships ✔️ ✔️ Excel has many lookup functions such as XLOOKUP, as well as table merge functionality in Power Query, and 1 to many relationships in Power Pivot.
Scale with large amounts of data ✔️ ⚠️ Excel can hold up to 1,048,576 rows of data in a single sheet. Tools like Power Query and Power Pivot can help you deal with larger amounts of data but they will be constrained based on your hardware specifications.
User friendly ❌ A database might not be user-friendly and may come with a steep learning curve that your intended users won’t be able to handle. ✔️ Most people have some experience with using Excel.
Cost ❌ Can be expensive to set up, run, and maintain a proper database tool. ✔️ Your organization might already have access to and use Excel.

This is not a comprehensive list of features that a database will have, but they are some of the major features that will usually make a proper database a more suitable option.

The features that a database has depends on what database it is. Not all databases have the same features and functionality.

You will need to decide what features are essential for your situation in order to decide if you should use Excel or some other database tool.

💡 Tip: If you have Excel for Microsoft 365, then consider using Dataverse for Teams as your database instead of Excel. Dataverse has many of the great database features mentioned above and it is included in your Microsoft 365 license at no additional cost.

Relational Database Design

A good deal of thought should happen about the structure of your database before you begin to build it. This can save you a lot of headaches later on.

Most databases have a relational design. This means the database contains many related tables instead of one table that contains all the data.

Suppose you want to track orders in your database.

One option is to create a single flat table that contains all the information about the order, the products, and the customer that created the order.

This isn’t very efficient as you end up creating multiple entries of the same customer information such as name, email, and address. You can see in the above data, column G, H, and I contains a lot of duplicate values.

A better option is to create separate tables to store the Order, Product, and Customer data.

The Order data can then reference a unique identifier in the Product and Customer data that will relate the tables and avoid unnecessary duplicate data entry.

This same example data might look like this when reorganized into multiple related tables.

  1. An Orders table that contains the Item and Customer ID field.
  2. A Products table that relates to the Item fields in the Orders table.
  3. A Customers table that relates to the Customer ID in the Orders table.

This avoids duplicated data entry in a flat single table structure and you can use the Item or Customer ID unique identifier to look up the related data in the respective Products or Customers tables.

Tabular Data Structure in Excel

If you’re going to use Excel as your database, then you’re going to need your data in tabular format. This refers to the way the data is structured.

The above example shows a product order dataset in tabular format. A tabular data format is best suited for Excel due to the row and column structure of a spreadsheet.

Here are a few rules your data should follow so that it’s in tabular format.

  • 1st row should contain column headings. This is just a short and descriptive name for the data contained below.
  • No blank column headings. Every column of data should have a name.
  • No blank columns or blank rows. Blank values within a field are ok, but columns or rows that are entirely blank should be removed.
  • No subtotals or grand totals within the data.
  • One row should represent exactly one record of data.
  • One column should contain exactly one type of data.

In the above orders example data, you can see B2:E2 contains the column headings of an Order ID, Customer ID, Order Date, Item, and Quantity.

The dataset has no blank rows or columns, and no subtotals are included.

Each row in the dataset represents an order for one type of product.

You’ll also notice each column contains one type of data. For example, the Item column only contains information on the name of the product and does not include other product information such as the price.

⚠️ Warning: If you don’t adhere to this type of structure for your data, then summarizing and analyzing your data will be more difficult later. Tools such as pivot tables require tabular data!

Use Excel Tables to Store Data

Excel has a feature that is specifically for storing your tabular data.

An Excel Table is a container for your tabular datasets. They help keep all the same data together in one object with many other benefits.

💡 Tip: Check out this post to learn more about all the amazing features of Excel Tables.

You will definitely want to use a table to store and organize any data table that will be a part of your dataset.

How to Create an Excel Table

Follow these steps to create a table from an existing set of data.

  1. Select any cell inside your dataset.
  2. Go to the Insert tab in the ribbon.
  3. Select the Table command.

This will open the Create Table menu where you will be able to select the range containing your data.

When you select a cell inside your data before using the Table command, Excel will guess the full range of your dataset.

You will see a green dash line surrounding your data which indicates the range selected in the Create Table menu. You can click on the selector button to the right of the range input to adjust this range if needed.

  1. Check the My table has headers option.
  2. Press the OK button.

📝 Note: The My table has headers option needs to be checked if the first row in your dataset contains column headings. Otherwise, Excel will create a table with generic column heading titles.

Your Excel data will now be inside a table! You will immediately see that it’s inside a table as Excel will apply some default format which will make the table range very obvious.

💡 Tip: You can choose from a variety of format options for your table from the Table Design tab in the Table Styles section.

The next thing you will want to do with your table is to give it a sensible name. The table name will be used to reference the table in formulas and other tools, so giving it a short descriptive name will help you later when reading formulas.

  1. Go to the Table Design tab.
  2. Click on the Table Name input box.
  3. Type your new table name.
  4. Press the Enter key to accept the new name.

Each table in your database will need to be in a separate table, so you will need to repeat the above process for each.

How to Add New Data to Your Table

You will likely need to add new records to your database. This means you will need to add new rows to your tables.

Adding rows to an Excel table is very easy and you can do it a few different ways.

You can add new rows to your table from the right-click menu.

  1. Select a cell inside your table.
  2. Right-click on the cell.
  3. Select Insert from the menu.
  4. Select Table Rows Above from the submenu.

This will insert a new blank row directly above the selected cells in your table.

You can add a blank row to the bottom of your table with the Tab key.

  1. Place the active cell cursor in the lower right cell of the table.
  2. Press the Tab key.

A new blank row will be added to the bottom of the table.

But the easiest way to add new data to a table is to type directly below the table. Data entered directly underneath the table is automatically absorbed into the table!

Excel Workbook Layout

If you are going to create an Excel database, then you should keep it simple.

Your Excel database file should contain only the data and nothing else. This means any reports, analysis, data visualization, or other work related to the data should be done in another Excel file.

Your Excel database file should only be used for adding, editing, or deleting the data stored in the file. This will help decrease the chance of accidentally changing your data, as the only reason to open the file will be to intentionally change the data.

Each table in the database should be stored in a separate worksheet and nothing else except the table should be in that sheet. You can then name the worksheet based on the table it contains so your file is easy to navigate.

💡 Tip: Place your table starting in cell A1 and then hide the remaining columns. This way it is clear the sheet should only contain the table and nothing else.

The only other sheet you might optionally include is a table of contents to help organize the file. This is where you can list each table along with the fields it contains and a description of what these fields are.

💡 Tip: You can hyperlink the table name listed in the table of contents to its associated sheet. Select the name and press Ctrl + K to create a hyperlink. This can help you navigate the workbook when you have a lot of tables in your database.

Use Data Validation to Prevent Invalid Data

Data validation is a very important feature for any database. This allows you to ensure only specific types of data are allowed in a column.

You might create data validation rules such as.

  • Only positive whole numbers are entered in a quantity column.
  • Only certain product names are allowed in the product column.
  • A column can’t contain any duplicate values.
  • Dates are between two given dates.

Excel’s data validation tools will help you ensure the data entered in your database follow such rules.

Follow these steps to add a data validation rule to any column in your table.

  1. Left-click on the column heading to select the entire column.

When you hover the mouse cursor over the top of your column heading in a table, the cursor will change to a black downward pointing arrow. Left-click and the entire column will be selected.

The data validation will automatically propagate to any new rows added to the table.

  1. Go to the Data tab.
  2. Click on the Data Validation command.

This will open up the Data Validation menu where you will be able to choose from various validation settings. If there is no active validation in the cell, you should see the Any values option selected in the Allow criteria.

Only Allow Positive Whole Number Values

Follow these steps from the Data Validation menu to allow only positive whole number values to be entered.

  1. Go to the Settings tab in the Data Validation menu.
  2. Select the Whole number option from the Allow dropdown.
  3. Select the greater than option from the Data dropdown.
  4. Enter 0 in the Minimum input box.
  5. Press the OK button.

💡 Tip: Keep the Ignore blank option checked if you want to allow blank cells in the column.

This will apply the validation rule to the column and when a user tries to enter any number other than 1, 2, 3, etc… they will be warned the data is invalid.

Only Allow Items from a List

Selecting items from a dropdown list is a great way to avoid incorrect text input such as customer or product names.

Follow these steps from the Data Validation menu to create a dropdown list for selecting text values in a column.

  1. Go to the Settings tab in the Data Validation menu.
  2. Select the List option from the Allow dropdown.
  3. Check the In-cell dropdown option.
  4. Add the list of items to the Source input.
  5. Press the OK button.

📝 Note: If you place the list of possible options inside an Excel Table and select the full column for the Source reference, then the range reference will update as you add items to the table.

Now when you select a cell in the column you will see a dropdown list handle on the right of the cell. Click on this and you will be able to choose a value from a list.

Only Allow Unique Values

Suppose you want to ensure the list of products in your Products table is unique. You can use the Custom option in the validation settings to achieve this.

  1. Go to the Settings tab in the Data Validation menu.
  2. Select the Custom option from the Allow dropdown.
=(COUNTIFS(INDIRECT("Products[Item]"),A2)=1)
  1. Enter the above formula in the Formula input.
  2. Press the OK button.

The formula counts the number of times the current row’s value appears in the Products[Item] column using the COUNTIFS function.

It then determines if this count is equal to 1. Only values where the formula evaluates to 1 are allowed which means the product name can’t have been in the list already.

📝 Note: You need to reference the column by name using the INDIRECT function in order for the range to grow as you add items to your table!

Show Input Message when Cell is Selected

The data validation menu allows you to show a message to your users when a cell is selected. This means you can add instructions about what types of values are allowed in the column.

Follow these steps to add an input message in the Data Validation menu.

  1. Go to the Input Message tab in the Data Validation menu.
  2. Keep the Show input message when cell is selected option checked.
  3. Add some text to the Title section.
  4. Add some text to the Input message section.
  5. Press the OK button.

When you select a cell in the column which contains the data validation, a small yellow pop-up will appear with your Title and Input message text.

Prevent Invalid Data with Error Message

When you have a data validation rule in place, you will usually want to prevent invalid data from being entered.

This can be achieved using the error message feature in the Data Validation menu.

  1. Go to the Error Alert tab in the Data Validation menu.
  2. Keep the Show error alert after invalid data is entered option checked.
  3. Select the Stop option in the Style dropdown.
  4. Add some text to the Title section.
  5. Add some text to the Error message section.
  6. Press the OK button.

📝 Note: The Stop option is essential if you want to prevent the invalid data from being entered rather than only warning the user the data is invalid.

When you try to enter a repeated value in the column your custom error message will pop up and prevent the value from being entered in the cell.

Data Entry Form for Your Excel Database

Excel doesn’t have any fool-proof methods to ensure data is entered correctly, even when data validation techniques previously mentioned are used.

When a user copies and pastes or cuts and pastes values, this can override data validation in a column and cause incorrect data to enter into your database.

Using a data entry form can help to avoid data entry errors and there are a couple of different options available.

  • Use a table for data entry.
  • Use the quick access toolbar data entry form.
  • Use Microsoft Forms for data entry.
  • Use Microsoft Power Automate app for data entry.
  • Use Microsoft Power Apps for data entry.

💡 Tip: Check out this post for more details on the various data entry form options for Excel.

Tools such as Microsoft Forms, Power Automate, and Power Apps will give you more data validation, access, and security controls over your data entry compared with the basic Excel options.

Access and Security for Your Excel Database

Excel isn’t a secure option for your data.

Whatever measures you set up in your Excel file to prevent users from changing data by accident or on purpose will not be foolproof.

Whoever has access to the file will be able to create, read, update, and delete data from your database if they are determined. There are also no options to assign certain privileges to certain users within an Excel file.

However, you can manage access and security to the file from SharePoint.

💡 Tip: Check out this post from Microsoft about recommendations for securing SharePoint files for more details.

When you store your Excel file in SharePoint you’ll also be able to see recent changes.

  1. Go to the Review tab.
  2. Click on the Show Changes command.

This will open up the Changes pane on the right-hand side of the Excel sheet.

It will show you a chronological list of all the recent changes in the workbook, who made those changes, when they made the change, and what the previous value was.

You can also right-click on a cell and select Show Changes. This will open the Changes pane filtered to only show the changes for that particular cell.

This is a great way to track down the cause of any potential errors in your data.

Query Your Excel Database with Power Query

Your Excel database file should only be used to add, edit, or delete records in your tables.

So how do you use the data for anything else such as creating reports, analysis, or dashboards?

This is the magic of Power Query! It will allow you to connect to your Excel database and query the data in a read-only manner. You can build all your reports, analysis, and dashboards in a separate file which can easily be refreshed with the latest data from your Excel database file.

Here’s how to use power query to quickly import your data into any Excel file.

  1. Go to the Data tab.
  2. Click on the Get Data command.
  3. Choose the From File option.
  4. Choose the From Excel Workbook option in the submenu.

This will open a file picker menu where you can navigate to your Excel database file.

  1. Select your Excel database file.
  2. Click on the Import button.

⚠️ Warning: Make sure your Excel database file is closed or the import process will show a warning that it’s unable to connect to the file because it’s in use!

Clicking on the Import button will then open the Navigator menu. This is where you can select what data to load and where to load it.

The Navigator menu will list all the tables and sheets in the Excel file. Your tables might be listed with a suffix on the name if you’ve named the sheets and tables the same.

  1. Check the option to Select multiple items if you want to load more than one table from your database.
  2. Select which tables to load.
  3. Click on the small arrow icon next to the Load button.
  4. Select the Load To option in the Load submenu.

This will open the Import Data menu where you can choose to import your data into a Table, PivotTable, PivotChart, or only create a Connection to the data without loading it.

  1. Select the Table option.
  2. Click on the OK button.

Your data is then loaded into an Excel Table in the new workbook.

The best part is you can always get the latest data from the source database file. Go to the Data tab and press the Refresh All button to refresh the power query connection and import the latest data.

💡 Tip: You can do a lot more than just load data with Power Query. You can also transform your data in just about any imaginable way using the Transform Data button in the Navigator menu. Check out this post on how to use Power Query for more details about this amazing tool.

Analyze and Summarize Your Excel Database with Power Pivot

Power Query isn’t the only database tool Excel has. The data model and Power Pivot add-in will help you slice and dice relational data inside your Excel pivot tables.

When you load your data with Power Quer, there is an option to Add this data to the Data Model in the Import Data menu.

This option will allow you to build relationships between the various tables in your database. This way you’ll be able to analyze your orders by category even though this field doesn’t appear in the Orders table.

You can build your table relationships from the Data tab.

  1. Go to the Data tab.
  2. Click on either the Relationships or Manage Data Model command.

Now you’ll be able to analyze multiple tables from your database inside a single pivot table!

Conclusions

Data is an essential part of any business or organization. If you need to track customers, sales, inventory, or any other information then you need a database.

If you need to create a database on a budget with the tools you have available then Microsoft Excel might be the best option and is a natural fit for any tabular data because of its row and column structure.

There are many things to consider when using Excel as a database such as who will have access to the files, what type of data will be stored, and how you will use the data.

Features such as Tables, data validation, power query, and power pivot are all essential to properly storing, managing, and accessing your data.

Do you use Excel as a database? Do you have any other tips for using Excel to manage your dataset? Let me know in the comments below!

About the Author

John MacDougall

John is a Microsoft MVP and qualified actuary with over 15 years of experience. He has worked in a variety of industries, including insurance, ad tech, and most recently Power Platform consulting. He is a keen problem solver and has a passion for using technology to make businesses more efficient.

Excel is the best tool to use for database analysis. It refers to a combination of rows and columns, and these rows and columns are used for storing our data as records. The excel rows and columns are further divided into smaller cells where the record data is inputted. Excel records can be converted into a table to form an excel database, and this makes the life of a regular excel user easier.

When creating an excel database, you need to carefully design the excel worksheet to have proper info in the database format.

1. Open the excel worksheet

Before accessing any feature on excel, you have to launch an excel application and create a new worksheet where you will add your data. Click on the excel option and tap the «New» button.

2. Entering the data

When entering the data in the worksheet, each cell is used to input each data of the database. Firstly, label the heading properly of your data.

After

the headers of the data table are clear, you can start entering data on the cells below the respective column headings. However, carefulness should be observed when entering data to ensure you don’t leave a single row empty. Similarly, you cannot have an empty column between the data. Therefore, fill in the data carefully.

3. Select the inputted data

Once all the data is inputted, highlight all the cells that contain the information to be converted to a database. Click the left mouse at the beginning of the data and then scroll down until all the required data are highlighted.

4. Click the «Insert» button

On the ribbon bar, locate and click on the insert button. Then, click the table button located on the leftmost side of the insert section. Alternatively, you can use excel’s shortcut to access the table feature. By selecting the data and then pressing Ctrl+T.

Here you need to make sure the header check box is checked and the data range shown selected properly. If the table header is not checked, you can activate it by clicking on the small box located on the left. Once everything is completely set, click the «ok» button.

5. Customize the database table

Since we’ve created a table, we have the database ready now, and it can be used for further references. When you enter the data after the last column, it will expand automatically. Excel is fitted with features that enable users to edit and make the table more appealing. These features are found under the table design tab. For example, if you wish to give your table a proper name, click the Table name tab on the Design tab, edit it and input the proper name of your table and then save by clicking anywhere on the worksheet screen.

Go ahead and click the excel tools button, and then click the save button to save your database.

Create Database in Excel

Before getting into database creation, Let’s first learn something about databases in excel. 

You cannot at any instance enter data and leave a row between two entries empty. Here’s an illustration.

Some cells can be empty in a database and it is completely legal. Leaving a complete row empty, however, is illegal.

Furthermore, it is not a good practice when you leave a full column empty.

The reason you should never leave an empty row or column is that whenever Excel encounters such a gap, it treats the data after such rows or columns as a new set of database. Therefore, the functions you deploy would not be able to filter on the disconnected part.

Rows are called Records, while columns are known as Fields. Headings on the columns are known as Field names.

The following are steps to creating a database in Excel;

i). Start by creating a data spreadsheet in excel.

Ensure that the columns are properly headed. Columns are labeled alphabetically while rows are named numerically. 

1. Open the Excel Sheet on your PC. Click on one cell to insert header names. The Tab button on your screen helps you to navigate from one row to a column. Once through, the cursor will take you to the next row or column.

2. Enter data or import from other sources. For instance, go to the Home tab, find the Cells segment and click on the Insert dropdown button.  You cannot leave any row empty.

For data importation, look for the Data tab, look for Get Data and choose the destination of your data.

ii). Convert your data into a table.

Data should be converted into a table. Click on any cell with information and select Insert>Table. Ensure data is in the correct format. Once done, data will be directly incorporated, and click Ok on the pop-up table.

How to arrange data in your spreadsheet using excel.

1. Spreadsheet database using Simple Horizontal Gray cells.

For long, this method has been useful to excel users, and it is segmented into two forms. Horizontal and vertical modes.

The horizontal database on the spreadsheet is dated in one row. Dates on the column use monthly buckets. However, they could use any time required. The codes column uses general ledger accounts. Gray rows and columns are the most common features of simple cells.

2. Simple spreadsheet database vertical style.

One column of data is comprised of several fields. In this case, data is shown vertically.

Names are easy to allocate in this format. In a classic excel, select Insert, go to Name, and Create.

In a new excel, select formulas, proceed to Defined names, and create from the selection.

3. Excel tables

Typically, after setting tables, more columns and rows, are named automatically.

Look out for the following.

  • Data Arranged
  • Headers and Data

To confirm;

Select Insert

Go to Tables on the Create Table Dialog

Make sure that the table has headers and press OK

Excel will automatically name the tables i.e Table 1, Table 2 e.t.c

4. Tabular layout for pivot tables

Pivot tables have different benefits like exploring data that is relatable in excel. It returns sorted, sliced, and summarized data in spreadsheets.

Setting up a pivot database table to look like an excel table

Insert a pivot table using these simple steps:

  • Go to the Data Set and click any single
  • Go to Tables group, then Insert tab and click Pivot Table. Excel will select the data for you.
  • Click OK on the pop-up table.

The pivot table Fields pane will appear that will show the total amount of exported data. Drag the following: product field to rows area, amount field to value area, and country field to filters area.

  • Sort the table by accessing the cell inside the sum amount and clicking on it.
  • Right-click on sort and sort from right to left.
Spreadsheets can help you analyze and present information stored in your database.

i darren baker/iStock/Getty Images

The same tabular format that Excel uses to store numbers and formulas may also be used to build a searchable database holding information for your business or personal use. Excel worksheet columns can function like the fields in a database which describe the properties or attributes of the information you want to store. Each worksheet row represents a record or complete description of an item in the database. Once you create your database, you can add additional items or scroll through your entries using Excel’s Form tool.

Populate your Database

Step 1

Open a new, blank worksheet to use as your database.

Step 2

Type a unique name for each field in your database in separate columns. Each worksheet column will contain a bit of information about each item you will store. For example, if you want to create a database of your music with the title, artist name, genre and release year of each CD you own, type «Title» in cell A1, «Artist» in B1, «Genre» in C1 and «Year» in D1. Collectively, the fields represent a database table.

Step 3

Type the data for each item in your database. For example, if you have a 2001 Boston Pops CD called «Best of Broadway,» type «Best of Broadway» in a row within the «Titles» column, «Boston Pops» in the same row under «Artist,» «Broadway» under «Genre» and then «2001» in the «Year» column. Each row you add to your spreadsheet represents a new database record.

Add New Records Using the Form Tool

Step 1

Click the «Home» button, «Options» and then «Quick Access Toolbar.»

Step 2

Select «All Commands» from the «Choose commands from» drop-down list.

Step 3

Click «Form,» «Add» and then «OK» to add the Form button to the Quick Access toolbar.

Step 4

Click any occupied cell within your database and then the «Form» button. Excel automatically generates a form containing your database fields and its first record.

Step 5

Add a new item to your database with the form. Click «New,» type the data for each field of the new record and then click «Close.»

Scroll Through your Database

Step 1

Click any cell within your database and then the «Form» button.

Step 2

Click the «Find Next» buttons to view the next item in your database.

Step 3

Click the «Find Prev» buttons to view previous records.

References

Tips

  • Use Excel’s keyboard short cuts to search for a specific item in your data or navigate through it. The Find function can help you locate an item in your database. For example, if you are looking for a CD by a specific artist, press «Ctrl-F,» type the artist’s name in the input box labeled «Find what,» and then press «Enter.» To add a new item to your database, press «Ctrl-End» and then «Enter» to move your cursor to the next empty row in your worksheet database.

Warnings

  • Information in this article applies to Excel 2013. It may vary slightly or significantly with other versions of Excel.

Writer Bio

Allen Bethea has written articles on programming, web design,operating systems and computer hardware since 2002. He holds a Bachelor of Science from UNC-Chapel Hill and AAS degrees in office technology, mechanical engineering/drafting and internet technology. Allen has extensive experience with desktop and system software for both Windows and Linux operating systems.

using excel as a database

Creating a database in Excel for your invoices, to-do’s, project timesheets, and more is an excellent way to cut down on data entry time and gain new business insights. Data, particularly numerical data, can be used for everything from reviewing past sales to predicting future costs in your business.

Businesses from every sector use data in their day-to-day activities, and while data is an integral part of any organisation, it’s no use on its own. Without proper data management, your information will be pretty much useless. 

Using Excel as a database or a similar data management tool will help categorise and segment your data, so it’s accessible and usable.

If you’re interested in learning more about using Excel in business as a database and how it compares to other Microsoft solutions like Access, this post is for you!

what is a database

What Is A Database?

Before we dive into using Excel as a database, let’s define what a database is for those who haven’t created or used a database before.

A database is a broad term for a system that stores multiple records of data. Databases come in many different forms and allow users to store, search, filter data and review numerical information.

Databases can have a one-to-one relationship, one-to-many relationship or many-to-many relationship meaning that one record can have multiple other records or that other records can exist without a primary record.

what is a database

These solutions can be offline or stored online using the Cloud. Databases come in a variety of styles and can be customised to suit your organisation’s unique requirements. 

Relational databases, for example, allow data to be shared between several different computer systems, which gives users the ability to store, update and share data.

Databases can store a wide variety of information and can be split up into sections making searching for data and identifying patterns easier and less time-consuming. A database might also include user permissions, a drop-down menu, complex calculations and advanced filtering options.

database software programmes

What Programmes Can You Use To Create A Database?

Databases can be made using a wide range of offline and online programmes. As well as creating a database in Excel, you can also use a selection of other solutions to create a database for your organisation. 

Many of these tools are specialist database solutions, such as Knack and IBM Informix, which you can get subscriptions to and use to build databases. 

how to create a database 1

Another Microsoft tool that can be used to create databases is Access. Both Access and Excel are part of the Microsoft Office 365 suite of products, meaning that they’re easily accessible to many business users. 

Access is part of the Professional suite of tools, so users do need to pay extra to upgrade their licence to use it. However, it is a valuable tool similar to other Microsoft programs, making it user-friendly and useful for small-mid size businesses. 

excel-database-vs-acccess

Creating a Database in Excel Vs Access

While Excel is a helpful tool for storing and managing your data there are many spreadsheet and database programmes to explore.

For example, Microsoft Access is specifically designed for creating and managing databases and storing data. Many businesses use it as their single database, so they have a master copy of their data set.

Some of the differences between Microsoft Excel and Access when it comes to data management include:

  • Access is designed to manage databases and can act as your master database 
  • Excel is specifically created to allow data management and visual representation of information
  • Excel is easier to use than Access for Microsoft novices
  • Excel is non-relational as opposed to Access, which allows relational data
  • Access has a greater capacity for data storage than Excel

Benefits-of-using-excel-as-a-database

Do you need Excel database help?

We are Excel Experts, so contact a member of our team today.

What Are The Benefits Of Using Excel?

Excel and Access are two unique tools, and each has its own benefits. While Access was designed to manage databases, Excel has many handy features to let you make calculations, automate data functions, generate reports, build a searchable database and more.

Some of the many benefits of using Excel to manage your data and create small databases are:

  • Excel is already tabular, and it’s easy to view an Excel worksheet and access data
  • Most business leaders have access to and know the basics of Excel
  • Excel is perfect for numerical data, and making calculations, and it’s easy to enter data 
  • The rows and columns are easier to understand than some more complex database layouts
  • VBA allows users to automate tasks and link Excel to other software programs

can excel be used as a database

When To Use Excel As A Database

Excel can be used as a database when you’re only dealing with a small amount of information, or it’s not particularly business-critical. 

An Excel database might also be used as a starter database for small business leaders who want to experiment or learn more about managing their data. For example, by creating a customer database or a database that only requires a simple database record. 

When To Use Excel As A Database

As your business grows, you might want to explore more specific database software specifically designed to act as a database and deal with all the data your company collects. 

Such a database will often have better security and can manage and store larger amounts of data.

Excel can handle just over a million records, but if you have more data records or regularly add new records to your data, it might struggle to deal with these volumes. In this case, you should consider using a specially-designed database program.

using-excel-and-other-databases

How Excel & Other Databases Can Work Together

While Excel might not be an ideal database if you’re dealing with over a million records, using a database in Excel is a useful tool for managing data. As such, you can still use Excel to manage your data and use the formulas to create unique predictions and insights. 

You can then sync your Excel sheet with a larger database on a SQL server to transfer the data into a larger collection of information without entering the data again.

This approach will reduce your chances of corrupting your Excel files and spreadsheets, which aren’t designed to hold extremely large amounts of data. 

Using SQL to sync databases

It’ll also mean that you can still use Excel for small sections of your data and easily transfer it to a larger and more secure database tool. 

Excel can be used in conjunction with most tools, both Microsoft’s own suite of products and third-party solutions. It has many functions and capabilities, including the ability to calculate averages and insert complex formulas easily. 

So, if you’re struggling to perform these functions in another database program, you can combine its superior storage and security functions with Excel’s innovative capabilities. 

how to use excel as a database

How To Create A Database in Excel

Creating a database in Excel is surprisingly straightforward and can be done by almost anyone. The tool is intuitive and easy to use, so making a simple database is quick and easy. 

Excel is a tabular tool, so the best layout is a database table. All you need to do is create the columns and rows, which will act as the database field and then enter data. 

Once your data is in, you can search the database, review your information and even summarise data. You can also add formulas and use VBA, the programming language for Excel, to create instructions and automate the management of your database. 

With Excel, you can also create multiple tabs and link them to input data to spread the content around and ensure that everything is clearly labelled.

However, Excel doesn’t allow the creation of a relational database, but you can still cross-reference and cross-link different tables and pull the data into a master table.


Excel Database Book

Learn how to create, analyse, import and export large amounts of data with the Excel 365 Bible.


Choose the Type of Database

The first step in creating a database is to decide which type of database you need. There are four basic types of databases:

1. Relational databases

A relational database is a type of database that stores and retrieves data by using tables. Tables are a collection of related data, and each table has a unique name. Tables are similar to folders in a file system, where each folder contains a collection of related files

2. Object-oriented databases

An object-oriented database is a type of database that stores and retrieves data by using objects. Objects are a collection of related data, and each object has a unique name. Objects are similar to files in a file system, where each file contains a collection of related data

3. Hierarchical databases

A hierarchical database is a type of database that stores and retrieves data by using a hierarchy. A hierarchy is a structure of connected nodes, where each node has a unique name. Nodes are similar to folders in a file system, where each folder represents a node in the hierarchy

4. Network databases

A network database is a type of database that stores and retrieves data by using a network. A network is a collection of connected nodes, where each node has a unique name. Nodes are similar to files in a file system, where each file represents a node in the network.

how to use excel as a database

What Can You Use a Database For?

As Excel databases are easy to use and completely customisable, they can be made to suit the needs of a variety of organisations. There are many ways you can use them to save your company time and effort.

Some examples of what to use a database for in your business include:

  1. Listing customer or student data related to times/ appointments 
  2. Calculating total sales figures over a set timeframe
  3. Tracking the productivity of team members
  4. Reviewing work orders 
  5. Storing and managing data on stock 
  6. Storing digital assets and marketing material
  7. Keeping supply chain management records and processes
  8. Storing customer details and order information
  9. Managing product information
  10. Automating data entry using Excel automation

Using databases for your business, and even for personal use, can bring a wealth of benefits. You can free up your time, increase your productivity and slice through information quickly.

It’s much easier to understand data when it’s organised in an Excel database compared with an unstructured list or via another type of cloud-based program.

using excel as a database

Summary: Creating A Database In Excel

Ultimately, Excel is not technically a database but a spreadsheet and data management tool. That being said, Excel is a useful tool for business leaders who want to use it to create their first initial database and learn how to manage their information. 

Whether you’re a small business or an organisation that wants to manage a small amount of data, Excel can be the perfect tool. The best thing about using Excel as a database is that it’s an easily accessible tool that can be used by almost everyone on your team.

For larger businesses, Microsoft Access could be a useful solution to help you to expand your database and manage more information. Excel can be used in conjunction with Access and other database solutions, even for larger organisations, as it has many innovative capabilities and data management functions. 

If you’re planning on using Excel as a database, you need to understand the basics of using Excel and how it can interact with other Microsoft solutions, including Access. 

about-the-excel-experts

About The Excel Experts

At The Excel Experts, we pride ourselves on helping businesses to learn more about the Microsoft suite of software solutions. 

Check out our MS Office training and Excel training courses to find a solution that works for your business. Our team can create a custom training solution for your organisation and help you and your team make the most of Excel. 

We also offer a range of Excel consultancy services, including creating custom Excel workbooks that can be used as databases for reporting data and much more. 

If you’d like to learn more about our services and how we can help you use Excel to its full potential, then contact us today. 


NEED HELP WITH AN EXCEL PROJECT, BIG OR SMALL?

The Excel Experts can help you or your business complete an unfinished project, integrate web applications, automate tasks, and much more.

image


Download Article


Download Article

This wikiHow teaches you how to create a database using data from a Microsoft Excel spreadsheet by importing the data directly into Access, which is Microsoft’s database management software, or by exporting the Excel data into a format that works with most database software. Microsoft Access is a part of the Microsoft Office software bundle and is only available for Windows.

  1. Image titled Create a Database from an Excel Spreadsheet Step 1

    1

    Open Microsoft Access. It’s the red app with an A. Doing so opens the Access template page.

    • Access is designed for use with Excel and comes bundled with Excel in Microsoft Office Professional and is only available for Windows.
  2. Image titled Create a Database from an Excel Spreadsheet Step 2

    2

    Click Blank database. This option is in the upper-left side of the window.

    • If you want to use a different template for your Access database, select the template that you want instead.

    Advertisement

  3. Image titled Create a Database from an Excel Spreadsheet Step 3

    3

    Click Create when prompted. This option is in the bottom-right corner of the pop-up window. Your Access database will open.

  4. Image titled Create a Database from an Excel Spreadsheet Step 4

    4

    Click the External Data tab. It’s in the menu bar at the top of the Access window.

  5. Image titled Create a Database from an Excel Spreadsheet Step 5

    5

    Click Saved Imports. You’ll find this in the far-left side of the External Data toolbar. A drop-down menu will appear.

  6. Image titled Create a Database from an Excel Spreadsheet Step 6

    6

    Select File. It’s in the drop-down menu. Selecting this option prompts a pop-out menu.

  7. Image titled Create a Database from an Excel Spreadsheet Step 7

    7

    Click Excel. This option is in the pop-out menu. Clicking it prompts the import window to open.

  8. Image titled Create a Database from an Excel Spreadsheet Step 8

    8

    Click Browse. It’s in the upper-right part of the window.

  9. Image titled Create a Database from an Excel Spreadsheet Step 9

    9

    Select an Excel spreadsheet. Go to the folder in which your Excel spreadsheet is located, then click the Excel spreadsheet which you want to open.

  10. Image titled Create a Database from an Excel Spreadsheet Step 10

    10

    Click Open. It’s in the bottom-right corner of the window.

  11. Image titled Create a Database from an Excel Spreadsheet Step 11

    11

    Specify how to transfer to the data. Click the radio button to the left of one of the following:

    • Import the source data into a new table in the current database — Choose this option if you created a new database with no tables or if you want to add a new table to an existing database. By creating a new table you can edit the information in Access.
    • Append a copy of the records to the table — Choose this option if you are using an existing database and want to add the data to one of the tables in the database. By appending an existing table, you can edit the information in Access.
    • Link to the data source by creating a linked table — Choose this option to create a hyperlink in the database, which will open the Excel database in Excel. With this method, you cannot edit the information in Access.
  12. Image titled Create a Database from an Excel Spreadsheet Step 12

    12

    Click OK. You’ll find this at the bottom of the window.

  13. Image titled Add Grid Lines to Your Excel Spreadsheet Step 3

    13

    Select a sheet. At the top of the window, click the name of the sheet that you want to import from your selected Excel document.

    • By default, Excel creates workbooks with three spreadsheets labeled «Sheet 1,» «Sheet 2,» and «Sheet 3.» You can only transfer one sheet at a time; if you have information on all three sheets, you must complete the transfer with one sheet and then go back to the «External Data» tab and repeat all the steps for each remaining sheet.
    • You can delete, add, and edit the names of these sheets in Excel, and whatever changes you make will appear in the Access database.
  14. Image titled Create a Database from an Excel Spreadsheet Step 14

    14

    Click Next. It’s in the bottom-right corner of the window.

  15. Image titled Create a Database from an Excel Spreadsheet Step 15

    15

    Enable column headings. Check the «First Row Contains Column Headings» box if your Excel sheet has its own column headings in the top row (e.g., the A row).

    • Uncheck the box if you want Access to create the column headings.
  16. Image titled Create a Database from an Excel Spreadsheet Step 16

    16

    Click Next.

  17. Image titled Create a Database from an Excel Spreadsheet Step 17

    17

    Edit your spreadsheet’s columns and fields if needed. If you want to import all the fields from the spreadsheet without change, skip this step:

    • To edit a field, click the column header you want to change, then edit the name of the field, the data type, and/or whether or not it is indexed.
    • If you don’t want to import a field, check the «Do Not Import Field (Skip)» box.
  18. Image titled Create a Database from an Excel Spreadsheet Step 18

    18

    Click Next.

  19. Image titled Create a Database from an Excel Spreadsheet Step 19

    19

    Set the primary key for the database. For best results, leave the default setting here as-is to let Access set the key.

    • You can also set your own key by checking «Choose my own primary key» and entering it in the field next to that option, or you can select «No primary key» (not recommended).
  20. Image titled Create a Database from an Excel Spreadsheet Step 20

    20

    Click Next.

  21. Image titled Create a Database from an Excel Spreadsheet Step 21

    21

    Add a name. Type a name for the sheet into the «Import to Table» field.

    • Skip this step to leave the database set to its default name.
  22. Image titled Create a Database from an Excel Spreadsheet Step 22

    22

    Click Finish. This option is in the lower-right side of the window.

  23. Image titled Create a Database from an Excel Spreadsheet Step 23

    23

    Click Close. It’s in the bottom-right corner of the window. This will close the import window and create your database.

    • You can first check the «Save import steps» box if you want to ensure that Access will remember your settings for this database.
  24. Advertisement

  1. Image titled Create a Database from an Excel Spreadsheet Step 24

    1

    Open your Excel document. Double-click the Excel document which you want to convert into a database.

    • If you haven’t yet created your document, open Excel, click Blank workbook, and create your document before proceeding.
  2. Image titled Create a Database from an Excel Spreadsheet Step 25

    2

    Click File. It’s in the menu bar that’s either at the top of the Excel window (Windows) or at the top of the screen (Mac).

  3. Image titled Create a Database from an Excel Spreadsheet Step 26

    3

    Click Save As. You’ll find this option in the File menu.

  4. Image titled Create a Database from an Excel Spreadsheet Step 27

    4

    Double-click This PC. It’s in the middle of the page.

    • Skip this step on a Mac.
  5. Image titled Create a Database from an Excel Spreadsheet Step 28

    5

    Select a file format. Click the «Save as type» (Windows) or «File Format» (Mac) drop-down box, then select one of the following:

    • If you’re using a computer-based database application, click a .CSV (comma separated values) format.
    • If you’re using a Web-based database application, click an .XML format.
      • If your Excel document doesn’t have any XML data in it, you won’t be able to choose XML.
  6. Image titled Create a Database from an Excel Spreadsheet Step 29

    6

    Click Save. It’s at the bottom of the window. This will save your document using your selected preferences.

  7. Image titled Create a Database from an Excel Spreadsheet Step 30

    7

    Create a new database in your database application. This process will vary depending on the application that you’re using, but you’ll usually open the application, click New (or File > New), and follow any on-screen instructions.

  8. Image titled Create a Database from an Excel Spreadsheet Step 31

    8

    Locate the Import… button. It’s often found by clicking the File option, but your database application may vary.

  9. Image titled Create a Database from an Excel Spreadsheet Step 32

    9

    Select your Excel file. Locate and double-click the file you exported from Excel.

  10. Image titled Create a Database from an Excel Spreadsheet Step 33

    10

    Follow the database app’s prompts to import the data.

  11. Image titled Create a Database from an Excel Spreadsheet Step 34

    11

    Save the database. You can usually open the «Save» menu by pressing Ctrl+S (Windows) or Command+S (Mac).

  12. Advertisement

Add New Question

  • Question

    What is the difference between a database and a spreadsheet?

    wikiHow Staff Editor

    This answer was written by one of our trained team of researchers who validated it for accuracy and comprehensiveness.

    wikiHow Staff Editor

    wikiHow Staff Editor

    Staff Answer

    A spreadsheet stores information organized into rows and columns and is usually best used by one person at a time. A database might also have information organized into rows and columns, but it isn’t limited to just that and can store information according to a variety of different methodologies. Databases are typically made with multiple simultaneous users in mind and security features. Databases also allow for more complex and time consuming searches or operations and can eliminate some of the redundancy that becomes necessary when using spreadsheets extensively.

  • Question

    How do I view this page in French?

    Community Answer

    Copy and paste onto Google Translate; when you copy the translated words onto Excel, it will automatically format it to its original form.

  • Question

    I’ve imported data from Excel, but where does it go, and how do I access the information to populate my database?

    Community Answer

    You can go to «Insert > Pivot Table» and select «Use external connection» and pick the connection you’ve established. This will allow you to create a pivot table based on that external Access database.

Ask a Question

200 characters left

Include your email address to get a message when this question is answered.

Submit

Advertisement

  • There are several free online database websites that you can use to create a database, though you’ll have to sign up for an account with most of these services.

  • If you don’t have fully functional database software, you may also need a separate program to open database files on PC or Mac.

Thanks for submitting a tip for review!

Advertisement

  • Excel data doesn’t always transfer over to a database as neatly as you might hope for.

Advertisement

About This Article

Article SummaryX

To create a database from an Excel spreadsheet, you can use Microsoft Access, which is Microsoft’s database management software. When you have Microsoft Access, open the program and click “Blank database.” After creating your blank database, click the “External Data” tab at the top and then “New Data Source.” Then, select “File” from the drop-down menu and click “Excel.” Use the “Browse” button to locate your Excel spreadsheet. Once you’ve selected the spreadsheet, click “Open” and choose how you want to transfer the data. Select a sheet and enable column headings. To complete your database, set the primary key and click “Finish.” For best results, you can leave the default primary key setting as is. For more information, including how to use a third-party software to create a database from an Excel spreadsheet, read on!

Did this summary help you?

Thanks to all authors for creating a page that has been read 1,118,801 times.

Reader Success Stories

  • Ali Mill

    «Step-by-step help with pictures made this task easy for me. I’d still be attempting to achieve this task, but this…» more

Is this article up to date?

Понравилась статья? Поделить с друзьями:
  • How to use does do did in a sentence for each word
  • How to use could word in english
  • How to use conditionals in excel
  • How to use comments in word
  • How to use columns in word