+ Reply to Thread
Results 1 to 3 of 3

how to do sort and count?

  1. #1
    Registered User
    Join Date
    03-01-2007
    Posts
    41

    how to do sort and count?

    For example i have many name and address....how to do a sort for address and then count how many of them haf duplicate address...means the same address. e.g
    col1 col2
    john address1
    Alex address2
    Mic address2
    Elic address3
    Wee address4
    ben address5
    lou address5
    Bob address6

    Count=2 (coz address2 & address5 is duplicate)

    Anyone knows the function?
    Last edited by wei82; 07-19-2007 at 05:41 AM.

  2. #2
    Forum Contributor snasui's Avatar
    Join Date
    07-15-2007
    Location
    Songkhla, Thailand
    MS-Off Ver
    2010, 365
    Posts
    167
    Quote Originally Posted by wei82
    For example i have many name and address....how to do a sort for address and then count how many of them haf duplicate address...means the same address. e.g
    col1 col2
    john address1
    Alex address2
    Mic address2
    Elic address3
    Wee address4
    ben address5
    lou address5
    Bob address6

    Count=2 (coz address2 & address5 is duplicate)

    Anyone knows the function?
    Try this:

    To count duplicate address.

    C1

    =SUM(IF(FREQUENCY(IF(COUNTIF(B2:B9,B2:B9)>1,MATCH("~"&B2:B9,B2:B9&"",0)),ROW(B2:B9)-ROW(B2)+1),1))

    Ctrl+Shift+Enter not just enter.

    Hope this helps.

  3. #3
    Registered User
    Join Date
    07-19-2007
    Posts
    10
    Hi,

    Use countif() formula

    That'll work.

+ 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