Cannot create relationship with 1 to many

rileybloke

New Member
Joined
Feb 7, 2013
Messages
43
Hi,

I have 2 tables...
1 contains product information, and the product code is a unique key, and the 2nd table contains sales data.

When I try to establish a relationship between the product code in table1 and table2 I get the error..

"The relationship cannot be created because each colum contains duplicate values, select at least 1 column that contains unique values"

But my prodyct code in table 1 is unique.

I dumped into excel and a pivot to check for duplicate and there aren't any.
Totally stumped.

Any advice or help would be great thanks.
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
I think I once had empty rows in a table uploaded via Excel that prevented creating a relationship?
 
Upvote 0

Forum statistics

Threads
1,214,946
Messages
6,122,401
Members
449,081
Latest member
JAMES KECULAH

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top