+ Reply to Thread
Results 1 to 9 of 9

Count duplicate in single row

  1. #1
    Registered User
    Join Date
    07-12-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    22

    Count duplicate in single row

    Hi,

    I've been trying to figure out how to make the Frequency function work. It does work when I manually enter a value, but when I paste a value from a different workbook, it doesn't work. help please.
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: Count duplicate in single row

    Is this sheet showing us when it works, or when it doesn't ? What are you trying to count the frequency of? What is your expected result?
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    07-12-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: Count duplicate in single row

    It shows both. if you paste a data from another workbook, it will not count the duplicate. What i'm trying to do is to count the duplicates in a single row. I tried using this formula, =COUNTIF(17:17,A17)>1, but still, when i tried to paste a data from a different workbook, it ceases to function.

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Count duplicate in single row

    Post some sample data and tell us what result you expect.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Registered User
    Join Date
    07-12-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: Count duplicate in single row

    for example:

    Please Login or Register  to view this content.
    Once i've removed the duplicates, i need it to look like,

    Please Login or Register  to view this content.

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Count duplicate in single row

    Quote Originally Posted by Baldowsky View Post
    for example:

    123...123...123...456...456

    Duplicates: 3
    Ok, I can see how you'd come up with 3 duplicates on that row.

    1234...1235...1236...456...456

    Duplicates: 2
    If the other row has 3 duplicates shouldn't this row have just 1 duplicate?

  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Count duplicate in single row

    See if this does what you want:

    Data Range
    A
    B
    C
    D
    E
    F
    G
    1
    123
    123
    123
    456
    456
    3
    2
    1234
    1235
    1236
    456
    456
    1
    3
    ------
    ------
    ------
    ------
    ------
    ------
    ------


    This formula entered in G1 and copied down:

    =COUNT(A1:E1)-SUM(--(FREQUENCY(A1:E1,A1:E1)>0))

  8. #8
    Registered User
    Join Date
    07-12-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    22

    RE: Count duplicate in single row

    Cool, it works. thanks a lot.

  9. #9
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Count duplicate in single row

    You're welcome. Thanks for the feedback!

+ 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] Count Duplicate Occurances, by date range and single date
    By Pierce Quality in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-18-2013, 03:04 PM
  2. [SOLVED] Combine duplicate rows into a single row in Excel
    By jkshaver in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-20-2012, 10:49 PM
  3. Replies: 1
    Last Post: 04-19-2012, 11:43 AM
  4. Remove duplicate from single string
    By cc9083 in forum Excel General
    Replies: 5
    Last Post: 05-23-2009, 05:53 AM
  5. Finding Duplicate values within a single column
    By Ed P in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-16-2005, 07:06 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