SharePoint Lookup Column: How to Create One Easily

SharePoint Lookup Column: How to Create One Easily

If you have plenty of lists and libraries on one of your sites, then you may have wondered at some point if there was a way for you to show some columns from one list or library to another.

With a lookup column, that’s certainly possible.

In this article, I’ll show you how to easily create one on your SharePoint site. Note that although the use case for this feature is incredible, it comes with some limitations too.

Let’s get started!

What is a lookup column?

The simplest explanation is that a lookup column is a special type of column that enables you to connect a list or a library to a column from another list or library on one of your sites.

Specifically, it will pull in other information from another list or library and display it to the list you’re connecting from by matching the information on the lookup column on both lists or libraries.

For example, let’s say you have two lists in one of your SharePoint sites…

The first list contains information about your customer contacts like their full names, email addresses, contact information, and others.

The second list contains information about your customer’s company, including the full company name, address, industry, and others.

With a lookup column, you can associate customer contacts with company names simply by creating a lookup column from the customer contacts list to the company list.

Through this connection, you will be able to pull in company information, like the name and address, into the customer contacts list. In a way, it’s like you’re putting all possible information on one of the lists.

By the way, a lookup column is quite different from a site column, which is built at the site collection level and can be used across subsites within that collection.

A site column, just like a standard lookup column, doesn’t provide any value across site collections like managed metadata can.

How to create a lookup column?

Fortunately, it’s not really that hard to create a lookup column. In fact, the steps required here are similar to creating a calculated column.

But before we start, make sure that the lists or libraries you want to connect together are ready. After that, it’s time to proceed with the first step.

Step 1: Add a Lookup Column

First, navigate to the list or library where you want to display information from another list or library.

Click on +Add column > More.

Click on +Add column > More.

Since the lookup column is considered a classic feature, you can’t find it on the list of available column types right after clicking on +Add column.

On the next page, give the column a name, and choose lookup as the type of column.

Give the lookup column a name.

Step 2: Configure the Lookup Column

The next step is to configure the lookup column by specifying which list it will connect to and which column it will look for information.

On the same page, scroll down a little until you get to this part:

Configuring the lookup column.

All you have to do here is to select the list or library where you want to connect to and which column to look up.

In this case, the list will be Companies and the information will be on the Title column (which is actually renamed to Company in the Companies list).

The Allow multiple values option will enable you to match an entry with more than one entry on the other list or library in a one-to-many relationship. I will show this to you later on in the third step.

Note that you can also choose to show additional columns from the same list or library you’re connecting to.

For example, we can also set it up to show the company’s industry and address.

Adding additional columns to the lookup column.

Once it’s all set up, all you need to do is to proceed with creating the lookup column.

Step 3: Edit the Metadata

After creating the lookup column, it will display immediately on the list or library.

In our example, the newly created Company lookup, along with columns for the company’s industry and address, will now be added to the Customers list.

How a newly created lookup column looks like.

The additional fields are displayed in List:Column format. You can always rename them accordingly by clicking the dropdown icon of the column title > Column Settings > Rename as shown below.

Renaming an additional column from the lookup column

The next part is editing the metadata of the entries in your list and specify which company the customer belongs to.

To do so, click on the entry > information icon and indicate which company that customer belongs to. Don’t forget to press Enter to save the changes.

Edit metadata for lookup column

Here is how it looks like now:

How a filled lookup column looks like

By the way, in the second step, I mentioned that it’s possible to create a one-to-many relationship.

For example, a certain customer can belong to two companies and make it reflect on the lookup column.

To do this, it’s important that the option for allowing multiple values is enabled.

Create one-to-many link with lookup

When you select more than one match, it will now look like this:

A list with multiple lookup values

Limitations of a Lookup Column

The lookup column feature is an amazing functionality that will somehow turn your list or library into a functional database.

Unfortunately, it comes with its own limitations too.

For one, a lookup column only works one way. In our example earlier, we can view information about the company in which certain customers belong to.

However, that relationship is only established on the Customers list. If you want to create a link from the Companies list and view the information there for customers that belong to that company, you must set up another lookup column there.

As you can see below, the Companies list is untouched.

Lookup list only creates a one-way link

Another limitation is that you can only have 12 lookup columns in a view. This includes the workflow status columns, traditional lookup columns to other lists, and person/group columns (including the two default people fields “Created by” and “Modified by”).

If you push it, you will get the following error:

“This view cannot be displayed because the number of lookup and workflow status columns it contains exceeds the threshold (12) enforced by the administrator.”

Although it’s possible to change this with the on-premises SharePoint, you can’t do anything about this in SharePoint Online.

Another one is that according to Microsoft’s documentation, you can only create a lookup to three column types:

  1. Single line of text
  2. Number
  3. Date and Time

The last limitation is the fact that you can’t create lookups across different sites. You can only use this feature to connect lists and libraries that are on the same site.

Alternatives to a Lookup Column

If the limitations were a turn-off for you, there are a few things you can do.

For example, if you only need a list of metadata to be accessible by different sites and site collections, you can use Managed Metadata via the Term Store. Through it, you can easily manage metadata without the limitations of a lookup column.

The Term Store is controlled separately using the Admin Center of SharePoint. The feature is under content services as shown below:

How to access the term store feature

Organizing metadata in the Term Store deserves a guide of its own. But in essence, all you need to do is to:

  • Create metadata in the term store
  • Create metadata column at a list or library level
  • Associate the metadata column with the one you created in the term store

Another thing you can use is Power Apps. This may be on a different level, but if you’re familiar with it, you can easily create lookups while avoiding all the limitations of using the classic SharePoint lookup column feature.

Using the SharePoint Lookup Column

As you can see, a lookup column is an interesting feature that can really save you time if you want to view information on a list or library from another list or library on the same site.

It may come as a little bit confusing at first, but the bottom line is that it allows you to include information found on a list or library into another list or library of your choice. It’s like creating a mega list or library.

To create a lookup column, all you need to do is to:

  • Add a lookup column by accessing the classic editor
  • Configure the lookup column
  • Edit the metadata on the entries of your list or library

It’s also possible to create a one-to-many relationship by allowing multiple values on your lookup column.

Unfortunately, it does come with limitations. For one, a lookup column only creates a one-way link. To view information on both lists or libraries, you must create another lookup column.

Another is that there are only three supported types of columns. Furthermore, you can only have 12 lookup columns in a single view. The more extra fields you add, the faster that allowance gets depleted.

Fortunately, there are alternatives you can use that will allow you to dodge the limitations. One of them is by using the term store feature, which is only accessible from the Admin Center of SharePoint.

The other alternative is using Power Apps, although this is only possible if you know how to use it. But what’s important here is that there are other things you can do if you want to have the lookup functionality without the limitations.

If you need help with anything related to SharePoint, feel free to leave a comment below or send me a direct message via the contact page.

About Ryan

As the Principal Solutions Architect at Mr. SharePoint, I help companies of all sizes better leverage the Modern Workplace and Digital Process Automation investments.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top
Tweet
Share
Share
Pin