Step-by-Step Guide: Developing Custom Data Types in Microsoft Excel

Step-by-Step Guide: Developing Custom Data Types in Microsoft Excel

Richard Lv13

Step-by-Step Guide: Developing Custom Data Types in Microsoft Excel

If you often take advantage Microsoft’s Data Type feature when including data in your sheets, but you wish a specific category would come along, there’s an easy solution. You can create your own data type in Microsoft Excel!

When Microsoft introduced its Data Type feature, you only had a few options like geography and stocks . The options then grew to include things like food, cities, plants, and more. But maybe you have a particular data type you’d like to see, and that’s where custom data types come in.

The data type creation feature is only available to Microsoft 365 subscribers.

Import the Data

In this tutorial, we’ll show you how to create a data type by importing data from a web source. But you can also use data from a text or CSV file or a spreadsheet. For our example, we’ll import something fun: a list of Angry Birds video games from Wikipedia .

Go to the Data tab and choose your import choice from the Get & Transform Data section of the ribbon. In our case, we select “From Web.”

On the Data tab, select From Web

Enter the URL for the website, click “OK” and wait a moment for Excel to connect. You may be asked to select the level for the URL you enter. If so, make your choice and click “Connect.”

Enter the URL for your data source

Choose the Data Columns

When the Navigator window opens, you’ll see the list of options found from your source on the left. You can click to view each one in the Table View tab on the right. If you would like to use more than one, click the Select Multiple Items checkbox at the top of the list. After selecting the data, click “Transform Data.”

Choose a data table and click Transform Data

Next, the Power Query Editor window appears. This is where you’ll choose the columns of data you want to use for the data type. You can choose multiple columns by holding Ctrl as you click each one.

Select columns in the Power Query Editor

Create the Data Type

When you finish choosing the columns, go to the Transform tab and click the Structured Column drop-down arrow on the right side of the ribbon. Pick “Create Data Type.”

On the Transform tab, click Structured Column, Create Data Type

Now you can choose how you want the data to display. Enter the Data Type Name you want to use. In the “Display Column” drop-down menu, choose which column should display in your sheet for the data type.

Choose a name and column

If you want to remove columns you selected or arrange them differently, click “Advanced.” Move columns you don’t want from Selected Columns to Available Columns using the Remove button. To rearrange the order, use the Move Up and Move Down arrows on the right.

Arrange the columns

When you finish, click “OK.” The Power Query Editor displays once more with your data in a single column. The other columns you selected are condensed into this one column.

Power Query Editor with created data type

Next, you’ll load the data type into an Excel table. Go to the Home tab and click “Close & Load” on the left side of the ribbon.

On the Home tab, click Close and Load

You’ll then see the data type column you selected in your Excel sheet. For our example, it’s the Game column.

Data type loaded in Excel sheet

Use Your Data Type

You’ll notice the data type icons next to each item in the list and you can insert other pieces of data the same way as Excel’s built-in data types . Click the Add Column icon and choose the piece of data to insert. It automatically displays in a column to the right.

Click Add Column and pick the data

Continue clicking the icon and selecting more data to insert as you wish.

Data type data added

To display the data card, click the icon next to one of the items. You’ll then see the data card for that item pop open.

Show the data card

Using data types, you have a convenient way to insert data into your spreadsheet. And if you want to take that data to the next level, check out how to use data type templates .

Also read:

  • Title: Step-by-Step Guide: Developing Custom Data Types in Microsoft Excel
  • Author: Richard
  • Created at : 2024-12-03 16:02:41
  • Updated at : 2024-12-06 17:25:54
  • Link: https://win11-tips.techidaily.com/step-by-step-guide-developing-custom-data-types-in-microsoft-excel/
  • License: This work is licensed under CC BY-NC-SA 4.0.