+ Reply to Thread
Results 1 to 6 of 6

List of names appearing multiple times but with different adjacent value

  1. #1
    Valued Forum Contributor ron2k_1's Avatar
    Join Date
    09-30-2009
    Location
    Not the USA
    MS-Off Ver
    Excel 2003, 2007
    Posts
    606

    List of names appearing multiple times but with different adjacent value

    Hey good gentlemen and gentleladies of the forum,

    Kindly look at the attached. I have explained my dilema there. But basically the scenario is this:
    1. 1 table with two columns and 2000 rows
    2. Names on Column A appear multiple times
    3. Corresponding value on column B is for items they consumed. This is generally the same for all values in column A
    4. However, every now and again they will consume something else.

    And what I need is a list on a different sheet within the same workbook of all those people that appeared multiple times BUT only those that consumed more than 1 item. See attached to see the columns that I need on the filtered list. I know autofilter can do it, but then I'll have to go one by one to see those that consumed different product.

    thanks,
    Attached Files Attached Files
    Last edited by ron2k_1; 02-03-2011 at 09:44 PM.
    Ron
    Knowledge is knowing that a tomato and pepper are fruits. Wisdom is knowing whether to put these in a fruit salad

    Kindly

    [1] Use code tags. Place "[code]" before the first line of code and "[/code"]" after the last line of code. Exclude quotation marks
    [2] Mark your post [SOLVED] if it has been answered satisfactorily by editing your original post in advanced mode.
    [3] Thank (using the little scale) those that provided useful help; its nice and its very well appreciated

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,261

    Re: List of names appearing multiple times but with different adjacent value

    Hi Ron,

    I could get close with a pivot table but only with 2007 features. If you deleted dups before the pivot, I think I'd have it. See the attached with a helper column and 2010 pivot table.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Valued Forum Contributor ron2k_1's Avatar
    Join Date
    09-30-2009
    Location
    Not the USA
    MS-Off Ver
    Excel 2003, 2007
    Posts
    606

    Re: List of names appearing multiple times but with different adjacent value

    Quote Originally Posted by MarvinP View Post
    Hi Ron,

    I could get close with a pivot table but only with 2007 features. If you deleted dups before the pivot, I think I'd have it. See the attached with a helper column and 2010 pivot table.
    Yeah, I can't seem to get it closer than that with a pivot either. The thing is, that if you notice "Ted" is there consuming apples twice. I have hundreds of names like that where someone appears multiple times eating only one item several times... And this is what I don't want. I only what those who appear multiple times consuming more than 1 item.

    I wanted to try arrays, but I really could not figure out how give me the items that appear several times only one time so that I could have simply use a SUMPRODUCT for the eating count on the third column.

    Thanks for this though. Are you good with arrays?

  4. #4
    Valued Forum Contributor ron2k_1's Avatar
    Join Date
    09-30-2009
    Location
    Not the USA
    MS-Off Ver
    Excel 2003, 2007
    Posts
    606

    Re: List of names appearing multiple times but with different adjacent value

    Check out what I got from few more helper columns
    Attached Files Attached Files

  5. #5
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,261

    Re: List of names appearing multiple times but with different adjacent value

    Yeh - helper columns - and solved!!

  6. #6
    Valued Forum Contributor ron2k_1's Avatar
    Join Date
    09-30-2009
    Location
    Not the USA
    MS-Off Ver
    Excel 2003, 2007
    Posts
    606

    Re: List of names appearing multiple times but with different adjacent value

    Just in case the VBA code to automate the above becomes useful to anybody
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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