How to Make One to Many Relationship in Excel (2 Simple Ways)

Method 1 – Make a One-to-Many Relationship with a Formula

Steps:

  • Organize two co-related datasets.

 Excel One to Many Relationship

  • Form tables with both datasets.
  • Select the entire first dataset.
  • Go to the Insert tab and click on Table from the ribbon.

Make One to Many Relationship with Formula

  • Set your table range and press OK.

Table1 will be created.

 Excel One to Many Relationship

  • Use the same procedure to make Table2 from the second dataset.

  • Select a cell (i.e. K5) and input the following formula to get the average CGPA of all the departments.
=AVERAGE(IF(COUNTIFS(Table2[Std ID],Table1[Std ID],Table2[Department],J5),Table1[CGPA]))

 Excel One to Many Relationship

  • Press Enter.

We can further modify the output to format it.

 Excel One to Many Relationship

Read More: How to Create Many to Many Relationship in Excel


Method 2 – Make a One-to-Many Relationship with a PivotTable

Steps:

  • Put the dataset into tables.
  • Go to the Power Pivot tab.
  • Click on Manage from the ribbon.

Make One to Many Relationship with PivotTable

Power Pivot for Excel will appear.

  • Go to PivotTable from the ribbon under the File tab.
  • Select PivotTable.

  • Pick your PivotTable location and click on OK.

Excel One to Many Relationship

  • From the PivotTable Fields, manage your PivotTable. We have set Department as Rows and Sum of CGPA as values.

We will get the sum of CGPA for all the departments.

  • Right-click on the Sum of CGPA title.
  • Pick Average from the Summarize Values By group.

We will get the average CGPA for all the departments.

Excel One to Many Relationship

You can modify your output based on your preferences.

Excel One to Many Relationship


Practice Section

For further expertise, you can practice with the download file.

Practice section


Download the Practice Workbook


Related Articles


<< Go Back to Create Relationships in ExcelData Model in Excel | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Naimul Hasan Arif
Naimul Hasan Arif

Naimul Hasan Arif, a BUET graduate in Naval Architecture and Marine Engineering, has been contributing to the ExcelDemy project for nearly two years. Currently serving as an Excel and VBA Content Developer, Arif has written more than 120 articles and has also provided user support through comments His expertise lies in Microsoft Office Suite, VBA and he thrives on learning new aspects of data analysis. Arif's dedication to the ExcelDemy project is reflected in his consistent contributions and... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo