+ Reply to Thread
Results 1 to 7 of 7

[SOLVED]Find Value in Column A (which repeats) then return the value and the repeats

Hybrid View

  1. #1
    Registered User
    Join Date
    02-13-2012
    Location
    New York, NY
    MS-Off Ver
    Excel 2007
    Posts
    12

    [SOLVED]Find Value in Column A (which repeats) then return the value and the repeats

    Hi all! First time caller long time listener...

    I'm sure some of the geniuses here can help out on this one. Here's my issue:
    I have a sheet with a list of names in column A and posts in column B. I need to go through the list of names, then show each individual name in another column along with how many times that name shows up. The way I have it now, is a VLOOKUP paired with a COUNTIF which technically works (technically) but for every instance of the name, it returns the name again along with how many times it shows up. It kind of sucks.

    I have included a sample file.

    Any help here would be greatly appreciated. I'm guessing this is relatively easy, just a bit beyond me or I'm looking too hard...or I should be posting this to VBA.

    Thanks,
    - Joe-XT
    Attached Files Attached Files
    Last edited by Joe-XT; 12-12-2012 at 09:58 AM. Reason: [SOLVED]

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,050

    Re: Find Value in Column A (which repeats) then return the value and the repeats

    a very simple pivot table will give you what you want. see the attached example
    Attached Files Attached Files
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Valued Forum Contributor
    Join Date
    10-29-2012
    Location
    Mojokerto,Indonesia
    MS-Off Ver
    Excel 2007
    Posts
    554

    Re: Find Value in Column A (which repeats) then return the value and the repeats

    To extact unique data from column A1:A12 formula start at I2 (array formula)
    =IF(ISERROR(INDEX($A$1:$A$12;MATCH(;COUNTIF(I$1:I1;$A$1:$A$12);0)));"";INDEX($A$1:$A$12;MATCH(;COUNTIF(I$1:I1;$A$1:$A$12);0)))

    copy down

    see attachment
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    02-13-2012
    Location
    New York, NY
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Find Value in Column A (which repeats) then return the value and the repeats

    Quote Originally Posted by Ghozi Alkatiri View Post
    To extact unique data from column A1:A12 formula start at I2 (array formula)
    =IF(ISERROR(INDEX($A$1:$A$12;MATCH(;COUNTIF(I$1:I1;$A$1:$A$12);0)));"";INDEX($A$1:$A$12;MATCH(;COUNTIF(I$1:I1;$A$1:$A$12);0)))

    copy down

    see attachment

    Hey this works great except for when I try to adjust the range on A to A23:A700 it doesn't work at all anymore...thoughts? Also - I don't know if this is important - when I go to change it, the range it pink (the way you wrote it) but after I change it, it turns blue? This is this actual text in the formula bar by the way.

    Again, very much appreciate the help.

    - Joe

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,050

    Re: Find Value in Column A (which repeats) then return the value and the repeats

    did you take a look at the pivot table example i uploaded for you? you dont need any fancy formulas to adjust

  6. #6
    Registered User
    Join Date
    02-13-2012
    Location
    New York, NY
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Find Value in Column A (which repeats) then return the value and the repeats

    Quote Originally Posted by FDibbins View Post
    did you take a look at the pivot table example i uploaded for you? you dont need any fancy formulas to adjust
    Hey -

    Yeah, of course I did! The pivot tables won't update when you change the data for some reason. Plus, I didn't know how to get the Totals on the right hand side either. I'm deleting the columns and then pasting new data in, I wouldn't think that would make a difference but I don't know. I'm attaching your file with my changes and you'll see what I mean. The able doesn't update.

    Thanks,

    - Joe
    Attached Files Attached Files

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,050

    Re: Find Value in Column A (which repeats) then return the value and the repeats

    drag the names field into the values section, it will automatically be set to count.

    then in the PT tab, under DATA, select "refresh" when you need to update the table

+ 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