+ Reply to Thread
Results 1 to 4 of 4

Pivot required that sums data for names, where names are not unique

  1. #1
    Registered User
    Join Date
    07-07-2014
    Location
    Yorkshire,England
    MS-Off Ver
    2007
    Posts
    2

    Pivot required that sums data for names, where names are not unique

    I have a column of data with names in and an adjacent column with data connected to that name e.g. test score. Some names 9students) appear several times as they have several test scores. There may howevr be two students called Peter Smith so a simple pivot doesn't work as it will combine the different Peter smiths scores. My solution so far is to add a column which contains the students 'Unique Pupil Number' , contaginate this with their name, and run the pivot of the contaginated field. It works but I was wondering if there was a way of running the pivot of the Unique Pupil Number and getting the pivot to show the relevant student name in the next column.

    Or any other solution

    Thanks

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Pivot required that sums data for names, where names are not unique

    Hi,

    Yes, But I don't see the problem, nor why you need to concatenate the two fields. Just make your first Row label field the Unique ID and the second Row label field the name.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    07-07-2014
    Location
    Yorkshire,England
    MS-Off Ver
    2007
    Posts
    2

    Re: Pivot required that sums data for names, where names are not unique

    Good point. Because I'm fussy. I want UPN and name on same line for presentation purposes. A colleague has suggested I use a lookup table to put the names after the pivot table that uses the UPN and Name columns as the basis for the lookup. Not sure how this works but will try.

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Pivot required that sums data for names, where names are not unique

    Quote Originally Posted by ReportRob View Post
    Good point. Because I'm fussy. I want UPN and name on same line for presentation purposes. A colleague has suggested I use a lookup table to put the names after the pivot table that uses the UPN and Name columns as the basis for the lookup. Not sure how this works but will try.
    You can achieve that 'same line' result by choosing the 'Classic' version of the Pivot Table.

+ 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] Filtering repeated names to get a list of unique names
    By grumpyguppy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-06-2014, 11:48 PM
  2. Show query column names behind pivot table field names
    By gbritton in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 11-18-2013, 03:17 PM
  3. [SOLVED] All possible unique combination of 16 names from a list that contains 19 names
    By spirit29 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-20-2013, 01:08 PM
  4. Count Unique Names in Pivot Table
    By rlsublime in forum Excel General
    Replies: 2
    Last Post: 08-24-2012, 12:47 PM
  5. Extract unique names (names could be little different)
    By Richard Flame in forum Excel General
    Replies: 1
    Last Post: 05-31-2007, 09:04 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