+ Reply to Thread
Results 1 to 7 of 7

Combine tables error: The relationship cannot be created because both columns ... etc

  1. #1
    Forum Contributor
    Join Date
    06-24-2004
    MS-Off Ver
    Excel 2013 Pro Plus
    Posts
    122

    Combine tables error: The relationship cannot be created because both columns ... etc

    Hello friends, Hope all is well. I have tried to figure this out over and over again, and I even followed the steps of the link below, but it just wont work.
    https://chandoo.org/wp/2013/07/01/in...relationships/

    I keep getting: excel relationships both selected columns contain .....

    the attachment is here, can you please walk me through this? I can tell this will save time & can be a very useful function.

    Thank you so much in advance
    Attached Files Attached Files
    Last edited by countryfan_nt; 02-01-2018 at 07:36 PM.

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,661

    Re: Relationship of multi tables Nightmare.

    title updated
    Last edited by protonLeah; 02-01-2018 at 07:56 PM.
    Ben Van Johnson

  3. #3
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Cool Re: Combine tables error: The relationship cannot be created because both columns ... etc

    Append tables via PowerQuery then create PivotTable

    or read here: Relationships
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    06-24-2004
    MS-Off Ver
    Excel 2013 Pro Plus
    Posts
    122

    Re: Combine tables error: The relationship cannot be created because both columns ... etc

    Thank you very much, can i do it without powerquery? If so how? Please tell me how to avoid the error?

  5. #5
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Cool Re: Combine tables error: The relationship cannot be created because both columns ... etc

    Did you read info from the link? There is a good description of how relationships are created and between which tables

    It is depend what are you tryin' to achieve with your PivotTable

    Now you've assigned different Types to the same ID so you'll get error

    maybe read here also: Database Normalization

    Edit:
    Also you can use Alt+D+P to create PivotTable from 4 tables
    Attached Files Attached Files
    Last edited by sandy666; 02-01-2018 at 08:20 PM. Reason: see edit

  6. #6
    Forum Contributor
    Join Date
    06-24-2004
    MS-Off Ver
    Excel 2013 Pro Plus
    Posts
    122

    Re: Combine tables error: The relationship cannot be created because both columns ... etc

    Ok after carefully reading The link i get it now, no duplicates.
    Perhaps Choosing the function creating relationship was not the right approach. Allow me to start over.

    All columns have the same nature headers and type of info every sheet has the last two columns contain different columns. I want 1 database in ‘pivot’ sheet and to treat it as
    Database for pivottable and to avoid using vlookup.

    In the end i have a database picking up all the columns that have common data and see info in the respective rows.

    I hope I didn’t confuse you friends, if i did i am sorry and will make a new attachment with the sheet and the desired end result.

  7. #7
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Combine tables error: The relationship cannot be created because both columns ... etc


    try read this one to understand database/tables/relationships: Relational databases: Defining relationships between database tables and Primary key - Foreign key

    in short: 1st table: different data with unique primary key, 2nd table: different data with unique ID but with foreign key related to the primary key from 1st table... etc.
    Last edited by sandy666; 02-01-2018 at 08:46 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: 07-08-2016, 12:20 PM
  2. linking tables with a relationship instead of vlookup
    By Atomic BI in forum Excel General
    Replies: 0
    Last Post: 03-29-2016, 12:48 PM
  3. Replies: 0
    Last Post: 02-16-2016, 05:34 AM
  4. Replies: 0
    Last Post: 03-18-2015, 02:59 PM
  5. [SOLVED] What am doing wrong? Creating a relationship between two tables.
    By BrownBoy in forum Access Tables & Databases
    Replies: 2
    Last Post: 07-18-2014, 11:52 AM
  6. Replies: 4
    Last Post: 09-13-2012, 09:08 AM
  7. Relationship between Cell and Data Tables
    By NeshaNYC in forum Excel General
    Replies: 0
    Last Post: 08-15-2011, 10:55 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1