+ Reply to Thread
Results 1 to 3 of 3

Duplicate Names in sum value-

  1. #1
    Forum Contributor
    Join Date
    01-24-2013
    Location
    NY,NY
    MS-Off Ver
    MS 365
    Posts
    250

    Duplicate Names in sum value-

    How would I adjust the grand total to reflect the duplicates from a list of account with names in a pivot table. The sample is short but the master list has hundreds if not thousands of entries. Essentially, I just want to show the monetary value for each sales rep, but there are a few employees that have the same first and last name. Any ideas?
    Please see sample sheet attached-
    Attached Files Attached Files

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Duplicate Names in sum value-

    I would suggest to use COUNTIF function with the name. This will add a number to each name which will make it unique

    =B3&COUNTIF(B$3:B3,B3)

    Row\Col
    A
    B
    2
    Sales Rep
    3
    John Hyde1 John Hyde
    4
    Joseph Vega1 Joseph Vega
    5
    David Banner1 David Banner
    6
    Michael Jackson1 Michael Jackson
    7
    Steven Franco1 Steven Franco
    8
    Joseph Vega2 Joseph Vega


    Or if you want to add a number to the duplicate name only:

    =B3&IF(COUNTIF(B$3:B3,B3)=1,"",COUNTIF(B$3:B3,B3))

    Row\Col
    A
    B
    3
    John Hyde John Hyde
    4
    Joseph Vega Joseph Vega
    5
    David Banner David Banner
    6
    Michael Jackson Michael Jackson
    7
    Steven Franco Steven Franco
    8
    Joseph Vega2 Joseph Vega
    Last edited by AlKey; 03-13-2015 at 09:32 AM.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Forum Contributor
    Join Date
    01-24-2013
    Location
    NY,NY
    MS-Off Ver
    MS 365
    Posts
    250

    Re: Duplicate Names in sum value-

    Awesome! it worked thanks a bunch!

+ 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. Need to copy store names from sheet1 to sheet3 and remove duplicate names
    By aleanboy in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-21-2014, 08:47 AM
  2. Replies: 1
    Last Post: 10-06-2014, 09:44 AM
  3. [SOLVED] Duplicate Names
    By Gallinski in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-07-2013, 01:18 AM
  4. Replies: 11
    Last Post: 10-21-2012, 01:40 AM
  5. Duplicate Names
    By dgreaves in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-07-2010, 02:17 PM

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