+ Reply to Thread
Results 1 to 6 of 6

How to group 1 to many relationship

  1. #1
    Registered User
    Join Date
    05-16-2012
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2007
    Posts
    63

    How to group 1 to many relationship

    I have a dataset with a one to many relationship. I was trying to figure out how to group/format so the "many" part is only show once. A pivot table looks horrible and is not usable.

    For example:
    Please Login or Register  to view this content.
    Is that possible?


    Thanks for your help!

    Craig

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,065

    Re: How to group 1 to many relationship

    Helper columns and hide the original boss and boss email columns?

    in D2
    IF(A2=A1,"",A2)

    in E2
    IF(C2=C1,"",C2)
    and copy down
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: How to group 1 to many relationship

    I would leave my original table 1 as is, the data is good data.

    Then use Conditional Formatting to suppress the display of additional instances of names in column A and emails in column C.

    CF rule for A2:C1000
    =A2=A1
    Formatting: Font - White
    Last edited by JBeaucaire; 07-15-2016 at 10:12 AM.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  4. #4
    Valued Forum Contributor
    Join Date
    01-08-2011
    Location
    Portsmouth, England
    MS-Off Ver
    Excel 2007 to 2016
    Posts
    456

    Re: How to group 1 to many relationship

    I know you said you didn't like the pivot table option, but I managed to use one with a tabular layout and removed totals to get pretty much the same result.

    Just a thought if you wanted to see it as an alternative
    Attached Files Attached Files
    Excel is a constant learning process and it's great to help each other. If any of us have helped you today, a click on the "reputation" star on the left is appreciated.

  5. #5
    Registered User
    Join Date
    05-16-2012
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2007
    Posts
    63

    Re: How to group 1 to many relationship

    This worked.
    Quote Originally Posted by Special-K
    in D2
    IF(A2=A1,"",A2)

    in E2
    IF(C2=C1,"",C2)
    and copy down
    Last edited by JBeaucaire; 07-15-2016 at 10:14 AM.

  6. #6
    Registered User
    Join Date
    05-16-2012
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2007
    Posts
    63

    Re: How to group 1 to many relationship

    and this worked
    Quote Originally Posted by JBeaucaire
    CF rule for A2:C1000
    =A2=A1
    Formatting: Font - White
    Last edited by JBeaucaire; 07-15-2016 at 10:13 AM.

+ 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. [SOLVED] Relationship between 2 variables.
    By prudential in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-21-2015, 12:31 PM
  2. KPI Invert Relationship
    By hecgroups in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-03-2014, 10:40 AM
  3. Replies: 1
    Last Post: 02-10-2014, 10:26 PM
  4. Replies: 2
    Last Post: 01-18-2013, 12:45 PM
  5. [SOLVED] Many to many date relationship
    By chaserracer83 in forum PowerPoint Formatting & General
    Replies: 2
    Last Post: 10-08-2012, 02:40 PM
  6. relationship
    By Cboggie in forum Access Tables & Databases
    Replies: 2
    Last Post: 12-22-2011, 08:39 AM
  7. Data Relationship?
    By Q-D in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-27-2009, 10:13 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